![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
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) |
Definition at line 29 of file inventorylocation.c.
|
private |
Referenced by PluginBase::MoveItemToCorrectPosition().
|
private |
|
private |
|
private |
|
inlineprivate |
Definition at line 240 of file inventorylocation.c.
References GetCol(), GetDir(), GetFlip(), GetIdx(), GetItem(), GetParent(), GetPos(), GetRow(), GetSlot(), and GetType().
Referenced by DumpToStringNullSafe(), and CraftingManager::OnUpdate().
|
inlinestaticprivate |
Definition at line 233 of file inventorylocation.c.
References DumpToString().
Referenced by CGame::AddInventoryJunctureEx(), GameInventory::AddInventoryReservationEx(), HandEventBase::CheckRequestSrc(), GameInventory::ClearInventoryReservationEx(), ManBase::CreateCopyOfItemInInventory(), DumpToString(), HandEventBase::DumpToString(), ReplaceItemWithNewLambdaBase::Execute(), GameInventory::ExtendInventoryReservationEx(), ForceSwapEntities(), HumanInventory::ForceSwapEntities(), HandGuardBase::GuardCondition(), HandleForceSwapEntities(), HandleSwapEntities(), HandleTakeToDst(), HumanInventory::OnEntityInHandsCreated(), HumanInventory::OnEntityInHandsDestroyed(), WeaponStateBase::OnEntry(), ActionDigInStash::OnFinishProgressServer(), ManBase::OnQuickBarSingleUse(), GameInventory::OnServerInventoryCommandStatic(), ReplaceItemWithNewLambdaBase::RemoveOldItemFromLocation(), SelectAnimationOfForceSwapInHands(), InventoryInputUserData::SendInputUserDataMove(), InventoryInputUserData::SendInputUserDataSwap(), SendServerHandEventViaJuncture(), InventoryInputUserData::SendServerMove(), InventoryInputUserData::SendServerSwap(), ActionBase::SetupAction(), HumanInventory::SwapEntities(), HumanInventory::TakeToDst(), TakeToDst(), EntityAI::TakeToDstImpl(), TryAcquireInventoryJunctureFromServer(), TryAcquireTwoInventoryJuncturesFromServer(), ReplaceItemWithNewLambdaBase::UndoRemoveOldItemFromLocation(), ValidateDestroy(), ValidateSwap(), and ValidateSyncMove().
|
private |
returns column of cargo if current type is Cargo / ProxyCargo
Referenced by Container::AddedToCargoEx(), GameInventory::CreateInInventory(), DumpToString(), Container::MovedInCargo(), InventoryItem::OnRightClick(), Container::SetLock(), and WriteToContext().
|
private |
Referenced by DropNonUsableMaterialsServer(), DumpToString(), and WriteToContext().
|
private |
returns flip status of cargo
Referenced by GameInventory::CreateInInventory(), ClosableContainer::DropReceived(), ClosableContainer::DropReceived(), HandsContainer::DropReceived(), DumpToString(), InventoryItem::OnRightClick(), Container::SetLock(), and WriteToContext().
|
private |
returns index of cargo if current type is Cargo / ProxyCargo
Referenced by GameInventory::CreateInInventory(), DumpToString(), IsItemInCargoOfSomething(), InventoryItem::OnRightClick(), PumpkinHelmet::UpdateGlowState(), and WriteToContext().
|
private |
returns item of current inventory location
Item can be null if and only if this is a query for location of item that is about to be created (new spawn).
Referenced by CheckForRope(), ActionBase::ClearActionJuncture(), ClearInventoryReservation(), ActionBase::ClearInventoryReservationEx(), HumanInventory::ClearUserReservedLocationAtIndexSynced(), DumpToString(), InventoryItem::EEItemLocationChanged(), HandGuardBase::GuardCondition(), HandleHandEvent(), HandleSwapEntities(), WeaponManager::InventoryReservation(), GameInventory::LocalDestroyEntity(), PluginBase::MoveItemToCorrectPosition(), ActionTakeArrow::OnExecute(), ActionTakeArrowToHands::OnExecute(), WeaponManager::OnInputUserDataProcess(), OnInventoryCheck(), OnInventoryJunctureFailureFromServer(), GameInventory::OnServerInventoryCommandStatic(), ActionBase::RefreshActionJuncture(), ActionBase::RefreshReservations(), ReserveInventory(), SendServerHandEventViaJuncture(), SlotToAnimType(), StaticConstructionMethods::SpawnConstructionMaterialPiles(), HumanInventory::Update(), ValidateDestroy(), ValidateSyncMove(), and WriteToContext().
|
private |
returns parent of current inventory location
Parent entity can be null if item is on ground.
Referenced by InventoryItem::~ItemBase(), ApplyDrynessToItemEx(), ApplyWetnessToItem(), CanAddAsShortcut(), WeaponManager::CanAttachMagazine(), RecipeBase::CanDo(), LayoutHolder::CanEquipEx(), Car::CanReceiveAttachment(), CanSwapEntities(), WeaponManager::CanSwapMagazine(), GameInventory::CreateInInventory(), Icon::DoubleClick(), Icon::DraggingOverSwap(), Icon::DropReceivedFromMain(), DumpToString(), InventoryItem::EEDelete(), GameInventory::EEInit(), InventoryItem::EEItemLocationChanged(), ItemBase::EEKilled(), HandGuardBase::GuardCondition(), Weapon::IsRemoteWeapon(), PluginBase::MoveItemToCorrectPosition(), PlayerContainer::OnDropReceivedFromGhostArea(), InventoryItem::OnRightClick(), HumanInventory::RedirectToHandEvent(), PlayerContainer::Select(), ZombieContainer::Select(), SendServerHandEventViaJuncture(), SlotToAnimType(), PluginBase::SpawnEntityInPlayerInventory(), SplitItemUtils::TakeOrSplitToInventory(), UpdateConsoleToolbar(), ValidateDestroy(), and WriteToContext().
|
private |
returns position of item in world if type is Ground
Referenced by DumpToString(), WeaponStateBase::OnAbort(), WeaponStateBase::OnExit(), ManBase::SpawnEntityOnGroundPos(), PluginBase::SpawnEntityOnGroundPos(), and WriteToContext().
|
private |
returns row of cargo if current type is Cargo / ProxyCargo
Referenced by Container::AddedToCargoEx(), GameInventory::CreateInInventory(), DumpToString(), Container::MovedInCargo(), InventoryItem::OnRightClick(), Container::SetLock(), and WriteToContext().
|
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
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().
|
private |
returns type of InventoryLocation
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().
|
private |
verify current set inventory location
Referenced by Entity::AreChildrenAccessible(), ItemBase::CanLoadAttachment(), InventoryItem::CanReceiveAttachment(), ItemBase::CanReceiveAttachment(), Entity::CanReleaseAttachment(), Icon::DoubleClick(), VicinitySlotsContainer::DoubleClick(), DraggingOverCenterPanel(), ClosableContainer::DraggingOverGrid(), ClosableContainer::DropReceived(), ClosableContainer::DropReceived(), HandsContainer::DropReceived(), ItemBase::EEKilled(), ItemManager::GetCombinationFlags(), HandGuardBase::GuardCondition(), ManBase::HandleRemoteItemManipulation(), GameInventory::IsCargoInHiearchy(), Container::MoveContainerDown(), Container::MoveContainerUp(), WeaponStateBase::OnAbort(), OnCenterPanelDropReceived(), PlayerContainer::OnDropReceivedFromGhostArea(), WeaponStateBase::OnExit(), WeaponManager::OnInputUserDataProcess(), GameInventory::OnServerInventoryCommandStatic(), ReplaceWithNewReciveCargoLambda::OnSuccess(), SendServerHandEventViaJuncture(), InventoryItem::SetQuantity(), InventoryItem::SplitItem(), VicinitySlotsContainer::TransferItem(), and ValidateSwap().
|
inlineprivate |
Definition at line 310 of file inventorylocation.c.
References ErrorEx, Debug::Log(), Serializer::Read(), SetAttachment(), SetCargo(), SetGroundEx(), SetHands(), SetProxyCargo(), and SetVehicle().
Referenced by ManBase::HandleRemoteItemManipulation(), WeaponManager::OnInputUserDataProcess(), OnInventoryCheck(), OnInventoryJunctureFailureFromServer(), PluginBase::OnRPC(), GameInventory::OnServerInventoryCommandStatic(), FirearmActionAttachMagazine::ReadFromContext(), FirearmActionAttachMagazineQuick::ReadFromContext(), FirearmActionDetachMagazine::ReadFromContext(), FirearmActionDetachMagazine_Old::ReadFromContext(), HandEventBase::ReadFromContext(), HandEventRemove::ReadFromContext(), WeaponEventBase::ReadFromContext(), ValidateDestroy(), and ValidateSyncMove().
|
private |
Referenced by CoverHeadOfTargetPlayerLambda::CoverHeadOfTargetPlayerLambda(), FoldBandanaToSlotLambda::FoldBandanaToSlotLambda(), ManBase::HandleRemoteItemManipulation(), FirearmActionAttachMagazine::InventoryReservation(), FirearmActionAttachMagazineQuick::InventoryReservation(), WeaponStateBase::OnEntry(), ActionAttachWithSwitch::OnExecuteClient(), ActionAttachWithSwitch::OnExecuteServer(), WeaponManager::OnInputUserDataProcess(), OnUpdate(), ReadFromContext(), HumanInventory::TakeEntityAsAttachmentEx(), and GameInventory::TakeEntityAsTargetAttachmentEx().
|
private |
Referenced by Icon::DraggingOver(), ClosableContainer::DraggingOverGrid(), AttachmentCategoriesRow::DropReceived(), ClosableContainer::DropReceived(), ClosableContainer::DropReceived(), HandsContainer::DropReceived(), Icon::DropReceivedFromMain(), ManBase::PredictiveTakeEntityToTargetCargoEx(), and GameInventory::TakeEntityToTargetCargoEx().
|
private |
|
private |
Referenced by DestroyItemInCorpsesHandsAndCreateNewOnGndLambda::DestroyItemInCorpsesHandsAndCreateNewOnGndLambda(), ChainedDropAndKillPlayerLambda(), DropEquipAndDestroyRootLambda::CopyOldPropertiesToNew(), DropNonUsableMaterialsServer(), FireplaceToIndoorOvenLambda(), FireplaceToIndoorsLambda(), HandleDropMagazine(), ManBase::PredictiveDropEntity(), Entity::SpawnEntityOnGround(), Entity::SpawnEntityOnGroundPos(), ManBase::SpawnEntityOnGroundPos(), PluginBase::SpawnEntityOnGroundPos(), and ActionUncoverHeadBase::UncoverHead().
Referenced by RepackLambda::RepackLambda(), UngagSelfLambda::UngagSelfLambda(), DayZPlayer::CommandHandlerDebug(), HandEventBase::GetDst(), HandEvent(), ManBase::HandleRemoteItemManipulation(), ActionBase::InventoryReservation(), ActionTakeArrowToHands::InventoryReservation(), FirearmActionAttachMagazine::InventoryReservation(), FirearmActionAttachMagazineQuick::InventoryReservation(), ActionTakeItemToHands::OnExecute(), ActionRemoveSeed::OnExecuteClient(), ManBase::OnQuickBarSingleUse(), WeaponManager::OnWeaponActionEnd(), ReadFromContext(), RestrainTargetPlayerLambda(), and EntityAI::TakeEntityToHandsImpl().
|
private |
|
private |
Referenced by WeaponStateBase::OnEntry().
|
private |
Referenced by TransferInventory().
|
private |
Referenced by ReadFromContext().
|
private |
|
private |
Referenced by PluginBase::RepairItem().
|
inlineprivate |
Definition at line 507 of file inventorylocation.c.
References Error(), GetCol(), GetDir(), GetFlip(), GetIdx(), GetItem(), GetParent(), GetPos(), GetRow(), GetSlot(), GetType(), and Serializer::Write().
Referenced by InventoryItem::OnRightClick(), OptionalLocationWriteToContext(), and InventoryInputUserData::SerializeInventoryCheckForItem().