![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Additional Inherited Members | |
| Private Member Functions inherited from GameInventory | |
| bool | AreChildrenAccessible () |
| Returns true if item is considered reachable within inventory. | |
| proto native bool | CanAddSwappedEntity (notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2) |
| bool | DropEntity (InventoryMode mode, EntityAI owner, notnull EntityAI item) |
| bool | DropEntityInBounds (InventoryMode mode, EntityAI owner, notnull EntityAI item, vector halfExtents, float angle, float cosAngle, float sinAngle) |
| bool | DropEntityWithTransform (InventoryMode mode, EntityAI owner, notnull EntityAI item, vector transform[4]) |
| proto native bool | FindFirstFreeLocationForNewEntity (string item_type, FindInventoryLocationType flags, out notnull InventoryLocation loc) |
| FindFirstFreeLocationForNewEntity. | |
| proto native bool | FindFreeLocationFor (notnull EntityAI item, FindInventoryLocationType flags, out notnull InventoryLocation loc) |
| FindFreeLocationFor. | |
| proto native bool | FindFreeLocationForEx (notnull EntityAI item, FindInventoryLocationType flags, notnull InventoryLocation exclude, out notnull InventoryLocation loc) |
| FindFreeLocationForEx. | |
| proto native int | FindFreeLocationsFor (notnull EntityAI item, FindInventoryLocationType flags, out notnull array< ref InventoryLocation > locs) |
| proto native void | FlipCargo () |
| bool | ForceSwapEntities (InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst) |
| bool | GetCurrentAttachmentSlotInfo (out int slot_id, out string slot_name) |
| Returns true if the item is currently attached and outputs attachment slot id and name. | |
| proto native bool | GetCurrentInventoryLocation (out notnull InventoryLocation loc) |
| proto native bool | GetFlipCargo () |
| bool | IsAttachment () |
| Returns true if this Inventory owner is an attachment of something. | |
| bool | IsCargoInHiearchy () |
| Returns true if inventory owner or his hiearchy parents are in cargo. | |
| bool | IsInCargo () |
| Returns true if this Inventory owner is in cargo of something. | |
| bool | LocalDestroyEntity (notnull EntityAI item) |
| void | OnInventoryFailure (InventoryCommandType type, InventoryValidationReason reason, InventoryLocation src, InventoryLocation dst) |
| bool | ReplaceItemWithNew (InventoryMode mode, ReplaceItemWithNewLambdaBase lambda) |
| proto native void | ResetFlipCargo () |
| proto native void | SetFlipCargo (bool flip) |
| bool | SwapEntities (InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2) |
| bool | TakeEntityAsAttachment (InventoryMode mode, notnull EntityAI item) |
| bool | TakeEntityAsAttachmentEx (InventoryMode mode, notnull EntityAI item, int slot) |
| bool | TakeEntityAsTargetAttachment (InventoryMode mode, notnull EntityAI target, notnull EntityAI item) |
| bool | TakeEntityAsTargetAttachmentEx (InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot) |
| put item as attachment of target | |
| bool | TakeEntityToCargo (InventoryMode mode, notnull EntityAI item) |
| bool | TakeEntityToCargoEx (InventoryMode mode, notnull EntityAI item, int idx, int row, int col) |
| bool | TakeEntityToInventory (InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item) |
| bool | TakeEntityToTargetCargo (InventoryMode mode, notnull EntityAI target, notnull EntityAI item) |
| Put item into into cargo of another entity. | |
| bool | TakeEntityToTargetCargoEx (InventoryMode mode, notnull CargoBase cargo, notnull EntityAI item, int row, int col) |
| Put item into into cargo on specific cargo location of another entity. | |
| bool | TakeEntityToTargetInventory (InventoryMode mode, notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item) |
| helper that finds location first, then moves the entity into it | |
| bool | TakeToDst (InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst) |
| proto native EntityAI | GetInventoryOwner () |
| Engine native functions. | |
| proto native bool | HasEntityInInventory (notnull EntityAI item) |
| proto native bool | EnumerateInventory (InventoryTraversalType tt, out array< EntityAI > items) |
| proto native int | CountInventory () |
| almost identical to EnumerateInventory except it does not return items | |
| proto native CargoBase | GetCargo () |
| cargo | |
| proto native CargoBase | GetCargoFromIndex (int index) |
| proto native EntityAI | CreateEntityInCargo (string typeName) |
| Create Entity of specified type in cargo of entity. | |
| proto native EntityAI | CreateEntityInCargoEx (string typeName, int idx, int row, int col, bool flip) |
| Create Entity of specified type in cargo of entity at coordinates (row, col). | |
| proto native bool | HasEntityInCargo (notnull EntityAI e) |
| proto native bool | HasEntityInCargoEx (notnull EntityAI e, int idx, int row, int col) |
| proto native bool | CanAddEntityInCargo (notnull EntityAI e, bool flip) |
| proto native bool | CanAddEntityInCargoEx (notnull EntityAI e, int idx, int row, int col, bool flip) |
| proto native bool | CanAddEntityInCargoExLoc (InventoryLocation loc) |
| proto native bool | TestAddEntityInCargoEx (notnull EntityAI e, int idx, int row, int col, bool flip, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check, bool do_script_load_check) |
| proto native bool | TestAddEntityInCargoExLoc (notnull InventoryLocation loc, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check, bool do_script_load_check) |
| proto native bool | CanRemoveEntityInCargo (notnull EntityAI e) |
| proto native bool | CanRemoveEntityInCargoEx (notnull EntityAI e, int idx, int row, int col) |
| proto native int | GetSlotId (int index) |
| proto native int | GetSlotIdCount () |
| proto native int | GetAttachmentSlotId (int index) |
| proto native int | GetAttachmentSlotsCount () |
| bool | HasAttachmentSlot (int slotId) |
| proto native bool | HasInventorySlot (int slotId) |
| proto native int | AttachmentCount () |
| Returns count of attachments attached to this item. | |
| proto native EntityAI | CreateAttachment (string typeName) |
| proto native EntityAI | CreateAttachmentEx (string typeName, int slotId) |
| proto native EntityAI | GetAttachmentFromIndex (int index) |
| proto native EntityAI | FindAttachment (int slot) |
| Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id). | |
| proto native EntityAI | FindAttachmentByName (string slotName) |
| Returns attached entity in slot (you can use EntityAI.GetActionComponentName to get slot id). | |
| proto native bool | HasAttachment (notnull EntityAI e) |
| proto native bool | HasAttachmentEx (notnull EntityAI e, int slot) |
| proto native bool | CanAddAttachment (notnull EntityAI e) |
| proto native bool | CanAddAttachmentEx (notnull EntityAI e, int slot) |
| proto native bool | CanRemoveAttachment (EntityAI attachment) |
| proto native bool | CanRemoveAttachmentEx (EntityAI attachment, int slot) |
| proto native EntityAI | FindPlaceholderForSlot (int slot) |
| Returns placeholder entity for slot (naked arms, legs etc). | |
| proto native bool | IsPlaceholderEntity (notnull Object e) |
| proto native bool | CanLockInventoryWithKey (notnull EntityAI key) |
| locks | |
| proto native bool | CanUnlockInventoryWithKey (notnull EntityAI key) |
| proto native void | LockInventoryWithKey (notnull EntityAI key) |
| proto native void | UnlockInventoryWithKey (notnull EntityAI key) |
| proto native bool | HasKeys () |
| proto native void | LockInventory (int lockType) |
| proto native void | UnlockInventory (int lockType) |
| proto native int | GetScriptLockCount () |
| proto native bool | IsInventoryUnlocked () |
| proto native bool | IsInventoryLocked () |
| proto native bool | IsInventoryLockedForLockType (int lockType) |
| proto native bool | SetSlotLock (int slot, bool locked) |
| proto native bool | GetSlotLock (int slot) |
| void | Init () |
| script functions | |
| bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| db load hooks | |
| void | OnAfterStoreLoad () |
| void | OnStoreSave (ParamsWriteContext ctx) |
| db store hook | |
| void | EEInit () |
| void | EEDelete (EntityAI parent) |
| EntityAI | CreateInInventory (string type) |
| bool | CanAddEntityToInventory (notnull EntityAI item, int flag=FindInventoryLocationType.ANY) |
| bool | AddEntityToInventory (notnull EntityAI item) |
| bool | CanRemoveEntity () |
| Returns if entity can be removed from its current location. | |
| bool | CanAddEntityInto (notnull EntityAI item, FindInventoryLocationType flags=FindInventoryLocationType.ANY) |
| bool | CanAddEntityIntoInventory (notnull EntityAI item) |
| Test if entity can be put to the inventory (Cargo, ProxyCargo, Attachment). | |
| bool | CanAddEntityIntoHands (notnull EntityAI item) |
| Test if entity can be put into hands. | |
| bool | OnInputUserDataProcess (ParamsReadContext ctx) |
| synchronization | |
| bool | OnInventoryJunctureFromServer (ParamsReadContext ctx) |
| void | OnInventoryJunctureFailureFromServer (ParamsReadContext ctx) |
| void | OnServerInventoryCommand (ParamsReadContext ctx) |
| bool | AddInventoryReservationEx (EntityAI item, InventoryLocation dst, int timeout_ms) |
| bool | ExtendInventoryReservationEx (EntityAI item, InventoryLocation dst, int timeout_ms) |
| bool | ClearInventoryReservationEx (EntityAI item, InventoryLocation dst) |
| proto native int | GetAnyInventoryReservationCount () |
| Static Private Member Functions inherited from GameInventory | |
| static proto native bool | CanForceSwapEntities (notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst) |
| static bool | CanForceSwapEntitiesEx (notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst) |
| static proto native bool | CanSwapEntities (notnull EntityAI item1, notnull EntityAI item2) |
| static bool | CanSwapEntitiesEx (notnull EntityAI item1, notnull EntityAI item2) |
| static int | GetInventoryCheckContext () |
| static proto native bool | LocationAddEntity (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationCanAddEntity (notnull InventoryLocation inv_loc) |
| static bool | LocationCanAddEntityEx (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationCanMoveEntity (notnull InventoryLocation src, notnull InventoryLocation dst) |
| static bool | LocationCanMoveEntitySyncCheck (notnull InventoryLocation src, notnull InventoryLocation dst) |
| static proto native bool | LocationCanRemoveEntity (notnull InventoryLocation inv_loc) |
| static proto native EntityAI | LocationCreateEntity (notnull InventoryLocation inv_loc, string type, int iSetupFlags, int iRotation) |
| static proto native EntityAI | LocationCreateLocalEntity (notnull InventoryLocation inv_loc, string type, int iSetupFlags, int iRotation) |
| static proto native EntityAI | LocationGetEntity (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationMoveEntity (notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc) |
| static proto native bool | LocationRemoveEntity (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationSwap (notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2) |
| static proto native bool | LocationSyncMoveEntity (notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc) |
| static proto native bool | LocationTestAddEntity (notnull InventoryLocation inv_loc, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check, bool do_script_load_check) |
| static bool | MakeDstForSwap (notnull InventoryLocation src1, notnull InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2) |
| helper function for swap | |
| static bool | MakeSrcAndDstForForceSwap (notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, notnull InventoryLocation dst2) |
| helper function for ForceSwap | |
| static bool | MakeSrcAndDstForSwap (notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2) |
| helper function for swap | |
| static void | OnServerInventoryCommandStatic (ParamsReadContext ctx) |
| static proto native bool | PrepareDropEntityPos (EntityAI owner, notnull EntityAI item, out vector mat[4], bool useValuesInMatrix=false, int conflictCheckDepth=-1) |
| static proto native bool | ServerHandEvent (notnull Man player, notnull EntityAI item, ParamsWriteContext ctx) |
| static proto native bool | ServerLocationMoveEntity (notnull EntityAI item, ParamsWriteContext ctx) |
| static proto native bool | ServerLocationSwap (notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, ParamsWriteContext ctx) |
| static proto native bool | ServerLocationSyncMoveEntity (Man player, notnull EntityAI item, ParamsWriteContext ctx) |
| static bool | SetGroundPosByOwner (EntityAI owner, notnull EntityAI item, out InventoryLocation ground) |
| static void | SetGroundPosByOwnerBounds (EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector halfExtents, float angle, float cosAngle, float sinAngle) |
| static bool | SetGroundPosByTransform (EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector transform[4]) |
| static proto native bool | TestDropEntityPos (EntityAI owner, notnull EntityAI item, out vector mat[4], bool useValuesInMatrix=false, int conflictCheckDepth=-1) |
| static proto native bool | AddInventoryReservation (EntityAI item, InventoryLocation dst, int timeout_ms) |
| static proto native bool | ExtendInventoryReservation (EntityAI item, InventoryLocation dst, int timeout_ms) |
| static proto native bool | ClearInventoryReservation (EntityAI item, InventoryLocation dst) |
| static proto native bool | HasInventoryReservation (EntityAI item, InventoryLocation dst) |
| Internally: HasInventoryReservationEx(item, dst, FindInventoryReservationMode.LEGACY, FindInventoryReservationMode.LEGACY). | |
| static proto native bool | HasInventoryReservationCanAdd (EntityAI item, InventoryLocation dst) |
| Internally: !HasInventoryReservationEx(item, dst, FindInventoryReservationMode.ITEM, FindInventoryReservationMode.DST). | |
| static proto native bool | HasInventoryReservationEx (EntityAI item, InventoryLocation dst, FindInventoryReservationMode itemMode, FindInventoryReservationMode parentMode) |
| itemMode will iterate over item reservations, parentMode will iterate over parent reservations | |
| static proto native bool | GetInventoryReservationCount (EntityAI item, InventoryLocation dst) |
| static proto native bool | CheckRequestSrc (notnull Man requestingPlayer, notnull InventoryLocation src, float radius) |
| static proto native bool | CheckDropRequest (notnull Man requestingPlayer, notnull InventoryLocation src, float radius) |
| static proto native bool | CheckTakeItemRequest (notnull Man requestingPlayer, notnull InventoryLocation src, notnull InventoryLocation dst, float radius) |
| static proto native bool | CheckMoveToDstRequest (notnull Man requestingPlayer, notnull InventoryLocation src, notnull InventoryLocation dst, float radius) |
| static proto native bool | CheckSwapItemsRequest (notnull Man requestingPlayer, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, float radius) |
| static proto native bool | CheckManipulatedObjectsDistances (notnull EntityAI e0, notnull EntityAI e1, float radius) |
| const int | c_InventoryReservationTimeoutMS = 5000 |
| reservations | |
| const int | c_InventoryReservationTimeoutShortMS = 3000 |
| const float | c_MaxItemDistanceRadius = 2.5 |
| anti-cheats | |
| Static Private Attributes inherited from GameInventory | |
| static int | m_inventory_check_context = InventoryCheckContext.DEFAULT |
Definition at line 314 of file replaceitemwithnewlambdabase.c.