12 proto native
EntityAI GetCargoOwner ();
18 proto native
int GetOwnerCargoIndex ();
23 proto native
bool IsProxyCargo ();
28 proto native
int GetItemCount ();
32 proto native
EntityAI GetItem (
int index);
37 proto native
int GetWidth ();
41 proto native
int GetHeight ();
46 proto
bool GetItemRowCol (
int index, out
int row, out
int col);
51 proto
bool GetItemSize (
int index, out
int w, out
int h);
56 proto native
int FindEntityInCargo (notnull
EntityAI e);
65 bool CanReceiveItemIntoCargo (
EntityAI item) {
return true; }
71 bool CanSwapItemInCargo (
EntityAI child_entity,
EntityAI new_entity) {
return true; }
73 proto native
int GetUserReservedLocationCount ();
84 proto
bool GetUserReservedLocation (
int index, out
EntityAI eai, out
int row, out
int col, out
int w, out
int h, out
int flp);
85 proto native
void SetUserReservedLocation (notnull
EntityAI eai);
86 proto native
void ClearUserReservedLocation (notnull
EntityAI eai);
90 #ifdef PLATFORM_CONSOLE
96 proto native
int GetMaxWeight ();
102 proto native
int GetTotalWeight (
EntityAI item);
107 proto native
bool CanFitItemIntoCargo (
EntityAI cargo);
121 proto native
bool CanFitSwappedItemInCargo (
EntityAI child_entity,
EntityAI new_entity);
123 override bool CanSwapItemInCargo (
EntityAI child_entity,
EntityAI new_entity)
125 return CanFitSwappedItemInCargo(child_entity, new_entity);
129 #ifdef SERVER_FOR_CONSOLE
135 proto native
int GetMaxWeight ();
141 proto native
int GetTotalWeight (
EntityAI item);
146 proto native
bool CanFitItemIntoCargo (
EntityAI cargo);
160 proto native
bool CanFitSwappedItemInCargo (
EntityAI child_entity,
EntityAI new_entity);
162 override bool CanSwapItemInCargo (
EntityAI child_entity,
EntityAI new_entity)
164 return CanFitSwappedItemInCargo(child_entity, new_entity);
173 proto native
EntityAI FindEntityInCargoOn (
int row,
int col);