DIFF

class HumanInventorySource

DayZPlayerInventory HumanInventoryWithFSM HumanInventory GameInventory

All members, including inherited

inventory for plain man/human

HumanInventory has simple synchronous operations only, i.e. no animations are involved while adding/removing/swapping to/from hands.

Animations are added on higher level of hierarchy (DayZPlayerInventory for example)

Members 1

int m_syncClearUserReservationindex = -1

Methods 51

proto native bool TestAddEntityInHands(EntityAI e, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check)
in e
entity to test for taking in hands
in do_item_check
deny if entity is not InventoryItem
in do_occupancy_test
deny if there is item in hands already
in do_script_check
deny if script conditions fail

Returns: true if item passed all tests

proto native bool CanOpenInventory()
proto native int GetUserReservedLocationCount()
proto native int FindCollidingUserReservedLocationIndex(notnull EntityAI e, notnull InventoryLocation dst)
proto native int FindFirstUserReservedLocationIndexForContainer(notnull EntityAI e)
proto native void SetUserReservedLocation(notnull EntityAI eai, notnull InventoryLocation dst)
proto native void ClearUserReservedLocation(notnull EntityAI eai)
proto native void ClearUserReservedLocationForContainer(notnull EntityAI eai)
proto native bool GetDebugFlag()
override EntityAI CreateInInventory(string type)

creates entity somewhere in inventory

in type
item type to be placed in inventory

Returns: created entity

void OnHandsExitedStableState(HandStateBase src, HandStateBase dst)
void OnHandsEnteredStableState(HandStateBase src, HandStateBase dst)
void HandleInventoryManipulation()
bool PostDeferredEventTakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)

TODO(kumarjac): It returned true and claimed success before, is this correct?

bool PostDeferredForceSwapEntities(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
bool OnInventoryCheck(int userDataType, ParamsReadContext ctx)