Romestead Assembly Reference

CandideServer.ServerControllers.TownsServerController

Type JSON

public class in CandideServer.ServerControllers

Methods15
Properties0
Fields0
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerControllers
  • Base typeSystem.Object
  • HashDAE608EB6848F95A88C07BCB92DF4DEC15CB8CCE72467BEA4E2C6E8DE7346F00

Relationships

Base type

System.Object

Methods

AddBuildingToTown

public System.Void AddBuildingToTown(CandideServer.SimulationModels.BuildingSimulationModel building, CandideServer.Models.Town.ServerTownModel town)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash0AA6FC8EE67249397C0BEEB58EF835A93E4D65156D5D8531EFEF22C2910B3463
  • Body hash424880509546DB2FB22F9BF3EA07909C95A8F93F526BC0F5DEE63BCC3AAFA018
  • IL size67
Referenced calls
Called by

AddCitizen

public System.Void AddCitizen(System.Guid townId, System.Guid citizenId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashFD2491483070412631F4E64789935406CE92043D2C74DBCFFA0E0E2E4B5648C7
  • Body hash699E3985E6F44CEDBD17E889228234AB369C65587164FCC003CF8EF30FA6FB6A
  • IL size47
Referenced calls
Called by
String literals
  • AddCitizen: Failed adding citizen to town. Already exists

AddTownCitizensAura

public System.Void AddTownCitizensAura(CandideServer.Models.Town.ServerTownModel town, System.String auraId, System.Boolean applyUpdates)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash407EE200114FB2E7588FC77893B8E0D77702EB47A10DEE7C4AA9EF8E302D8EFD
  • Body hash9B8670B18A8FE37F7815D928E2E609F7AE55ACD5BC6CA85E28ECFEC478FC2290
  • IL size86
Referenced calls
Called by

CreateTown

public CandideServer.Models.Town.ServerTownModel CreateTown(System.Guid newTownId, System.Guid townCoreId, System.Nullable<Shared.Text.StringId> initialTownNameKey, System.String textName)

Method metadata
  • Visibilitypublic
  • Return typeCandideServer.Models.Town.ServerTownModel
  • StaticTrue
  • VirtualFalse
  • Hash781680F521E9C175DBEB670E5DDDECC95E96E9B6C630FFF48482876623BE8CF7
  • Body hashE85FB5C5A69B79ACBD50C99B6574B1942896095A454C187B6DCFC3994F749832
  • IL size632
Referenced calls
Called by
String literals
  • Tried to create a town with id
  • but there already exists one with that id.
  • Tried to create a town with first building id
  • but there is no building with that id.
  • town:built:biome:
  • town:built:first
  • town:built:second
  • town:built:third
  • town:built:fourth
  • town:built:fifth
  • town:built:sixth
  • town:built:seventh
  • town:built:eighth

GetTotalTownDefence

public System.Int32 GetTotalTownDefence(CandideServer.Models.Town.ServerTownModel town)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Int32
  • StaticTrue
  • VirtualFalse
  • Hash839F7D75CBB65A8DB2FE6107D65DD703B9325E43633BAA8D01665FBD4D51DED0
  • Body hash6D8F2340B80B5C5B364D07C5284C0FFE2B65934C79D0AB47F4E270CB7D969D44
  • IL size98
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::Deconstruct(!0&, !1&)
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::MoveNext()
  • System.IDisposable::Dispose()
  • Shared.Models.WorldStats::Get(System.String)
Called by
String literals
  • WorldStats_TownDefenceModifier

OnTownCitizensChanged

public System.Void OnTownCitizensChanged(CandideServer.Models.Town.ServerTownModel town)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash06372912FAEA88178D24612DF0DD671217602C48807FD18C8BA3F9DB162938CF
  • Body hash86D30D5EA3BD3DB0303E4D65F9B01047C0DA33FCA5D9A0E208FB89A7D59367B8
  • IL size91
Referenced calls
Called by
String literals
  • citizen_aura:buff:town_defence

OnTownDefenceChanged

public System.Int32 OnTownDefenceChanged(CandideServer.Models.Town.ServerTownModel town)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Int32
  • StaticTrue
  • VirtualFalse
  • HashED65642D796ABC2D134F84861BE919261FAAC0A8AC29A405A03044247145F276
  • Body hash71C6D8DA7F25F34A017D0E868A5C092A44DC4B1FD21195866D0D1C4FD1C4E6E8
  • IL size171
Referenced calls
Called by
String literals
  • citizen_aura:buff:town_defence

OnWorldGameStateLoaded

public System.Void OnWorldGameStateLoaded()

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash412C89F9F392D5100394F6B12114E5101F28FF24A50D084AC0443ECDE7B9D994
  • Body hash85039F51EEDE3321C757A75B621D95E1C5E7E3C281B47B5BE6EC51F130B9432B
  • IL size192
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.ServerTownModel>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Town.ServerTownModel>::Deconstruct(!0&, !1&)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::Deconstruct(!0&, !1&)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Entities.ServerEntityModel>::ContainsKey(!0)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::Remove(!0)
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.TownDefenceProvider>::MoveNext()
  • System.IDisposable::Dispose()
  • CandideServer.ServerControllers.TownsServerController::OnTownDefenceChanged(CandideServer.Models.Town.ServerTownModel)
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::MoveNext()

RemoveBuildingFromTown

public System.Void RemoveBuildingFromTown(CandideServer.Models.Town.ServerTownModel town, CandideServer.SimulationModels.BuildingSimulationModel building)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash8D801AB4BE0D03620C652CD304382D32CA17A0D913AF6816021F3D384497531C
  • Body hash96597BEC1979ED1A893E2D6AC165B552177FDF0AEAAD903D43612D57F71A1179
  • IL size317
Referenced calls
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Nullable<System.Guid>::GetValueOrDefault()
  • System.Guid::op_Inequality(System.Guid, System.Guid)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()
  • CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
  • System.Collections.Generic.HashSet<System.Guid>::Remove(!0)
  • CandideServer.Exceptions.CorruptServerGameStateException::.ctor(System.String)
  • System.Collections.Generic.HashSet<System.Guid>::get_Count()
  • CandideServer.ServerManagers.TownsServerManager::RemoveTown(CandideServer.Models.Town.TownModel)
String literals
  • RemoveBuildingFromTown
  • : Building's town is set to
  • and the town's ID is
  • : Building doesn't exist in the town's building ids list. Town id
  • , building id

RemoveCitizen

public System.Boolean RemoveCitizen(System.Guid townId, System.Guid citizenId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash6F28D25CADB327D65E944BA00F5DDB32FF78394EC5898019F3D297F7DA71E395
  • Body hash2AA46FB7656ACD46BB2E8DA9B687325A4D1FBC0C5D3895D8AF630FE2B6EC9BC4
  • IL size49
Referenced calls
Called by
String literals
  • RemoveCitizen: Failed removing citizen to town. Does not exist in the town's citizen list

RemoveCitizen

public System.Void RemoveCitizen(System.Guid citizenId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash165BB0A335A23F137C8470860A71B57604D8A677020EA0316E462FD19726862E
  • Body hash5BD28D4A7E87F0B092806CF5FAE857987A66D2636F9980C28D41B9AB2B49DA07
  • IL size86
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.ServerTownModel>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Town.ServerTownModel>::Deconstruct(!0&, !1&)
  • System.Collections.Generic.HashSet<System.Guid>::Remove(!0)
  • CandideServer.ServerControllers.TownsServerController::OnTownCitizensChanged(CandideServer.Models.Town.ServerTownModel)
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::MoveNext()
  • System.IDisposable::Dispose()
Called by

RemoveTown

public System.Boolean RemoveTown(CandideServer.Models.Town.TownModel town)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash7D192BE99803DA6007021E980C4CBB72C6BBDCC33365E8112A347FE49BAB7ADB
  • Body hash10551F5A67E84E37F12019998DDB1EAC37E23791D1CB600CEAC187E937CB81A8
  • IL size32
Referenced calls
  • System.Collections.Generic.HashSet<System.Guid>::get_Count()
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.ServerTownModel>::Remove(!0)
Called by

RemoveTownCitizensAura

public System.Void RemoveTownCitizensAura(CandideServer.Models.Town.ServerTownModel town, System.String auraId, System.Boolean applyUpdates)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash48F7BB20FA09AF790F91A4FE10151FE1F0FE0D447E4691AD59A952ACCC23CC7E
  • Body hashB40D367C981DE0088119B3EFCDBBB601A88DD9D4BD13EE7D2CBD8A7F45CBB4FC
  • IL size86
Referenced calls
Called by

TryChangeTownName

public System.Boolean TryChangeTownName(System.Guid townId, System.String name)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashED2D08C2A0CF89B9AD23231CFF7B5BB44756C703F84DCD8F39239660FCD60ABF
  • Body hash4F404BBBE7D78D7ABAD2AA0D7770008B21558770906AF0BBF0CF9840DC403E76
  • IL size93
Referenced calls
Called by
String literals
  • TryChangeTownName
  • : Provided name exceeded max town name length

UpdateTownBounds

private System.Void UpdateTownBounds(CandideServer.Models.Town.TownModel town)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash0096801032251111EA8D288BECB7AAB72D6D0B83C20257284B8754DD8F6FFE6A
  • Body hash06BB25C3CD9A7121F71BACD69FF0B0755DB8957C65734523F99785B1D55CA604
  • IL size233
Referenced calls
  • System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()
  • HashSet.Enumerator<System.Guid>::get_Current()
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::TryGetValue(!0, !1&)
  • Microsoft.Xna.Framework.Rectangle::get_Right()
  • Microsoft.Xna.Framework.Rectangle::get_Bottom()
  • System.Math::Min(System.Int32, System.Int32)
  • System.Math::Max(System.Int32, System.Int32)
  • HashSet.Enumerator<System.Guid>::MoveNext()
  • System.IDisposable::Dispose()
  • Microsoft.Xna.Framework.Rectangle::.ctor(System.Int32, System.Int32, System.Int32, System.Int32)
Called by