class ConstructionActionDataSource
Constructors 2
void ConstructionActionData()References ScriptInvoker.Clear(), ScriptInvoker.Clear(), ActionVariantManager.GetOnUpdateInvoker()
Show 13 more
, ActionVariantManager.GetOnUpdateInvoker(), ActionManagerClient.GetVariantManager(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), CGame.IsClient(), CGame.IsMultiplayer(), m_ActionNoToolVariantManager, m_ActionVariantManager, m_Attachments, m_AttachmentsIndex, m_BuildParts, m_BuildPartsNoTool, and m_PartIndexReferenced by PlayerBase.OnSelectPlayer()
void ~ConstructionActionData()Members 14
Object m_Targetref array<ConstructionPart> m_BuildPartsReferenced by ConstructionActionData(), GetBuildPartAtIndex(), GetConstructionPartsCount()
Show 1 more
, OnUpdateActions()ref array<ConstructionPart> m_BuildPartsNoToolint m_PartIndexused on client only, action synchronizes it to server to avoid mismatch
string m_MainPartNamestring m_MainPartNameNoToolref ConstructionPart m_TargetPartCombinationLock m_CombinationLockint m_SlotIdPlayerBase m_ActionInitiatorReferenced by ConstructionActionData(), GetActualAttachmentToDetach(), GetAttachmentsToDetachCount()
Show 1 more
, RefreshAttachmentsToDetach()protected ActionVariantManager m_ActionVariantManagerprotected ActionVariantManager m_ActionNoToolVariantManagerint m_AttachmentsIndexReferenced by ConstructionActionData(), GetActualAttachmentToDetach(), ResetActionIndexes()
Show 1 more
, SetNextAttachmentIndex()Methods 29
string GetMainPartName()References m_MainPartName
string GetMainPartNameNoTool()References m_MainPartNameNoTool
void SetTarget(Object target)References m_Target
Referenced by MiscGameplayFunctions.BuildCondition()
void SetTargetPart(ConstructionPart target_part)References m_TargetPart
ConstructionPart GetTargetPart()References m_TargetPart
void SetSlotId(int slot_id)References m_SlotId
Referenced by ActionAttachToConstruction.ActionCondition()
void SetActionInitiator(PlayerBase action_initiator)References m_ActionInitiator
PlayerBase GetActionInitiator()References m_ActionInitiator
Referenced by Watchtower.CanReceiveAttachment()
void SetNextIndex()int GetConstructionPartsCount()ConstructionPart GetCurrentBuildPart()ConstructionPart GetBuildPartAtIndex(int idx)ConstructionPart GetBuildPartNoToolAtIndex(int idx)CombinationLock GetCombinationLock()References m_CombinationLock
void SetCombinationLock(CombinationLock combination_lock)string GetDialNumberText()int GetAttachmentSlotFromSelection(PlayerBase player, EntityAI target, ItemBase item_to_attach, string selection)References GameInventory.CanAddAttachmentEx(), ItemBase.CanBeCombined(), EntityAI.CanDisplayAttachmentSlot()
Show 16 more
, EntityAI.CanReceiveAttachment(), Class.Cast(), CGame.ConfigGetChildName(), CGame.ConfigGetChildrenCount(), CGame.ConfigGetText(), CGame.ConfigGetTextArray(), CGame.ConfigIsExisting(), array.Count(), GameInventory.FindAttachment(), array.Get(), EntityAI.GetInventory(), EntityAI.GetInventory(), GameInventory.GetSlotId(), GameInventory.GetSlotIdCount(), InventorySlots.GetSlotIdFromString(), and Object.GetType()Referenced by ActionAttachToConstruction.ActionCondition()
void GetAttachmentsFromSelection(EntityAI target, string selection, out array<EntityAI> attachments)References GameInventory.CanRemoveAttachmentEx(), array.Clear(), CGame.ConfigGetChildName()
Show 12 more
, CGame.ConfigGetChildrenCount(), CGame.ConfigGetText(), CGame.ConfigGetTextArray(), CGame.ConfigIsExisting(), array.Count(), GameInventory.FindAttachment(), array.Get(), EntityAI.GetInventory(), InventorySlots.GetSlotIdFromString(), GameInventory.GetSlotLock(), Object.GetType(), and array.Insert()Referenced by RefreshAttachmentsToDetach()
References ItemBase.AddQuantity(), ItemBase.AddQuantity(), ItemBase.ComputeQuantityUsed()
Show 2 more
, Object.ConfigGetBool(), and ItemBase.IsFullQuantity()void SetNextAttachmentIndex()Referenced by ActionTakeMaterialToHandsSwitch.Start()
int GetAttachmentsToDetachCount()EntityAI GetActualAttachmentToDetach()References Math.Clamp(), array.Get(), GetAttachmentsToDetachCount()
Show 2 more
, m_Attachments, and m_AttachmentsIndexvoid ResetActionIndexes()Referenced by PlayerBase.ResetConstructionActionData()