- Namespace
- EasyBuildSystem
.Features .Scripts .Core .Base .Socket - Base Types
-
- MonoBehaviour
graph BT
Type-->Base0["MonoBehaviour"]
Type["SocketBehaviour"]
class Type type-node
Syntax
[AddComponentMenu("Easy Build System/Features/Buildings Behaviour/Socket Behaviour")]
public class SocketBehaviour : MonoBehaviour
Attributes
| Type | Description |
|---|---|
| AddComponentMenu |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| AttachmentBounds | ||
| BusySpaces | ||
| IsDisabled | ||
| ParentPiece | ||
| PartOffsets | ||
| Radius | ||
| Type |
Properties
| Name | Value | Summary |
|---|---|---|
| CachedCollider | Collider |
Methods
| Name | Value | Summary |
|---|---|---|
| AddOccupancy |
void |
This method allows to add a occupancy on this socket.
|
| AllowPiece |
bool |
This method allows to check if the piece is contains in the offset list of this socket.
|
| ChangeOccupancy |
void |
This method allows to change the current socket state.
|
| CheckOccupancy |
bool |
This method allows to check if the piece is placed on this socket.
|
| Disable |
void |
This method allows to disable the collider of the socket.
|
| EnableSocketCollider |
void |
This method allows to enable the collider of the socket.
|
| GetOffset |
Offset |
This method allows to get the piece offset wich allowed on this socket.
|
| OnDrawGizmos |
void | |
| RemoveOccupancy |
void |
This method allows to remove a occupancy from this socket.
|