Romestead Assembly Reference

CandideServer.Buildings.BuildingControllers.AbstractBuildingController

Type JSON

public class in CandideServer.Buildings.BuildingControllers

Methods20
Properties1
Fields8
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.Buildings.BuildingControllers
  • Base typeSystem.Object
  • Hash9EFE45E8CF18B8F7BDB20C9F5F09D4932E75353E6B261219A7EEF625236A9E98

Relationships

Base type

System.Object

Derived types

Referenced by types

Fields

NameVisibilitySignature
BiomeStatModifierIdpublicpublic System.Guid BiomeStatModifierId
Buildingpublicpublic CandideServer.SimulationModels.BuildingSimulationModel Building
JobTickRatepublicpublic System.Single JobTickRate
ReUseBuildingIdsListprivateprivate System.Collections.Generic.HashSet<System.Guid> ReUseBuildingIdsList
ReUseWorkOrdersToBeRemovedListprivateprivate System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel> ReUseWorkOrdersToBeRemovedList
SpawnedEntitiespublicpublic System.Collections.Generic.List<System.Guid> SpawnedEntities
Timerpublicpublic System.Single Timer
_sendUnusedResourcesBackThroughLogisticsprivateprivate System.Boolean _sendUnusedResourcesBackThroughLogistics

Properties

NameVisibilitySignature
BuildingUpgradeRankpublicpublic System.Int32 BuildingUpgradeRank

Methods

AfterJobTimerTick

protected System.Void AfterJobTimerTick(System.Boolean didFurnaceWork)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • HashC3B0EF6B1A38FFE5C71E840C896D1D598069565DF23A9D1307CCE935DF5E40CA
  • Body hash8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55
  • IL size1
Called by

DefaultFinishCurrentWorkOrderHandle

protected System.Boolean DefaultFinishCurrentWorkOrderHandle(CandideServer.Models.JobModel job, CandideServer.Models.Citizen.CitizenModel citizen)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Boolean
  • StaticFalse
  • VirtualFalse
  • HashA2DBDEE6E2BD66B3028FC73B12EA02A31752B68EACEEF0D6D3465E96DB2A4AE0
  • Body hash3F14F043AE5C9EC976089EDB292DD4372A50CE5B8F1A4BC3F0A5FD7B9F15CD2A
  • IL size9
Referenced calls
Called by

DefaultFinishWorkOrderHandleNoCitizen

protected System.Boolean DefaultFinishWorkOrderHandleNoCitizen(Shared.Data.DataModels.WorkOrderType type, Shared.Models.Items.ItemAmount[] itemIngredients, Shared.Models.Items.ResourceAmount[] resourceIngredients, System.String outputCraftedId, System.Int32 amount, System.String auraId)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Boolean
  • StaticFalse
  • VirtualFalse
  • Hash708D37B425A68F5B384C8990F166B297A83806F866076FCD18A3515DBFD6260A
  • Body hash37DB8223B63379BD2D07C3B49B8C55CCF46F02214099CE36CFBF1688ECBD045E
  • IL size386
Referenced calls
Called by
String literals
  • Work order has special output type
  • Couldn't find StorageInventory for

GetInternalResourceStorageModel

public CandideServer.Models.InternalResourceStorageModel GetInternalResourceStorageModel()

Method metadata
  • Visibilitypublic
  • Return typeCandideServer.Models.InternalResourceStorageModel
  • StaticFalse
  • VirtualFalse
  • HashC29DCA6B5EEBD86F87EBC10F9159E8CC913DA9A255C0FBA92974342291B125B2
  • Body hashC16BE10D149CBF2D6508000F4112B319EB32C8BE514A5A44E847BAB96A308D62
  • IL size56
Referenced calls
Called by

GetOutputInventory

public Shared.Models.Items.SharedInventoryModel GetOutputInventory()

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.SharedInventoryModel
  • StaticFalse
  • VirtualFalse
  • Hash18EA83D12C6889F7EF03F52322249CB86D48ECCD6A3C7538DC101F9F71241C97
  • Body hashCABB8DEB9E2DBB14879EB4520B96B1ABEC9AB8828C3356F59CFCAB131F38158F
  • IL size56
