Romestead Assembly Reference

CandideServer.ServerControllers.BuildingsSController

Type JSON

public class in CandideServer.ServerControllers

Methods17
Properties0
Fields3
Events2
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerControllers
  • Base typeSystem.Object
  • Hash9230272563EF429A34B844DAC221B1BC348E51E5C9FF5413B972F8CFA2663DD0

Relationships

Base type

System.Object

Fields

NameVisibilitySignature
BuildingAppealStatModifierIdpublicpublic System.Guid BuildingAppealStatModifierId
BuildingRemovedprivateprivate BuildingsSController.ServerGameStateBuildingRemoved BuildingRemoved
NewBuildingSpawnedprivateprivate BuildingsSController.ServerGameStateBuildingAdded NewBuildingSpawned

Events

NameVisibilitySignature
BuildingRemovedpublicpublic BuildingsSController.ServerGameStateBuildingRemoved BuildingRemoved
NewBuildingSpawnedpublicpublic BuildingsSController.ServerGameStateBuildingAdded NewBuildingSpawned

Methods

AfterWorldGameStateLoaded

public System.Void AfterWorldGameStateLoaded()

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash350B753A739EF083E6A07A7369FA0C153C5CF6D06FBD51EAB7021F3C72F3CEB7
  • Body hash5B674B3EBC2108AFECA4D21E262FC3BF9C7E435616DDEFF036E5D57BF95334BD
  • IL size234
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::get_Values()
  • Dictionary.ValueCollection<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::GetEnumerator()
  • Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::get_Current()
  • CandideServer.Buildings.BuildingControllers.AbstractBuildingController::OnLoaded()
  • Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::MoveNext()
  • System.IDisposable::Dispose()
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.JobModel>::get_Values()
  • Dictionary.ValueCollection<System.Guid, CandideServer.Models.JobModel>::GetEnumerator()
  • Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.JobModel>::get_Current()
  • System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel>::GetEnumerator()
  • List.Enumerator<CandideServer.Models.WorkOrders.WorkOrderModel>::get_Current()
  • System.Array::Empty()
  • List.Enumerator<CandideServer.Models.WorkOrders.WorkOrderModel>::MoveNext()
  • Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.JobModel>::MoveNext()

BeforeWorldGameStateLoaded

public System.Void BeforeWorldGameStateLoaded()

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash516551A3C81B426A98C7C19A504EB5EBA2200E8689EFB6BAB130AC078CAE43A9
  • Body hashC1677654388180740C45C7EE003EC1B43E0E0CD2CE73E15360BE4DA740C087F8
  • IL size259
Referenced calls
Called by

CalculateAndApplyBuildingAppeal

private System.Void CalculateAndApplyBuildingAppeal(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstanceModel, System.Boolean skipApplyingToCitizen)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash107ED31C63D176969A600C3DFC18FF13213B07C00D96ADEEF85318BDC1869728
  • Body hash7FE3A5264AFDCC7ACE4C4EDD1EA082B00179F52BFF7F1D460EB2B1617B96E49E
  • IL size286
Referenced calls
Called by
String literals
  • WorldStats_MaxBuildingAppealModifier
  • Citizen_Happiness

CreateBuildingInventory

public Shared.Models.Items.SharedInventoryModel CreateBuildingInventory(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, Shared.Messages.CreateNewInventoryMessage msg, CandideServer.ServerControllers.IOInventoryCreationType type)

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.SharedInventoryModel
  • StaticTrue
  • VirtualFalse
  • HashBDD57E884866B40D1FEC8534BD27FCF0791BB9F02A209E81E7A1CFD92D74FADC
  • Body hash64FB7F68DF69A9393899DBAAEB98B48BDFED82249BA9B375EDAF9C3A5E5C0C0F
  • IL size323
Referenced calls
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()
  • CandideServer.ServerControllers.ServerSimpleInventoryException::.ctor(System.String)
  • CandideServer.ServerControllers.SimpleInventorySController::CreateNewInventory(Shared.Messages.CreateNewInventoryMessage, System.Boolean)
  • System.Nullable<System.Guid>::.ctor(!0)
  • System.ArgumentOutOfRangeException::.ctor(System.String, System.Object, System.String)
