Candide.GameModels.Managers.TownsManager
Type JSONpublic class in Candide.GameModels.Managers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Managers - Base type
System.Object - Hash
93C324E751EB2CAAE294E1650029181E12AA30D34E3FD62BE87F969E775CB6EA
Relationships
Base type
System.Object
Methods
AssignCitizenToSlot
#
public System.Void AssignCitizenToSlot(System.Guid citizenId, System.Guid citizenSlotId, System.Guid citizenSlotBuildingId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
41B87E1359F738E245DE31334F93E822D14857CED367F8D371F754DB2742A963 - Body hash
EC52F232DFF51FE6B108293F6E0231DDE2743C4EB3BB7A72AD6825767BC19FDC - IL size32
Referenced calls
CandideServer.MessageModels.Towns.AssignCitizenToSlotMessage::.ctor()Candide.GameModels.Services.TownsService::SendAssignCitizenToSlot(CandideServer.MessageModels.Towns.AssignCitizenToSlotMessage)
FindAnyLogisticsTentForTown
#
public System.Nullable<System.Guid> FindAnyLogisticsTentForTown(CandideServer.Models.Town.TownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Nullable<System.Guid> - StaticTrue
- VirtualFalse
- Hash
45335E499E15B161FDD3DBBE056E283DEEC99F8B49B2B2AA08E9434E94B4F21E - Body hash
C39497D15C43AD07D6F4FF1FC4B6D993259A1EDBE8F19B6DBBEBBD2AE76F0490 - IL size114
Referenced calls
System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.String::op_Inequality(System.String, System.String)HashSet.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()
String literals
logistics_tent
FindHighestLevelledCarpenterForTown
#
public System.Nullable<System.Guid> FindHighestLevelledCarpenterForTown(CandideServer.Models.Town.TownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Nullable<System.Guid> - StaticTrue
- VirtualFalse
- Hash
2B3A72F379794CA3E79411DF45602ADF3FCA75B3F43296EDCCBB5A5FEB3FA1BE - Body hash
56AAA01401E7A626136D9277AEED5F5F290C00552FC4147690FB8687ACCF5212 - IL size146
Referenced calls
System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.String::op_Inequality(System.String, System.String)Shared.Data.ConstructionDataBase::GetConstructionOrNull(System.String)HashSet.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()
Called by
String literals
carpenter
GetAllMaterialStoragesForTown
#
public System.Collections.Generic.HashSet<System.Guid> GetAllMaterialStoragesForTown(CandideServer.Models.Town.TownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Collections.Generic.HashSet<System.Guid> - StaticTrue
- VirtualFalse
- Hash
F569121F378098A0F7B990EAEDB0CA16F2D26CFB4CECE2086BDE35E2C88966D3 - Body hash
CF4EB8D7A3018399F289DD26A47899D1701EEE1044156C71C47BDEB884C4DCD2 - IL size101
Referenced calls
System.Collections.Generic.HashSet<System.Guid>::.ctor()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.String::op_Equality(System.String, System.String)System.Collections.Generic.HashSet<System.Guid>::Add(!0)HashSet.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()
String literals
material_storage
GetAvailableBuildingAndSlotForOneCitizen
#
public System.Nullable<System.ValueTuple<Candide.GameModels.Models.Constructions.Building, Candide.GameModels.Models.Citizens.CitizenSlot>> GetAvailableBuildingAndSlotForOneCitizen(Candide.GameModels.Models.ClientTownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Nullable<System.ValueTuple<Candide.GameModels.Models.Constructions.Building, Candide.GameModels.Models.Citizens.CitizenSlot>> - StaticTrue
- VirtualFalse
- Hash
7E4071F254D3CC379B4F0B448B4107E245152DF9B0EF056FB9A7D6A1E68BF1E5 - Body hash
62ED0DE79BA0CEAD05600CE7B69AFB9A5A8E25726554A76013A1B04200D24AF8 - IL size221
Referenced calls
System.Collections.Generic.HashSet<System.Guid>::get_Count()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::GetEnumerator()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::get_Current()Candide.GameModels.Models.Citizens.CitizenSlot::get_IsOccupied()System.Nullable<System.ValueTuple<Candide.GameModels.Models.Constructions.Building, Candide.GameModels.Models.Citizens.CitizenSlot>>::get_HasValue()System.ValueTuple<Candide.GameModels.Models.Constructions.Building, Candide.GameModels.Models.Citizens.CitizenSlot>::.ctor(!0, !1)System.Nullable<System.ValueTuple<Candide.GameModels.Models.Constructions.Building, Candide.GameModels.Models.Citizens.CitizenSlot>>::.ctor(!0)List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::MoveNext()System.IDisposable::Dispose()HashSet.Enumerator<System.Guid>::MoveNext()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)
String literals
GetAvailableBuildingAndSlotForOneCitizen: We have more citizens than slots for some reason. Unexpected
GetClosestTown
#
public Candide.GameModels.Models.ClientTownModel GetClosestTown(Microsoft.Xna.Framework.Vector2 worldPosition)
Method metadata
- Visibilitypublic
- Return type
Candide.GameModels.Models.ClientTownModel - StaticTrue
- VirtualFalse
- Hash
AE7894707AFEAB3BD9ABB8F485478F16E94C69A76072EE02330631AE2A22B163 - Body hash
9C11AC8C18F6DE60F6B7D7C86EF037A1E8DF18D328EE27B2ADD24709D3F357F0 - IL size90
Referenced calls
Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Values()Dictionary.ValueCollection<System.Guid, Candide.GameModels.Models.ClientTownModel>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Current()Microsoft.Xna.Framework.Rectangle::Contains(Microsoft.Xna.Framework.Vector2)Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::MoveNext()System.IDisposable::Dispose()
Called by
Candide.CandideUI.PlayerUi::IsTabAvailableCandide.Entities.Controllers.Legacy.WorkbenchController::OnInteractCandide.GameModels.Managers.ConstructionsManager::SpawnConstructionCheatCandide.PlayerMode.Construction.ConstructionModeManager::UpdateCandide.PlayerMode.Furniture.FurnitureModeManager::OnEnteringCandide.Sound.MusicAmbienceSystems.MusicSoundState::IsNearRaid
GetClosestTownWithAvailableSlot
#
public Candide.GameModels.Models.ClientTownModel GetClosestTownWithAvailableSlot()
Method metadata
- Visibilitypublic
- Return type
Candide.GameModels.Models.ClientTownModel - StaticTrue
- VirtualFalse
- Hash
9F2D32B863E857595CD3AB19CCF1BC6D7227A8294915ABE8DF008FD3C9CECC0E - Body hash
18E5203F0D2686E479E3EC4160ACCAC47FFEB17E6317F760FDB4211EC186C010 - IL size262
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.ClientTownModel>::Deconstruct(!0&, !1&)System.Collections.Generic.HashSet<System.Guid>::get_Count()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::GetEnumerator()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::get_Current()Candide.GameModels.Models.Citizens.CitizenSlot::get_IsOccupied()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::MoveNext()System.IDisposable::Dispose()HashSet.Enumerator<System.Guid>::MoveNext()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::MoveNext()
String literals
GetClosestTownWithAvailableSlot: We have more citizens than slots for some reason. Unexpected
SwitchCitizenSlots
#
public System.Void SwitchCitizenSlots(System.Guid sourceCitizenId, System.Guid sourceCitizenSlotId, System.Guid sourceCitizenSlotBuildingId, System.Guid targetSlotId, System.Guid targetSlotBuildingId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
E154A64B48162109ECFDF766831ABA922495B044E5BE86569B34C7E4CEAEACA4 - Body hash
C811AC1FF3317AEBD4E102A5FDC8E0D5F40260E93E40BB32B8DDE97DF5079250 - IL size47
Referenced calls
CandideServer.MessageModels.Towns.SwitchCitizenSlotsMessage::.ctor()Candide.GameModels.Services.TownsService::SendSwitchCitizenSlots(CandideServer.MessageModels.Towns.SwitchCitizenSlotsMessage)
UnassignCitizenFromSlot
#
public System.Void UnassignCitizenFromSlot(System.Guid citizenId, System.Guid citizenSlotId, System.Guid citizenSlotBuildingId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
453DDD85CFDDA70BB1A8C157C2D0EC3CCC09AFE884D089C29151A3B22E74B583 - Body hash
85CF410FD3D9FBF17B5B61FBA776D64571182E4323C9A1598A23630D71D193BF - IL size32
Referenced calls
CandideServer.MessageModels.Towns.UnassignCitizenFromSlotMessage::.ctor()Candide.GameModels.Services.TownsService::SendUnassignCitizenFromSlot(CandideServer.MessageModels.Towns.UnassignCitizenFromSlotMessage)