InventoryLocation. Подробнее...
Закрытые члены | |
| proto native bool | IsValid () |
| verify current set inventory location | |
| proto native int | GetType () |
| returns type of InventoryLocation | |
| proto native EntityAI | GetParent () |
| returns parent of current inventory location | |
| proto native EntityAI | GetItem () |
| returns item of current inventory location | |
| proto native int | GetSlot () |
| returns slot id if current type is Attachment | |
| proto native int | GetIdx () |
| returns index of cargo if current type is Cargo / ProxyCargo | |
| proto native int | GetRow () |
| returns row of cargo if current type is Cargo / ProxyCargo | |
| proto native int | GetCol () |
| returns column of cargo if current type is Cargo / ProxyCargo | |
| proto native bool | GetFlip () |
| returns flip status of cargo | |
| proto native vector | GetPos () |
| returns position of item in world if type is Ground | |
| proto native void | GetDir (out float dir[4]) |
| returns direction of item in world if type is Ground | |
| proto native void | SetGround (EntityAI e, vector mat[4]) |
| sets current inventory location type to Ground with transformation mat | |
| proto native void | SetGroundEx (EntityAI e, vector pos, float dir[4]) |
| sets current inventory location type to Ground with transformation mat | |
| proto native void | SetAttachment (notnull EntityAI parent, EntityAI e, int slotId) |
| sets current inventory location type to Attachment with slot id set to <slotId> | |
| proto native void | SetCargoAuto (notnull CargoBase cargo, EntityAI e, int row, int col, bool flip) |
| based on Cargo.IsProxyCargo uses SetProxyCargo or SetCargo respectively | |
| proto native void | SetCargo (notnull EntityAI parent, EntityAI e, int idx, int row, int col, bool flip) |
| sets current inventory location type to Cargo with coordinates (idx, row, col) | |
| proto native void | SetProxyCargo (notnull EntityAI parent, EntityAI e, int idx, int row, int col, bool flip) |
| sets current inventory location type to ProxyCargo with coordinates (idx, row, col) @NOTE: typical usage is in building-like dummy structures, where furniture with cargo is part of the model, and is not a physical entity (like person or bag). | |
| proto native void | SetHands (notnull EntityAI parent, EntityAI e) |
| sets current inventory location type to Hands | |
| proto native void | SetVehicle (notnull EntityAI parent, EntityAI e, int idx) |
| proto native void | SetParent (notnull EntityAI parent) |
| proto native void | SetItem (notnull EntityAI item) |
| proto native void | SetSlot (int slotId) |
| proto native void | SetIndex (int idx) |
| proto native void | SetRow (int row) |
| proto native void | SetCol (int col) |
| proto native void | SetFlip (bool flip) |
| proto native void | Reset () |
| proto native bool | CompareLocationOnly (notnull InventoryLocation other) |
| proto native bool | CollidesWith (notnull InventoryLocation rhs) |
| checks if inventory locations collides each with other | |
| proto native InventoryLocation | Copy (notnull InventoryLocation rhs) |
| copies location data to another location | |
| proto native InventoryLocation | CopyLocationFrom (notnull InventoryLocation rhs, bool copyFlip) |
| copies location to another location without m_item member | |
| string | DumpToString () |
| bool | ReadFromContext (ParamsReadContext ctx) |
| bool | WriteToContext (ParamsWriteContext ctx) |
Закрытые статические члены | |
| static string | DumpToStringNullSafe (InventoryLocation loc) |
См. определение в файле InventoryLocation.c строка 28