Called by
String literals
  • Building
  • already has a Storage Inventory and creation type is set to
  • already has an Output Inventory and creation type is set to
  • type

GetOutsideWorldIdFromBuildingId

public System.Nullable<System.Guid> GetOutsideWorldIdFromBuildingId(System.Guid buildingId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Nullable<System.Guid>
  • StaticTrue
  • VirtualFalse
  • HashB5C3AD9E27A0FCC34082C068A731A889154B7CAC5A3DAFAF6554879021D27F3E
  • Body hash987D4C311EF0BA2871FBCDA3EFD050C5CAD9F4DFFFE5AAC09E35B3B783C97E28
  • IL size103
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::TryGetValue(!0, !1&)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Worlds.WorldModel>::TryGetValue(!0, !1&)
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Nullable<System.Guid>::GetValueOrDefault()
  • System.Nullable<System.Guid>::.ctor(!0)
Called by

RegisterBuildingCitizenStatModifier

public System.Void RegisterBuildingCitizenStatModifier(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, System.Collections.Generic.Dictionary<System.String, Shared.Models.Stats.StatModificationData> decorationCitizenStatBonuses, System.Guid modifierId, Shared.Models.Stats.StatModifierType type, System.Boolean skipApplyingToCitizen)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash23649C0A54AE8D2C88A5BA99302ED1B82D08FC74253C8AF6FA3C09C9A6D5FB11
  • Body hash2F258A4AB88E55C8D222BDF6E6798673725A6C8DDCB0E6CAAC8361901BFC1EA1
  • IL size150
Referenced calls
Called by

RegisterDecoration

public System.Void RegisterDecoration(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, Shared.Data.Decorations.DecorationData decoration, System.Guid spawnId, System.Boolean skipUpdates)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash11E26E7FDA6A260F6E41E2B7211B59C719A6D8028C0B657C5BF35E81F16CE0F3
  • Body hashD8EAB01DAEDA04BFC185F1EF6B06B14D2AC16DC2480C4BE676B49E8545EEE686
  • IL size96
Referenced calls
Called by

RegisterInternalResourceStorage

public System.Void RegisterInternalResourceStorage(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, System.Guid storageId, CandideServer.ServerControllers.IOStorageCreationType type)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash75707F8F9BFD2A9368DF4293217728C7E5FD3F3177406B056E0F620828F0AD08
  • Body hash6CA6444080CB5E12567C0BD7A35A2D5E26646DDCAC8B206FACB6029CF8F12E8F
  • IL size177
Referenced calls
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Exception::.ctor(System.String)
  • System.Nullable<System.Guid>::.ctor(!0)
  • System.ArgumentOutOfRangeException::.ctor(System.String, System.Object, System.String)
Called by
String literals
  • Building instance already has a storage ID set
  • Building instance already has a output ID set
  • Building instance already has a storage ID and output ID set
  • type

RemoveBuilding

public CandideServer.MessageModels.Buildings.BuildingRemovedMessage RemoveBuilding(System.Guid buildingId)

Method metadata
Referenced calls
Called by
String literals
  • Building does not have a town ID
  • ,
  • Trying to remove building
  • but the storage inventory associated no longer exists. Server game state is corrupt
  • Buildings can only be removed from the main world right now
  • but the citizen slots associated no longer exists. Server game state is corrupt
  • but the citizen
  • associated no longer exists. Server game state is corrupt
  • associated is not listed in its associated town. Server game state is corrupt
  • wild_citizen_id
  • but the output inventory associated no longer exists. Server game state is corrupt

RemoveBuildingAppealModifier

private System.Boolean RemoveBuildingAppealModifier(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstanceModel, System.Guid decorationId, System.Boolean skipApplyingToCitizen)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashB53A43590C2CCA7AD0E76FB555F78DA557D47F44F760604C3009D36117098967
  • Body hash81AA38D293F974377CB829666D9199DABC4EE55E0D57644E75C1694500F4F472
  • IL size25
Referenced calls
Called by

RemoveBuildingCitizenStatModifier

public System.Void RemoveBuildingCitizenStatModifier(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, System.Guid modifierId, System.Boolean skipApplyingToCitizen)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashFD9A3B8D8955C1B310679A3BA24DD47F09C4B3F45E2106B4461E23CF561ECAD1
  • Body hash943FCD7A7668503BE651F8F3E70181872036D6AA5B3D038C0D15C1FEC6C33F1E
  • IL size76
Referenced calls
Called by

SpawnNewBuildingConstruction

public CandideServer.SimulationModels.BuildingSimulationModel SpawnNewBuildingConstruction(System.String constructionId, System.Guid newBuildingId, Microsoft.Xna.Framework.Rectangle tileBounds, System.Nullable<System.Guid> townId, System.Collections.Generic.Dictionary<System.String, System.String> parameters)

Method metadata
Referenced calls
Called by
String literals
  • Exterior Map
  • building:
  • :first
  • :count
  • Did not place down any tiles when constructing building '
  • ' with exterior map '
  • '
  • Interior Map

UnregisterDecoration

public System.Void UnregisterDecoration(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, System.Guid decorationId, System.Boolean skipUpdates)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash47C8258BB706B3818EC5CAB23EEA8F79B39503F0BAE2551CCF931E0A0C260BB4
  • Body hashAF955AC209F92E374B11AF40725A42A71A216370B204666A72D3223259E47CC1
  • IL size37
Referenced calls
Called by

UpdateBuildingParameters

public System.Void UpdateBuildingParameters(CandideServer.MessageModels.Buildings.UpdateBuildingParametersMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashE4CFA9B3D089247506D6448587C31AEC0D6E01B9A2894C369838B3E1C3065134
  • Body hash2CA66A7B8FCCE5984D2EFD45432A1CDC30E5E56B6C83CE22DF073D5E2304FDD0
  • IL size94
Referenced calls
  • CandideServer.ServerGameState::TryGetBuilding(System.Guid, CandideServer.SimulationModels.BuildingSimulationModel&)
  • System.Collections.Generic.Dictionary<System.String, System.String>::GetEnumerator()
  • Dictionary.Enumerator<System.String, System.String>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.String, System.String>::get_Key()
  • System.Collections.Generic.KeyValuePair<System.String, System.String>::get_Value()
  • System.Collections.Generic.Dictionary<System.String, System.String>::set_Item(!0, !1)
  • Dictionary.Enumerator<System.String, System.String>::MoveNext()
  • System.IDisposable::Dispose()
Called by

UpdateCitizenSlotsStatsAndSendUpdates

public System.Void UpdateCitizenSlotsStatsAndSendUpdates(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash04B080A0993C132E5C94F7635A4BC3D471530EAD117D4D5CBB0C973355FEC4EC
  • Body hash7047B9DD478FC1D05E5FD0CE05E0D4AA1C2E14C5F125381AE6BDCD3C641F678E
  • IL size106
Referenced calls
Called by

UpdateSendBuildingAppeal

public System.Void UpdateSendBuildingAppeal(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash2BFEF836EF942B60EF16053C6B3A2C5129A751444470A1B538E299067A7C77A4
  • Body hash115FCEB15D7982BDA1C44E1514B2A72CCBEC536663B1EA06D10F015DD7378148
  • IL size49
Referenced calls
Called by

UpgradeBuilding

public System.Void UpgradeBuilding(CandideServer.SimulationModels.BuildingSimulationModel building, Shared.Models.Construction.ConstructionModel construction, Shared.Models.Buildings.BuildingData upgradedBuildingData)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash744C59A135C96ADEE540B7500C04A830832F4595A9D3DC9AF12897D9185A3E16
  • Body hashA45AE8BD699F994135AA926F9ABD88C7D9DF114F6F29858BAF580F2531093664
  • IL size597
Referenced calls
Called by
String literals
  • building:
  • :first
  • :count