DIFF

class BaseBuildingBaseSource

BaseBuildingBase ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 1

Constants 11

const string ANIMATION_DEPLOYED = "Deployed"
const string SOUND_BUILD_WOOD_LOG = "putDown_WoodLog_SoundSet"
const string SOUND_BUILD_WOOD_PLANK = "putDown_WoodPlank_SoundSet"
const string SOUND_BUILD_WOOD_STAIRS = "putDown_WoodStairs_SoundSet"
const string SOUND_BUILD_METAL = "putDown_MetalPlank_SoundSet"
const string SOUND_BUILD_WIRE = "putDown_BarbedWire_SoundSet"
const string SOUND_DISMANTLE_WOOD_LOG = "Crash_WoodPlank_SoundSet"
const string SOUND_DISMANTLE_WOOD_PLANK = "Crash_WoodPlank_SoundSet"
const string SOUND_DISMANTLE_WOOD_STAIRS = "Crash_WoodPlank_SoundSet"
const string SOUND_DISMANTLE_METAL = "Crash_MetalPlank_SoundSet"
const string SOUND_DISMANTLE_WIRE = "putDown_BarbedWire_SoundSet"

Members 12

float m_ConstructionKitHealth

stored health value for used construction kit

ref Construction m_Construction
bool m_HasBase
Referenced by HasBase(), OnStoreLoad(), OnStoreSave()
Show 1 more, SetBaseState()
int m_SyncParts01

synchronization for already built parts (31 parts)

int m_SyncParts02

synchronization for already built parts (+31 parts)

int m_SyncParts03

synchronization for already built parts (+31 parts)

int m_InteractedPartId

construction part id that an action was performed on

int m_PerformedActionId

action id that was performed on a construction part

ref map<string, ref AreaDamageManager> m_DamageTriggers
ref array<string> m_HybridAttachments
ref array<string> m_Mountables

Methods 97

override void EEDelete(EntityAI parent)
override string GetInvulnerabilityTypeString()
override bool CanObstruct()
override int GetHideIconMask()
override string GetLoopFoldSoundset()
Referenced by InitItemSounds()
protected void OnSynchronizedClient()
void RegisterPartForSync(int part_id)
void UnregisterPartForSync(int part_id)
bool IsPartBuildInSyncData(int part_id)
Referenced by SetPartFromSyncData()
protected void RegisterActionForSync(int part_id, int action_id)
protected void ResetActionSyncData()
void SetPartsFromSyncData()
protected ConstructionPart GetConstructionPartById(int id)
References Count(), Get(), GetConstruction()
Show 3 more, Construction.GetConstructionParts(), ConstructionPart.GetId(), and map.GetKey()
void SetBaseState(bool has_base)
References m_HasBase
override bool IsDeployable()
protected vector GetKitSpawnPosition()
protected string GetConstructionKitType()
void DestroyConstructionKit(ItemBase construction_kit)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override void OnCreatePhysics()
override void EEOnAfterLoad()
override void EEInit()
override void EEItemAttached(EntityAI item, string slot_name)
override void EEItemDetached(EntityAI item, string slot_name)
protected void OnSetSlotLock(int slotId, bool locked, bool was_locked)
override bool IgnoreOutOfReachCondition()
void OnPartBuiltClient(string part_name, int action_id)
void OnPartDismantledClient(string part_name, int action_id)
void OnPartDestroyedClient(string part_name, int action_id)
protected void HandleItemFalling(ConstructionPart part)

Disconnected temporarily

protected void ItemFall(vector min, vector max)

Disconnected temporarily

Referenced by HandleItemFalling()
override bool CanUseConstructionBuild()
protected bool IsAttachmentSlotLocked(string slot_name)
Referenced by UpdatePhysics(), and UpdateVisuals()
void GetAttachmentSlots(EntityAI entity, out array<string> attachment_slots)
Referenced by UpdatePhysics(), and UpdateVisuals()
bool CheckSlotVerticalDistance(int slot_id, PlayerBase player)
protected bool CheckMemoryPointVerticalDistance(float max_dist, string selection, PlayerBase player)
protected bool CheckLevelVerticalDistance(float max_dist, string selection, PlayerBase player)
void ConstructionInit()
Construction GetConstruction()
References m_Construction
Referenced by ActionBuildPart.ActionConditionContinue(), ActionBuildPart.OnFinishProgressServer(), ActionBuildShelter.ActionConditionContinue()
Show 43 more, ActionBuildShelter.OnFinishProgressServer(), ActionDestroyPart.DestroyCondition(), ActionDestroyPart.OnFinishProgressServer(), ActionDismantlePart.DismantleCondition(), ActionDismantlePart.OnFinishProgressServer(), ActionRepairPart.OnFinishProgressServer(), ActionRepairPart.RepairCondition(), ConstructionInit(), CreateAreaDamage(), EEHealthLevelChanged(), FullyBuild(), GetBuildSoundByMaterial(), GetConstructionPartById(), GetDismantleSoundByMaterial(), InitBaseState(), InitVisuals(), OnPartBuiltServer(), OnPartDestroyedServer(), OnPartDismantledServer(), SetPartFromSyncData(), SetPartsAfterStoreLoad(), SetPartsFromSyncData(), UpdatePhysics(), UpdateVisuals(), ConstructionActionData.OnUpdateActions(), ConstructionActionData.OnUpdateActionsNoTool(), Fence.AfterStoreLoad(), Fence.CheckGateState(), Fence.GateAttachmentConditions(), Fence.GateAttachmentsSanityCheck(), Fence.OnPartBuiltServer(), Fence.OnPartDestroyedServer(), Fence.OnPartDismantledServer(), MiscGameplayFunctions.ComplexBuildCollideCheckClient(), ShelterSite.OnPartBuiltServer(), StaticFlagPole.FullyBuild(), TerritoryFlag.CanDisplayAttachmentCategory(), TerritoryFlag.CanReceiveAttachment(), TerritoryFlag.OnPartDismantledServer(), Watchtower.CanDisplayAttachmentCategory(), Watchtower.CanDisplayAttachmentSlot(), Watchtower.CheckSlotVerticalDistance(), and Watchtower.UpdateVisuals()
bool HasAttachmentsBesidesBase()
override bool ShowZonesHealth()
override bool IsTakeable()
override bool CanPutInCargo(EntityAI parent)
override bool CanRemoveFromCargo(EntityAI parent)
override bool CanPutIntoHands(EntityAI parent)
override bool IsFacingPlayer(PlayerBase player, string selection)
bool MustBeBuiltFromOutside()

Some buildings can only be built from outside

bool PerformRoofCheckForBase(string partName, PlayerBase player, out bool result)
bool HasProperDistance(string selection, PlayerBase player)
ItemBase FoldBaseBuildingObject()
void CalcDamageAreaRotation(float angle_deg, out vector center, out vector orientation)
Referenced by CreateAreaDamage()
override bool IsIgnoredByConstruction()
protected void SoundBuildStart(string part_name)
Referenced by OnPartBuiltClient()
protected void SoundDismantleStart(string part_name)
protected void SoundDestroyStart(string part_name)
void CheckForHybridAttachments(EntityAI item, string slot_name)
Referenced by EEItemAttached()
override int GetDamageSystemVersionChange()
protected void DebugCustomState()
Referenced by EEInit()
array<string> OnDebugSpawnBuildExcludes()

Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare

Referenced by FullyBuild()
override void OnDebugSpawn()
References FullyBuild()