Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
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
proto native void GetDir (out float dir[4])
proto native bool GetFlip ()
 returns flip status of cargo
proto native int GetIdx ()
 returns index of cargo if current type is Cargo / ProxyCargo
proto native EntityAI GetItem ()
 returns item of current inventory location
proto native EntityAI GetParent ()
 returns parent of current inventory location
proto native vector GetPos ()
 returns position of item in world if type is Ground
proto native int GetRow ()
 returns row of cargo if current type is Cargo / ProxyCargo
proto native int GetSlot ()
 returns slot id if current type is Attachment
proto native int GetType ()
 returns type of InventoryLocation
proto native bool IsValid ()
 verify current set inventory location
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 SetItem (notnull EntityAI item)
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)
proto native void SetTemporary (notnull EntityAI parent, EntityAI e)
proto native void SetVehicle (notnull EntityAI parent, EntityAI e, int idx)
bool WriteToContext (ParamsWriteContext ctx)

Static Private Member Functions

static string DumpToStringNullSafe (InventoryLocation loc)

Detailed Description

InventoryLocation.

Definition at line 29 of file inventorylocation.c.

Member Function Documentation

◆ CollidesWith()

proto native bool CollidesWith ( notnull InventoryLocation rhs)
private

◆ CompareLocationOnly()

proto native bool CompareLocationOnly ( notnull InventoryLocation other)
private

◆ Copy()

◆ CopyLocationFrom()

proto native InventoryLocation CopyLocationFrom ( notnull InventoryLocation rhs,
bool copyFlip )
private

◆ DumpToString()

string DumpToString ( )
inlineprivate

◆ DumpToStringNullSafe()

string DumpToStringNullSafe ( InventoryLocation loc)
inlinestaticprivate

◆ GetCol()

proto native int GetCol ( )
private

returns column of cargo if current type is Cargo / ProxyCargo

Returns
index or -1

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

◆ GetDir()

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

◆ GetFlip()

◆ GetIdx()

proto native int 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()

proto native vector GetPos ( )
private

◆ GetRow()

proto native int GetRow ( )
private

◆ GetSlot()

proto native int 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 InventoryItem::~ItemBase(), ActionAttachToConstruction::ActionCondition(), ActionLockAttachment::ActionCondition(), ActionRefuelTorch::ActionCondition(), ActionRepairCarPart::ActionCondition(), AttachmentCategoriesRow::CanCombine(), InventoryItemSuper::CanDetachAttachment(), LayoutHolder::CanEquipEx(), GameInventory::CanForceSwapEntitiesEx(), Car::CanReleaseAttachment(), Entity::CanReleaseAttachment(), GameInventory::CanSwapEntitiesEx(), ManBase::CheckAndExecuteStackSplitToInventoryLocation(), Entity::CheckAttachmentReceiveExclusion(), Entity::ClearExclusionValueRecursive(), AttachmentCategoriesRow::Combine(), GameInventory::CreateInInventory(), DestroyMaterialsServer(), ZombieContainer::DoubleClick(), DropNonUsableMaterialsServer(), DumpToString(), InventoryItem::EEDelete(), InventoryItem::EEItemLocationChanged(), ItemManager::GetCombinationFlags(), GameInventory::GetCurrentAttachmentSlotInfo(), InventoryItem::GetQuantityMax(), ItemBase::GetSlotLockedState(), ItemBase::IsAttachmentSlotLocked(), Entity::IsExclusionFlagPresentRecursive(), Entity::IsLockedInSlot(), Entity::IsSlotReserved(), ItemBase::LockAttachmentSlot(), LockServer(), InventoryItem::LockToParent(), Icon::MouseClick(), Container::MoveContainerDown(), Container::MoveContainerUp(), PluginBase::MoveItemToCorrectPosition(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), BotStateBase::OnEntry(), WeaponStateBase::OnEntry(), ActionTakeArrow::OnExecute(), ActionTakeHybridAttachment::OnExecute(), ActionTakeItem::OnExecute(), ActionRemoveSeed::OnExecuteClient(), ActionAttachPowerSourceToPanel::OnExecuteImpl(), OnFinishProgressServer(), BotStateBase::OnUpdate(), Entity::PropagateExclusionValueRecursive(), HumanInventory::RedirectToHandEvent(), AttachmentCategoriesRow::Select(), Attachments::Select(), SetLockOnAttachedMaterials(), InventoryItem::SetQuantity(), SetupAction(), SlotToAnimType(), StaticConstructionMethods::SpawnConstructionMaterialPiles(), PluginBase::SpawnEntityInPlayerInventory(), HumanInventory::SwappingToPreviousLocation(), ClosableContainer::TakeAsAttachment(), EntityAI::TakeEntityToTargetAttachmentImpl(), TakeMaterialsServer(), SplitItemUtils::TakeOrSplitToInventory(), PlayerContainer::ToggleContainer(), InventoryItem::UnlockFromParent(), UnlockServer(), ItemBase::UpdateAttachmentSlot(), UpdateConsoleToolbar(), PumpkinHelmet::UpdateGlowState(), EntityLightSource::UpdateMode(), and WriteToContext().

