DIFF

class ConstructionActionData

Constructors 2

Members 23

Object m_Target
Referenced by GetTarget(), and SetTarget()
ref array<ConstructionPart> m_BuildPartsNoTool

used only for ShelterSite building (legacy)

ref array<ConstructionPart> m_BuildPartsHandsGeneric

used for generic construction, EXCEPT for ShelterSites

protected bool m_IsValid

validated from main update method on each simulation step

int m_PartIndex

used on client only, action synchronizes it to server to avoid mismatch

string m_MainPartName

unused?

ref ConstructionPart m_TargetPart
Referenced by GetTargetPart(), and SetTargetPart()
int m_CombinationLockSide = -1
PlayerBase m_ActionInitiator
protected ActionVariantManager m_ActionNoToolVariantManager
protected ActionVariantManager m_ActionHandsGenericVariantManager
protected ActionVariantManager m_ActionInfoContinuousVariantManager
protected ActionVariantManager m_ActionVariantManagerInstantDIAG_DEVELOPER
private int m_FastConstructionModeDIAG_DEVELOPER
int m_SlotId
Referenced by GetSlotId(), and SetSlotId()

Methods 42

string GetMainPartName()
References m_MainPartName
string GetMainPartNameNoTool()
Object GetTarget()
References m_Target
PlayerBase GetActionInitiator()
void Invalidate()

to be called from outside

References m_IsValid
protected void Validate()
References m_IsValid
protected void ValidateConstructionData(Object item, Object target, int component_index)

Single update method to prepare and validate all construction data for the update, to avoid multiple iteration over the same parts array

References Validate(), and m_IsValid
int GetConstructionPartsCount()
References array.Count(), and m_BuildParts
void SetNextAttachmentIndex()
void ResetActionIndexes()
void SetFastConstructionMode(int mode)DIAG_DEVELOPER
ConstructionPart GetCurrentBuildPart()
void RefreshPartsToBuild(string main_part_name, ItemBase tool, bool use_tool = true)
void SetSlotId(int slot_id)
References m_SlotId
int GetSlotId()
References m_SlotId