Referenced calls
Called by

GetOutputResourceStorageModel

public CandideServer.Models.InternalResourceStorageModel GetOutputResourceStorageModel()

Method metadata
  • Visibilitypublic
  • Return typeCandideServer.Models.InternalResourceStorageModel
  • StaticFalse
  • VirtualFalse
  • Hash2116435A6713A4DA218F2B5DC8160D60B3973E681CE85D20FDFB3E5B987EB71A
  • Body hashA3D860646EB73DA8D094140BD8D0697F51CAE957AC7D27C7C251252CDCDC849D
  • IL size56
Referenced calls
Called by

GetSpawnPositionForCitizen

public CandideServer.Buildings.BuildingControllers.CitizenPositionData GetSpawnPositionForCitizen(CandideServer.Models.Citizen.CitizenModel citizen, CandideServer.Models.Citizen.CitizenSlotModel slot)

Method metadata
Referenced calls
  • AbstractBuildingController.<>c__DisplayClass14_0::.ctor()
  • Microsoft.Xna.Framework.Rectangle::get_Location()
  • CandideCreator.Shared.Helpers.VectorExtension::ToVector3Xy(Microsoft.Xna.Framework.Point)
  • Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)
  • Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)
  • System.ValueTuple<System.Guid, Microsoft.Xna.Framework.Vector3>::.ctor(!0, !1)
  • System.Nullable<System.Guid>::get_Value()
  • System.ArgumentOutOfRangeException::.ctor()
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Worlds.WorldModel>::TryGetValue(!0, !1&)
  • CandideCreator.Shared.Models.World::get_PathNodes()
  • AbstractBuildingController.<>c__DisplayClass14_0::<GetSpawnPositionForCitizen>b__0(PathNode)
  • System.Func<PathNode, System.Boolean>::.ctor(System.Object, System.IntPtr)
  • System.Linq.Enumerable::FirstOrDefault(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, System.Boolean>)
  • AbstractBuildingController.<>c::<GetSpawnPositionForCitizen>b__14_1(PathNode)
  • CandideCreator.Shared.Helpers.VectorExtension::ToVector2Xz(Microsoft.Xna.Framework.Vector3)
  • Microsoft.Xna.Framework.Point::ToVector2()
  • Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)
  • Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
  • CandideCreator.Shared.Helpers.VectorExtension::ToVector3Xy(Microsoft.Xna.Framework.Vector2)
  • PathNode::get_Data()
Called by

GetStorageInventory

public Shared.Models.Items.SharedInventoryModel GetStorageInventory()

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.SharedInventoryModel
  • StaticFalse
  • VirtualFalse
  • HashFC208D2C7234615A9E58B49F9B803CA5B720D5714D433DE4AF79109129DE867C
  • Body hash034EB70B42E22D9933146DFB9F65D2BE6F061AE527D6B7D0636DF55E3A31F49D
  • IL size56
Referenced calls
Called by

OnBuildingRemove

public System.Void OnBuildingRemove()

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • Hash2B18B5A6241AFB353B97DA78CCA7B8FB404900DA2499FC221CBC7EF0572748FE
  • Body hashFDB2A2A0B0F0810BB29724BF543C54DDFADCF3E4D851ED15EF4923A69F9769C0
  • IL size81
Referenced calls
Called by

OnCitizenAssignedToSlot

public System.Void OnCitizenAssignedToSlot(CandideServer.Models.Citizen.CitizenModel citizen, CandideServer.Models.Citizen.CitizenSlotModel slot)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • Hash67FDA0BBD3515C56135C4AE6C6971B2ECAE07380579205867674DA5635586398
  • Body hash8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55
  • IL size1
Called by

OnNewlyCreated

public System.Void OnNewlyCreated()

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • Hash4CBBAC38B805C29BDBE7728A67481420691D640F3957AC81354AD15868BC85B9

OnTickJob

