Romestead Assembly Reference

CandideServer.ServerControllers.CitizenSlotsSController

Type JSON

public class in CandideServer.ServerControllers

Methods4
Properties0
Fields0
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerControllers
  • Base typeSystem.Object
  • HashD6692DCB66D19A0D8CCE4DDFE8A81647FD8184A1D13B2022A3368535AA659E15

Relationships

Base type

System.Object

Methods

AssignCitizenToSlot

public System.Void AssignCitizenToSlot(System.Guid slotId, CandideServer.Models.Citizen.CitizenModel citizen)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash8B37A8696D6D7688F016281673DDDE6CEFEFA1D499825AE2CB9D32920EE4954F
  • Body hash63AD89FE8BB3B206A58874BBA6B969074E810C12E0120D7412396FD4B8724F26
  • IL size473
Referenced calls
Called by
String literals
  • AssignCitizenToSlot: Citizen already has a home building set!
  • Failed to create entity (base entity id:
  • ) for citizen base ID:

CreateCitizenSlots

public System.Collections.Generic.List<System.Guid> CreateCitizenSlots(System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Citizens.CreateCitizenSlotMessage> newCitizenSlots, System.Int32 startIndex)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Collections.Generic.List<System.Guid>
  • StaticTrue
  • VirtualFalse
  • Hash6F20743ADBAD4CB51F8C91C63B8DFC638A70A12FD3F8A22A111E9E86D347D3EB
  • Body hash91A845A78431781F481819ED12B669C9896C1FCC516DBB557ECF190E01CEB572
  • IL size241
Referenced calls
  • System.Collections.Generic.List<System.Guid>::.ctor()
  • System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Citizens.CreateCitizenSlotMessage>::GetEnumerator()
  • System.Collections.Generic.IEnumerator<CandideServer.MessageModels.Citizens.CreateCitizenSlotMessage>::get_Current()
  • System.String::IsNullOrEmpty(System.String)
  • System.Nullable<System.Guid>::get_Value()
  • System.Nullable<System.Guid>::.ctor(!0)
  • CandideServer.ServerControllers.JobsSController::CreateJob(System.Guid, System.String, System.Nullable<System.Guid>)
  • CandideServer.SimulationModels.CitizenSlotSimulationModel::.ctor()
  • CandideServer.Models.Citizen.CitizenSlotModel::.ctor()
  • System.Collections.Generic.List<System.Guid>::Add(!0)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::Add(!0, !1)
  • System.Collections.IEnumerator::MoveNext()
  • System.IDisposable::Dispose()
Called by

RemoveCitizenSlot

public System.Void RemoveCitizenSlot(System.Guid slotId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash47E560B272341610AFB727AF575428D6C018C7509250E3584C7CC3C637FE5257
  • Body hash6B6DB606C6869188A31A7F9F1EB8BE43FB0A4FB728152AE29A8364FDF1722C4A
  • IL size159
Referenced calls
  • CandideServer.ServerGameState::TryGetCitizenSlot(System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel&)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)
  • 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)
  • CandideServer.Models.Citizen.CitizenSlotModel::get_IsOccupied()
  • CandideServer.ServerManagers.ServerCitizenException::.ctor(System.String)
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Nullable<System.Guid>::get_Value()
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.JobModel>::ContainsKey(!0)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::Remove(!0)
String literals
  • Tried removing slot with ID
  • but it didn't exist in the server game state
  • Tried removing citizen slot but it is occupied. Make sure to unassign the citizen first.
  • Tried removing citizen slot but its job exists in the game state. Make sure to remove the job first.

UnassignCitizenSlot

public System.Void UnassignCitizenSlot(CandideServer.ServerControllers.UnassignCitizenSlotMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashD1A92757130092B6D2477F930AA07B5F6A77871127FCEFEDC7989497B4E454AB
  • Body hash60339292EC9EFC3E06D14834FC6C0873BBF0CBEDC9775FB702949AB0D858D9B1
  • IL size268
Referenced calls
Called by