class ConstructionSource
Constructors 1
void Construction(BaseBuildingBase parent)Referenced by BaseBuildingBase.ConstructionInit()
Constants 2
static const float REPAIR_MATERIAL_PERCENTAGE = 0.15static const float DECONSTURCT_MATERIAL_LOSS = 0.2Members 4
protected ref map<string, ref ConstructionPart> m_ConstructionPartsstring - part name; int - 0-not constructed, 1-constructed
protected BaseBuildingBase m_ParentReferenced by AddToConstructedParts(), GetParent(), InitBaseState()
Show 5 more
, InitVisuals(), RemoveFromConstructedParts(), SetParent(), UpdatePhysics(), and UpdateVisuals()protected Shape m_CollisionBoxprotected ConstructionBoxTrigger m_ConstructionBoxTriggerMethods 57
protected BaseBuildingBase GetParent()References m_Parent
Referenced by BuildPartServer(), CanUseToolToBuildPart(), CanUseToolToDismantlePart()
Show 24 more
, CreateCollisionTrigger(), DestroyMaterialsServer(), DestroyPartServer(), DismantlePartServer(), DrawDebugCollisionBox(), DropNonUsableMaterialsServer(), GetCollisionBoxData(), GetMaterialType(), GetRequiredParts(), HasConflictPart(), HasMaterials(), HasMaterialWithQuantityAttached(), HasRequiredPart(), HideConstructionPart(), HideConstructionPartPhysics(), IsColliding(), IsCollidingEx(), MaterialIsRuined(), ReceiveMaterialsServer(), SetLockOnAttachedMaterials(), ShowConstructionPart(), ShowConstructionPartPhysics(), TakeMaterialsServer(), and UpdateConstructionParts()void AddToConstructedParts(string part_name)Referenced by BaseBuildingBase.SetPartFromSyncData()
void RemoveFromConstructedParts(string part_name)Referenced by BaseBuildingBase.SetPartFromSyncData()
References bsbDebugPrint(), DropNonUsableMaterialsServer(), DamageSystem.GetDamageZoneFromComponentName()
Referenced by ActionDismantlePart.OnFinishProgressServer()
void DestroyPartServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part = false)void DestroyConnectedParts(string part_name)References bsbDebugPrint(), array.Count(), DestroyPartServer()
Show 4 more
, ExceptionCheck(), array.Get(), GetValidDepenentPartsArray(), and LogManager.IsBaseBuildingLogEnable()Referenced by BaseBuildingBase.EEHealthLevelChanged()
Exceptions from 'dependent parts' hierarchy are handled here
Referenced by DestroyConnectedParts()
void UpdateVisuals()Referenced by BaseBuildingBase.FullyBuild(), BaseBuildingBase.InitVisuals(), BaseBuildingBase.UpdateVisuals()
Show 1 more
, StaticFlagPole.FullyBuild()void UpdatePhysics()Referenced by BaseBuildingBase.UpdatePhysics()
void InitBaseState()References bsbDebugPrint(), Object.GetDebugName(), InitVisuals()
Show 2 more
, LogManager.IsBaseBuildingLogEnable(), and m_ParentReferenced by BaseBuildingBase.InitBaseState()
protected void UpdateConstructionParts()References bsbDebugPrint(), map.Clear(), CGame.ConfigGetChildName()
Show 12 more
, CGame.ConfigGetChildrenCount(), CGame.ConfigGetInt(), CGame.ConfigGetTextRaw(), CGame.ConfigIsExisting(), new ConstructionPart(), CGame.FormatRawConfigStringKeys(), GetParent(), GetRequiredParts(), Object.GetType(), map.Insert(), LogManager.IsBaseBuildingLogEnable(), and m_ConstructionPartsReferenced by Init()
map<string, ref ConstructionPart> GetConstructionParts()References m_ConstructionParts
ConstructionPart GetConstructionPart(string part_name)Referenced by ActionRepairPart.RepairCondition(), BaseBuildingBase.EEHealthLevelChanged(), BaseBuildingBase.OnPartBuiltServer()
Show 32 more
, BaseBuildingBase.OnPartDestroyedServer(), BaseBuildingBase.OnPartDismantledServer(), AddToConstructedParts(), CanUseToolToBuildPart(), CanUseToolToDismantlePart(), DestroyMaterialsServer(), DropNonUsableMaterialsServer(), ExceptionCheck(), GetCollisionBoxData(), GetConstructionPartToDestroy(), GetConstructionPartToDismantle(), GetMaterialType(), HasConflictPart(), HasMaterials(), HasRequiredPart(), IsColliding(), IsCollidingEx(), IsPartConstructed(), MaterialIsRuined(), ReceiveMaterialsServer(), RemoveFromConstructedParts(), SetLockOnAttachedMaterials(), TakeMaterialsServer(), Fence.CheckGateState(), Fence.GateAttachmentConditions(), Fence.GateAttachmentsSanityCheck(), Fence.OnPartBuiltServer(), Fence.OnPartDestroyedServer(), Fence.OnPartDismantledServer(), ShelterSite.OnPartBuiltServer(), StaticFlagPole.FullyBuild(), and TerritoryFlag.OnPartDismantledServer()References CanUseToolToBuildPart(), HasConflictPart(), HasMaterials()
Show 3 more
, HasRequiredPart(), IsPartConstructed(), and MaterialIsRuined()Referenced by CanBuildPart()
void GetConstructionPartsToBuild(string main_part_name, out array<ConstructionPart> construction_parts, ItemBase tool, out string real_constructionTarget, bool use_tool)ConstructionPart GetBaseConstructionPart()References map.Count(), map.Get(), map.GetKey()
Show 2 more
, ConstructionPart.IsBase(), and m_ConstructionPartsReferenced by BaseBuildingBase.SetPartsAfterStoreLoad()
ConstructionPart GetGateConstructionPart()References map.Count(), map.Get(), map.GetKey()
Show 2 more
, ConstructionPart.IsGate(), and m_ConstructionPartsReferenced by CanBuildPart()
Referenced by CanBuildPart()
ConstructionPart GetConstructionPartToDismantle(string part_name, ItemBase tool)Referenced by ActionDismantlePart.DismantleCondition()
References map.Count(), array.Find(), map.Get()
Show 4 more
, map.GetKey(), ConstructionPart.GetRequiredParts(), ConstructionPart.IsBuilt(), and m_ConstructionPartsReferenced by DestroyConnectedParts()
Referenced by UpdateConstructionParts()
ConstructionPart GetConstructionPartToDestroy(string part_name)Referenced by ActionDestroyPart.DestroyCondition()
protected void ShowConstructionPart(string part_name)References bsbDebugPrint(), GetParent(), LogManager.IsBaseBuildingLogEnable()
Show 1 more
, Entity.SetAnimationPhase()protected void HideConstructionPart(string part_name)References bsbDebugPrint(), GetParent(), LogManager.IsBaseBuildingLogEnable()
Show 1 more
, Entity.SetAnimationPhase()Referenced by UpdateVisuals()
void ShowConstructionPartPhysics(string part_name)void HideConstructionPartPhysics(string part_name)Referenced by BaseBuildingBase.EEHealthLevelChanged(), CanBuildPart(), CanDestroyPart()
Show 9 more
, CanDismantlePart(), HasConflictPart(), HasRequiredPart(), TerritoryFlag.CanDisplayAttachmentCategory(), TerritoryFlag.CanReceiveAttachment(), Watchtower.CanDisplayAttachmentCategory(), Watchtower.CanDisplayAttachmentSlot(), Watchtower.CheckSlotVerticalDistance(), and Watchtower.UpdateVisuals()References Class.Cast(), EntityAI.FindAttachmentBySlotName(), GetParent()
Show 1 more
, ItemBase.GetQuantity()Referenced by HasMaterials()
References ItemBase.AddQuantity(), Class.Cast(), CGame.ConfigGetChildName()
Show 19 more
, CGame.ConfigGetChildrenCount(), CGame.ConfigGetFloat(), CGame.ConfigGetInt(), CGame.ConfigGetText(), CGame.ConfigIsExisting(), EntityAI.FindAttachmentBySlotName(), Math.Floor(), GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMainPartName(), GetParent(), InventoryLocation.GetSlot(), Object.GetType(), Math.Max(), CGame.ObjectDelete(), GameInventory.SetSlotLock(), and REPAIR_MATERIAL_PERCENTAGEReferenced by DismantlePartServer()
References bsbDebugPrint(), Class.Cast(), CGame.ConfigGetChildName()
Show 18 more
, CGame.ConfigGetChildrenCount(), CGame.ConfigGetFloat(), CGame.ConfigGetInt(), CGame.ConfigGetText(), CGame.ConfigIsExisting(), EntityAI.FindAttachmentBySlotName(), GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), Object.GetDebugName(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMainPartName(), GetParent(), InventoryLocation.GetSlot(), Object.GetType(), LogManager.IsBaseBuildingLogEnable(), CGame.ObjectDelete(), and GameInventory.SetSlotLock()Referenced by DestroyPartServer()
References ItemBase.AddQuantity(), bsbDebugPrint(), Class.Cast()
Show 48 more
, Class.Cast(), CGame.ConfigGetChildName(), CGame.ConfigGetChildrenCount(), CGame.ConfigGetText(), CGame.ConfigGetTextArray(), CGame.ConfigIsExisting(), string.Contains(), array.Count(), MiscGameplayFunctions.CreateItemBasePiles(), MiscGameplayFunctions.CreateItemBasePilesDispersed(), EntityAI.Delete(), EntityAI.FindAttachmentBySlotName(), array.Get(), GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), Object.GetDebugName(), InventoryLocation.GetDir(), MiscGameplayFunctions.GetHeadBonePos(), Object.GetHealth(), EntityAI.GetInventory(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMainPartName(), Object.GetMemoryPointPos(), GetParent(), ConstructionPart.GetPartName(), ItemBase.GetQuantity(), InventoryLocation.GetSlot(), ItemBase.GetTargetQuantityMax(), IEntity.GetTransform(), Object.GetType(), Object.GetType(), ConstructionPart.IsBase(), LogManager.IsBaseBuildingLogEnable(), CGame.IsMultiplayer(), string.Length(), EntityAI.LocalTakeToDst(), GameInventory.LocationCreateEntity(), Object.MemoryPointExists(), CGame.ObjectModelToWorld(), EntityAI.ServerTakeToDst(), InventoryLocation.SetGround(), InventoryLocation.SetGroundEx(), ItemBase.SetQuantity(), GameInventory.SetSlotLock(), string.ToLower(), MiscGameplayFunctions.TransferItemProperties(), and UAItemsSpreadRadius.NARROWReferences bsbDebugPrint(), Class.Cast(), CGame.ConfigGetChildName()
Show 17 more
, CGame.ConfigGetChildrenCount(), CGame.ConfigGetFloat(), CGame.ConfigGetInt(), CGame.ConfigGetText(), CGame.ConfigIsExisting(), EntityAI.FindAttachmentBySlotName(), GetConstructionPart(), GameInventory.GetCurrentInventoryLocation(), Object.GetDebugName(), EntityAI.GetInventory(), EntityAI.GetInventory(), ConstructionPart.GetMainPartName(), GetParent(), InventoryLocation.GetSlot(), Object.GetType(), LogManager.IsBaseBuildingLogEnable(), and GameInventory.SetSlotLock()Referenced by BaseBuildingBase.SetPartFromSyncData()
Referenced by CanBuildPart()
Referenced by CanDismantlePart()
ConstructionMaterialType GetMaterialType(string part_name)References CGame.ConfigGetInt(), CGame.ConfigIsExisting(), GetConstructionPart()
Show 4 more
, ConstructionPart.GetMainPartName(), GetParent(), ConstructionPart.GetPartName(), and Object.GetType()References Class.Cast(), array.Count(), array.Get()
Show 12 more
, GetBoxCenter(), GetCollisionBoxData(), GetCollisionBoxSize(), GetConstructionPart(), CfgGameplayHandler.GetDisableIsCollidingCheck(), Object.GetOrientation(), GetParent(), array.Insert(), CGame.IsBoxCollidingGeometry(), EntityAI.IsIgnoredByConstruction(), Object.ModelToWorld(), and Vector()bool IsCollidingEx(CollisionCheckData check_data)Collision check for building part
References Class.Cast(), array.Count(), array.Count()
Show 18 more
, array.Get(), GetBoxCenter(), GetCollisionBoxData(), GetCollisionBoxSize(), GetConstructionPart(), CfgGameplayHandler.GetDisableIsCollidingCheck(), Object.GetOrientation(), GetParent(), array.Insert(), array.InsertAll(), CGame.IsBoxCollidingGeometry(), EntityAI.IsIgnoredByConstruction(), Object.ModelToWorld(), Vector(), CollisionCheckData.m_AdditionalExcludes, CollisionCheckData.m_PartName, CollisionCheckData.m_PrimaryGeometry, and CollisionCheckData.m_SecondaryGeometryReferences Vector()
References GetCollisionBoxSize()
References DestroyDebugCollisionBox(), Debug.DrawBox(), GetParent()
Show 3 more
, IEntity.GetTransform(), Shape.SetMatrix(), and m_CollisionBoxprotected void DestroyDebugCollisionBox()Referenced by DrawDebugCollisionBox()
void DestroyCollisionTrigger()bool IsTriggerColliding()