protected System.Void OnTickJob(CandideServer.Models.Citizen.CitizenModel citizen, CandideServer.Models.JobModel job)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • Hash38F5EB51ACC4B3D974CCFD653E8B2E2B6BB0A7BDA60E9E2FBFB5764B1142F7EC
  • Body hash8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55
  • IL size1
Called by

OnUpgraded

public System.Void OnUpgraded(Shared.Models.Construction.ConstructionModel upgradeConstructionModel, Shared.Models.Buildings.BuildingData upgradedBuildingData)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • HashBCCAF7E498CF1F061EC88EC195E8E5D86D56ECB6AF68804058726474D76B5B39
  • Body hash8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55
  • IL size1
Called by

OnWorkOrderRemoved

public System.Void OnWorkOrderRemoved(CandideServer.Models.JobModel job)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash609D8F3FDD7CD53B1A0DA62DB0FAF86B06741C30F6EC9EE4E24912F5EE591241
  • Body hashB92AE1D641EC6671C7E5343F32EA3DD6822ED9FFC57953DAD602D571A49A2871
  • IL size16
Referenced calls
Called by

RemoveFlaggedWorkOrders

protected System.Boolean RemoveFlaggedWorkOrders(CandideServer.Models.JobModel job)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Boolean
  • StaticFalse
  • VirtualFalse
  • HashB6D57D00C274417137E91F44A99252013326BE87C04FD71FDB4CAC81E03913DF
  • Body hash7D2E5E732E26949BCA14491F2EC04FF880933EFBD255DB123E5FC419E28D2118
  • IL size162
Referenced calls
  • System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel>::GetEnumerator()
  • List.Enumerator<CandideServer.Models.WorkOrders.WorkOrderModel>::get_Current()
  • System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel>::Add(!0)
  • List.Enumerator<CandideServer.Models.WorkOrders.WorkOrderModel>::MoveNext()
  • System.IDisposable::Dispose()
  • CandideServer.Models.JobModel::get_CurrentWorkOrder()
  • System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel>::Remove(!0)
  • System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel>::Clear()
Called by

TryMoveInternalResourcesBackThroughRequestingInputs

private System.Void TryMoveInternalResourcesBackThroughRequestingInputs(CandideServer.Models.JobModel job)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • HashAA8457DDA04DE0E80D322C1333BBC3B33C3F62BA82D1C9D692BC33E407BB8618
  • Body hash59ACE05EFADDFCA74D0D9D63F81A759169AA647A01B9A42C633D890750631E3C
  • IL size382
Referenced calls
Called by
String literals
  • material_storage

Update

public System.Void Update(System.Single dt)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualTrue
  • Hash6C5810676BC7C276F1D76DEBAA46D7630E670E6A395010270C21A6D3538B0894
  • Body hashEA0FE3BE21FE5F60617919FB66AA62FF12F61462FCB29450831BFE240006A9BD
  • IL size442
Referenced calls
Called by
String literals
  • Citizen slot with ID
  • has job ID
  • but we couldn't find the job in the server game state.

UpdateJobStatus

protected System.Boolean UpdateJobStatus(CandideServer.Models.JobModel job)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Boolean
  • StaticFalse
  • VirtualTrue
  • Hash3737B874E2ED85BE290A1832B4902176F5BCCC0F10A55605A8767F7DA793E6D4
  • Body hash787AD6F7591924ECB4D2B48CBFE78E66A2A86B124D4A8F041E28AFC12DDD749A
  • IL size18
Referenced calls
Called by

ValidateResourceStorageMaximums

protected System.Void ValidateResourceStorageMaximums(System.Func<System.Int32, System.Collections.Generic.Dictionary<System.String, System.Int32>> getMaximums)

Method metadata
  • Visibilityprotected
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • HashDE7ABE6C1C9E45095A63F59066F5BBEADC4D028374F0C335C332A1C2E6C7A9E2
  • Body hash8E51747F5F254165E1091663B6BA5A74D239889E93BD149729804DB41B045B5E
  • IL size277
Referenced calls
Called by