◆ GetType()

proto native int GetType ( )
private

returns type of InventoryLocation

See also
InventoryLocationType for known types of inventory locations

Referenced by InventoryItem::~ItemBase(), ActionTurnOffWhileOnGround::ActionCondition(), ActionTurnOnWhileOnGround::ActionCondition(), Entity::AreChildrenAccessible(), ItemBase::CanLoadAttachment(), HandEventBase::CanPerformEvent(), CarWheel_Ruined::CanPutAsAttachment(), ImprovisedExplosive::CanReceiveAttachment(), ItemBase::CanReceiveAttachment(), Plastic_Explosive::CanReceiveAttachment(), Entity::CheckAttachmentReceiveExclusion(), GameInventory::CreateInInventory(), ItemBase::CreateRope(), Icon::DoubleClick(), DraggingOverCenterPanel(), HumanInventory::DropEntity(), DumpToString(), InventoryItem::EEDelete(), GameInventory::EEInit(), InventoryItem::EEItemLocationChanged(), ItemBase::EEKilled(), HumanInventory::ForceSwapEntities(), GameInventory::GetCurrentAttachmentSlotInfo(), InventoryItem::GetDebugActions(), ActionTargetsCursor::GetTarget(), Entity::GetViewIndex(), ItemBase::GetViewIndex(), HandGuardBase::GuardCondition(), GameInventory::IsAttachment(), GameInventory::IsCargoInHiearchy(), GameInventory::IsInCargo(), ItemBase::IsPlaceable(), Weapon::IsRemoteWeapon(), ManBase::IsSwapBetweenHandsAndGroundLargeItem(), GameInventory::LocalDestroyEntity(), HumanInventory::LocalDestroyEntity(), PluginBase::MoveItemToCorrectPosition(), OnCenterPanelDropReceived(), VicinityContainer::OnDropReceivedFromIcon(), OnEndClient(), WeaponStateBase::OnEntry(), OnItemLocationChanged(), ActionDeployBase::OnUpdate(), BotStateBase::OnUpdate(), ManBase::PredictiveForceSwapEntities(), HumanInventory::RedirectToHandEvent(), PluginBase::RepairItem(), HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl(), HumanInventory::ReplaceItemInHandsWithNewImpl(), InventoryItem::SetQuantity(), ItemManager::ShowSourceDropzone(), SlotToAnimType(), InventoryItem::SplitItem(), HumanInventory::SwapEntities(), HumanInventory::SwappingToPreviousLocation(), HumanInventory::TakeEntityAsAttachmentEx(), HumanInventory::TakeEntityToCargoEx(), SplitItemUtils::TakeOrSplitToInventory(), HumanInventory::ThrowEntity(), UpdateConsoleToolbar(), ManBase::UpdateDelete(), EntityLightSource::UpdateMode(), Edible_Base::UpdateVaporParticle(), and WriteToContext().

◆ IsValid()

◆ ReadFromContext()

◆ Reset()

proto native void Reset ( )
private

◆ SetAttachment()

◆ SetCargo()

◆ 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

◆ SetItem()

proto native void SetItem ( notnull EntityAI item)
private

◆ SetParent()

proto native void SetParent ( notnull EntityAI parent)
private

Referenced by TransferInventory().

◆ 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

◆ SetTemporary()

proto native void SetTemporary ( notnull EntityAI parent,
EntityAI e )
private

Referenced by PluginBase::RepairItem().

◆ SetVehicle()

◆ WriteToContext()


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