Interface ICarrier
Interface that makes entity carry other entities on top
Properties
AllowBeingCarry
True if this entity can be carry by other carrier
Declaration
bool AllowBeingCarry { get; }
CarryHorizontalFrame
Declaration
int CarryHorizontalFrame { get; set; }
CarryLeft
Declaration
int CarryLeft { get; set; }
CarryRight
Declaration
int CarryRight { get; set; }
Methods
CarryTargetsOnTopHorizontally(Entity, int, OperationMode)
Carry all ICarrier on top. This operation do not make any movement for the host entity itself
Declaration
public static void CarryTargetsOnTopHorizontally(Entity self, int _deltaX, OperationMode colMode = OperationMode.ColliderOnly)
Parameters
Type | Name | Description |
---|---|---|
Entity | self | Host entity |
int | _deltaX | Position delta X at current frame in global space |
OperationMode | colMode | Does this operation include colliders and triggers |
CarryTargetsOnTopVertically(Entity, int, OperationMode)
Carry all ICarrier on top. This operation do not make any movement for the host entity itself
Declaration
public static void CarryTargetsOnTopVertically(Entity self, int _deltaY, OperationMode colMode = OperationMode.ColliderOnly)
Parameters
Type | Name | Description |
---|---|---|
Entity | self | Host entity |
int | _deltaY | Position delta Y at current frame in global space |
OperationMode | colMode | Does this operation include colliders and triggers |
OnBeingCarry(int, int)
This function is called when this entity is being carried by other
Declaration
void OnBeingCarry(int deltaX, int deltaY)
Parameters
Type | Name | Description |
---|---|---|
int | deltaX | Position delta X at current frame in global space |
int | deltaY | Position delta Y at current frame in global space |
PerformCarry(int, int)
Carry other entities for once
Declaration
void PerformCarry(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
int | x | Position delta X at current frame in global space |
int | y | Position delta Y at current frame in global space |