Dayz  1.11.153731
Dayz Code Explorer by Zeroy
InventoryLocation Class Reference

InventoryLocation. More...

Private Member Functions

proto native bool CollidesWith (notnull InventoryLocation rhs)
 
proto native bool CompareLocationOnly (notnull InventoryLocation other)
 
proto native InventoryLocation Copy (notnull InventoryLocation rhs)
 
proto native InventoryLocation CopyLocationFrom (notnull InventoryLocation rhs, bool copyFlip)
 
string DumpToString ()
 
proto native int GetCol ()
 returns column of cargo if current type is Cargo / ProxyCargo More...
 
proto native void GetDir (out float dir[4])
 
proto native bool GetFlip ()
 returns flip status of cargo More...
 
proto native int GetIdx ()
 returns index of cargo if current type is Cargo / ProxyCargo More...
 
proto native EntityAI GetItem ()
 returns item of current inventory location More...
 
proto native EntityAI GetParent ()
 returns parent of current inventory location More...
 
proto native vector GetPos ()
 returns position of item in world if type is Ground More...
 
proto native int GetRow ()
 returns row of cargo if current type is Cargo / ProxyCargo More...
 
proto native int GetSlot ()
 returns slot id if current type is Attachment More...
 
proto native int GetType ()
 returns type of InventoryLocation More...
 
proto native bool IsValid ()
 verify current set inventory location More...
 
bool ReadFromContext (ParamsReadContext ctx)
 
proto native void Reset ()
 
proto native void SetAttachment (notnull EntityAI parent, EntityAI e, int slotId)
 
proto native void SetCargo (notnull EntityAI parent, EntityAI e, int idx, int row, int col, bool flip)
 
proto native void SetCargoAuto (notnull CargoBase cargo, EntityAI e, int row, int col, bool flip)
 
proto native void SetCol (int col)
 
proto native void SetFlip (bool flip)
 
proto native void SetGround (EntityAI e, vector mat[4])
 
proto native void SetGroundEx (EntityAI e, vector pos, float dir[4])
 
proto native void SetHands (notnull EntityAI parent, EntityAI e)
 
proto native void SetIndex (int idx)
 
proto native void SetParent (notnull EntityAI parent)
 
proto native void SetProxyCargo (notnull EntityAI parent, EntityAI e, int idx, int row, int col, bool flip)
 
proto native void SetRow (int row)
 
proto native void SetSlot (int slotId)
 
bool WriteToContext (ParamsWriteContext ctx)
 

Static Private Member Functions

static string DumpToStringNullSafe (InventoryLocation loc)
 

Detailed Description

InventoryLocation.

Definition at line 27 of file InventoryLocation.c.

Member Function Documentation

◆ CollidesWith()

proto native bool CollidesWith ( notnull InventoryLocation  rhs)
private

◆ CompareLocationOnly()

◆ Copy()

◆ CopyLocationFrom()

◆ DumpToString()

string DumpToString ( )
inlineprivate

◆ DumpToStringNullSafe()

◆ GetCol()

GetCol ( )
private

returns column of cargo if current type is Cargo / ProxyCargo

Returns
index or -1

Referenced by Container::AddedToCargo(), GameInventory::CreateInInventory(), DumpToString(), Container::MovedInCargo(), InventoryItem::OnRightClick(), Container::SetLock(), and WriteToContext().

◆ GetDir()

proto native void GetDir ( out float  dir[4])
private

◆ GetFlip()

◆ GetIdx()

GetIdx ( )
private

returns index of cargo if current type is Cargo / ProxyCargo

Returns
index or -1

Referenced by GameInventory::CreateInInventory(), DumpToString(), IsItemInCargoOfSomething(), InventoryItem::OnRightClick(), PumpkinHelmet::UpdateGlowState(), and WriteToContext().

◆ GetItem()

◆ GetParent()

◆ GetPos()

◆ GetRow()

GetRow ( )
private

returns row of cargo if current type is Cargo / ProxyCargo

Returns
row or -1

Referenced by Container::AddedToCargo(), GameInventory::CreateInInventory(), DumpToString(), Container::MovedInCargo(), InventoryItem::OnRightClick(), Container::SetLock(), and WriteToContext().

◆ GetSlot()

GetSlot ( )
private

returns slot id if current type is Attachment

@NOTE: slot id is related to order of entries in DZ/data/config.cpp secton CfgSlots

Returns
slot id if attachment, -1 otherwise

