DayZ 1.24
Loading...
Searching...
No Matches
Cargo.c
Go to the documentation of this file.
1
88
89
90#ifdef PLATFORM_CONSOLE
91class CargoList : CargoBase
92{
97
103
108
113 {
114 return true;
115 //return CanFitItemIntoCargo(item);
116 }
117
122
123 override bool CanSwapItemInCargo(EntityAI child_entity, EntityAI new_entity)
124 {
126 }
127};
128#else
129#ifdef SERVER_FOR_CONSOLE
130class CargoList : CargoBase
131{
136
142
147
152 {
153 return true;
154 //return CanFitItemIntoCargo(item);
155 }
156
161
162 override bool CanSwapItemInCargo(EntityAI child_entity, EntityAI new_entity)
163 {
165 }
166};
167#else
175#endif
176#endif
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition ItemBase.c:8715
represents base for cargo storage for entities
Definition Cargo.c:7
proto native void ClearUserReservedLocation(notnull EntityAI eai)
void ~CargoBase()
void CargoBase()
proto native int GetWidth()
proto native int GetHeight()
bool CanReceiveItemIntoCargo(EntityAI item)
condition EntityAI::CanReceiveItemIntoCargo for Cargo.
Definition Cargo.c:65
proto bool GetItemSize(int index, out int w, out int h)
proto native int FindEntityInCargo(notnull EntityAI e)
proto native int GetItemCount()
proto native int GetUserReservedLocationCount()
proto native bool IsProxyCargo()
proto native EntityAI GetCargoOwner()
get the entity that owns the cargo
proto bool GetUserReservedLocation(int index, out EntityAI eai, out int row, out int col, out int w, out int h, out int flp)
proto native int GetOwnerCargoIndex()
proto native void SetUserReservedLocation(notnull EntityAI eai)
proto native EntityAI GetItem(int index)
proto bool GetItemRowCol(int index, out int row, out int col)
bool CanSwapItemInCargo(EntityAI child_entity, EntityAI new_entity)
condition EntityAI::CanSwapItemInCargo for Cargo.
Definition Cargo.c:71
proto native EntityAI FindEntityInCargoOn(int row, int col)
TODO doc.
Definition EnScript.c:118