Referenced by ActionAttachToConstruction::ActionCondition(), AttachmentCategoriesRow::CanCombine(), InventoryItemSuper::CanDetachAttachment(), GameInventory::CanForceSwapEntitiesEx(), CanReleaseAttachment(), GameInventory::CanSwapEntitiesEx(), AttachmentCategoriesRow::Combine(), CombineItemsClient(), GameInventory::CreateInInventory(), DestroyMaterialsServer(), ZombieContainer::DoubleClick(), DropNonUsableMaterialsServer(), DumpToString(), InventoryItem::EEDelete(), InventoryItem::EEItemLocationChanged(), GameInventory::GetCurrentAttachmentSlotInfo(), InventoryItem::GetQuantityMax(), ItemBase::GetSlotLockedState(), ItemBase::IsAttachmentSlotLocked(), IsLockedInSlot(), ItemBase::LockAttachmentSlot(), LockServer(), Icon::MouseClick(), PlayerContainer::MoveContainerDown(), PlayerContainer::MoveContainerUp(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), WeaponStateBase::OnEntry(), BotStateBase::OnEntry(), ActionTakeHybridAttachment::OnExecuteClient(), ActionTakeItem::OnExecuteClient(), ActionAttachPowerSourceToPanel::OnExecuteImpl(), ActionTakeHybridAttachment::OnExecuteServer(), ActionTakeItem::OnExecuteServer(), OnFinishProgressServer(), BotStateBase::OnUpdate(), HumanInventory::RedirectToHandEvent(), AttachmentCategoriesRow::Select(), Attachments::Select(), SetLockOnAttachedMaterials(), SlotToAnimType(), StaticConstructionMethods::SpawnConstructionMaterialPiles(), PluginBase::SpawnEntityInInventory(), HumanInventory::SwappingToPreviousLocation(), ClosableContainer::TakeAsAttachment(), EntityAI::TakeEntityToTargetAttachmentImpl(), TakeMaterialsServer(), SplitItemUtils::TakeOrSplitToInventory(), PlayerContainer::ToggleContainer(), UnlockServer(), ItemBase::UpdateAttachmentSlot(), UpdateCookingStateOnStick(), PumpkinHelmet::UpdateGlowState(), WriteToContext(), and InventoryItem::~ItemBase().

◆ GetType()

GetType ( )
private

returns type of InventoryLocation

See also
InventoryLocationType for known types of inventory locations

Referenced by ActionTurnOffWhileOnGround::ActionCondition(), ActionTurnOnWhileOnGround::ActionCondition(), GameInventory::CreateInInventory(), ReplaceItemWithNewLambdaBase::CreateNewEntity(), ItemBase::CreateRope(), Icon::DoubleClick(), DraggingOverCenterPanel(), HumanInventory::DropEntity(), Icon::DropReceivedFromMain(), DumpToString(), InventoryItem::EEDelete(), GameInventory::EEInit(), InventoryItem::EEItemLocationChanged(), HumanInventory::ForceSwapEntities(), GameInventory::GetCurrentAttachmentSlotInfo(), ItemBase::GetViewIndex(), GetViewIndex(), GameInventory::IsAttachment(), GameInventory::IsInCargo(), Weapon::IsRemoteWeapon(), IsSwapBetweenHandsAndGroundLargeItem(), HumanInventory::LocalDestroyEntity(), GameInventory::LocalDestroyEntity(), OnCenterPanelDropReceived(), WeaponStateBase::OnEntry(), BotStateBase::OnUpdate(), PredictiveForceSwapEntities(), ReplaceItemWithNewLambdaBase::PrepareLocations(), HumanInventory::RedirectToHandEvent(), HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl(), HumanInventory::ReplaceItemInHandsWithNewImpl(), GameInventory::ReplaceItemWithNew(), ItemManager::ShowSourceDropzone(), SlotToAnimType(), InventoryItem::SplitItem(), HumanInventory::SwapEntities(), HumanInventory::SwappingToPreviousLocation(), HumanInventory::TakeEntityAsAttachmentEx(), HumanInventory::TakeEntityToCargoEx(), SplitItemUtils::TakeOrSplitToInventory(), HumanInventory::ThrowEntity(), WriteToContext(), and InventoryItem::~ItemBase().

◆ IsValid()

◆ ReadFromContext()

◆ Reset()

Reset ( )
private

◆ SetAttachment()

◆ SetCargo()

proto native void SetCargo ( notnull EntityAI  parent,
EntityAI  e,
int  idx,
int  row,
int  col,
bool  flip 
)
private

◆ SetCargoAuto()

◆ SetCol()

proto native void SetCol ( int  col)
private

◆ SetFlip()

proto native void SetFlip ( bool  flip)
private

◆ SetGround()

◆ SetGroundEx()

◆ SetHands()

◆ SetIndex()

proto native void SetIndex ( int  idx)
private

◆ SetParent()

proto native void SetParent ( notnull EntityAI  parent)
private

◆ SetProxyCargo()

proto native void SetProxyCargo ( notnull EntityAI  parent,
EntityAI  e,
int  idx,
int  row,
int  col,
bool  flip 
)
private

Referenced by ReadFromContext().

◆ SetRow()

proto native void SetRow ( int  row)
private

◆ SetSlot()

proto native void SetSlot ( int  slotId)
private

◆ WriteToContext()


The documentation for this class was generated from the following file: