Candide.GameModels.Managers.BuildingsManager
Type JSONpublic class in Candide.GameModels.Managers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Managers - Base type
System.Object - Hash
F13B41DB5E2DE345BB1527793C6075FB520D000605803E69B3B00CA7C8A4AD80
Relationships
Base type
System.Object
Methods
BuildingSpawned
#
public System.Void BuildingSpawned(CandideServer.MessageModels.Buildings.BuildingSpawnedMessage msg)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8B500B72207EAA1E8D739D517ED48532E7597D0A222262CF98F505756D9E1ABC - Body hash
9264EE1BC3879B11511FAF85D92243DF5A9AD58D33F7DB447ED6976312A472AB - IL size403
Referenced calls
Shared.Data.ConstructionDataBase::GetConstructionOrNull(System.String)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Candide.Sound.SoundPlayer::Play3DEventOneShot(System.String, Microsoft.Xna.Framework.Vector3, System.Single, System.Single)Candide.GameModels.Controllers.WorldController::AddWorld(CandideServer.Models.Worlds.WorldModel)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()Candide.GameModels.Controllers.ConstructionSitesController::RemoveConstructionSite(System.Guid)Candide.GameModels.Systems.ConstructionSitesSystem::ConstructionBuiltVerticalVfx(Microsoft.Xna.Framework.Rectangle)CandideServer.EventBus.EventBusManager::SendEvent(System.String, System.Object, System.Boolean)
String literals
event:/buildings/building_builtevent:/buildings/infrastructure_builtplayer-built-construction
BuildingUpgraded
#
public System.Void BuildingUpgraded(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel> updatedBuildingCitizenSlots)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A9F997C9EE8ED3D1366F6A538DEBEAF6C6D1F342E594DD1A7D3D1049EEB2745A - Body hash
F922BB2B62C8017B8161FBA6ABF2D087D2C975B1BCD22E9B247C9CF0EFAD024D - IL size82
Referenced calls
CandideServer.Toolkit.TileBoundsHelper::GetCenteredPositionFromTileBounds(Microsoft.Xna.Framework.Rectangle)System.String::op_Equality(System.String, System.String)CandideCreator.Shared.Helpers.VectorExtension::ToVector3Xy(Microsoft.Xna.Framework.Vector2)Candide.Sound.SoundPlayer::Play3DEventOneShot(System.String, Microsoft.Xna.Framework.Vector3, System.Single, System.Single)Candide.GameModels.Systems.ConstructionSitesSystem::ConstructionBuiltVerticalVfx(Microsoft.Xna.Framework.Rectangle)Candide.GameModels.Controllers.BuildingsController::UpgradeBuilding(CandideServer.Models.Buildings.BuildingInstanceModel, System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel>)
String literals
altarevent:/buildings/upgrade_buildingevent:/interface/altar/ui_altar_upgrade
CreateGameStateOverview
#
public System.Void CreateGameStateOverview()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
73589972B8DBBA906617C9BD91276F93975326497ABF06FE57F891FB1052E8D8 - Body hash
6274FEC95767AC72527FEC7C3B7850EB9EA65C59026E9C9E56A0DA79C18885BE - IL size1353
Referenced calls
System.String::op_Implicit(System.String)ImGuiNET.ImGui::Text(System.ReadOnlySpan<System.Char>)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.Object::ToString()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.Constructions.Building>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::MoveNext()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::MoveNext()BuildingsManager.<>c::<CreateGameStateOverview>b__2_0(System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.Constructions.Building>)System.Func<System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.Constructions.Building>, System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>>::.ctor(System.Object, System.IntPtr)System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, !!1>)System.Collections.Generic.IEnumerable<System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>>::GetEnumerator()System.Collections.Generic.IEnumerator<System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>>::get_Current()System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::GetEnumerator()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::get_Current()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::MoveNext()System.Collections.IEnumerator::MoveNext()BuildingsManager.<>c::<CreateGameStateOverview>b__2_1(System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.ClientTownModel>)System.Func<System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.ClientTownModel>, System.Collections.Generic.HashSet<System.Guid>>::.ctor(System.Object, System.IntPtr)System.Collections.Generic.IEnumerable<System.Collections.Generic.HashSet<System.Guid>>::GetEnumerator()System.Collections.Generic.IEnumerator<System.Collections.Generic.HashSet<System.Guid>>::get_Current()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()HashSet.Enumerator<System.Guid>::MoveNext()
String literals
TOWNSBUILDINGSCONNECTIONSSLOTSTOWN CITIZENSDECORATIONSACTIVE INVENTORIES-ACTIVE INTERNAL RESOURCE STORAGESACTIVE CITIZENSACTIVE JOBS
CreateImGui
#
public System.Void CreateImGui()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A52BE9BC387D516BD6A2CE6FCBC8DEDFCD22E01D6E4F5E8C42335B1A5A23C728 - Body hash
D3806F324F6BF782EB2A2A32C083803BEA8A999B948C70828FFB0DE06C6D0803 - IL size401
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.Constructions.Building>::Deconstruct(!0&, !1&)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()System.String::op_Implicit(System.String)ImGuiNET.ImGui::Text(System.ReadOnlySpan<System.Char>)ImGuiNET.ImGui::SameLine()Shared.Data.ConstructionDataBase::GetUpgradesForBuilding(System.String)System.Collections.Generic.List<Shared.Models.Construction.ConstructionModel>::get_Count()System.Collections.Generic.List<Shared.Models.Construction.ConstructionModel>::get_Item(System.Int32)ImGuiNET.ImGui::Button(System.ReadOnlySpan<System.Char>)Candide.GameModels.Services.BuildingsService::Send_UpgradeBuildingCheat(System.Guid, System.String)CandideServer.MessageModels.Buildings.RemoveBuildingMessage::.ctor()Candide.GameModels.Services.BuildingsService::Send_RemoveBuilding(CandideServer.MessageModels.Buildings.RemoveBuildingMessage)Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::MoveNext()System.IDisposable::Dispose()
String literals
Level up to level()Maximum upgrade reachedDemolish (
CreateOverviewImGui
#
public System.Void CreateOverviewImGui()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
0D9D72424E8262E5650F2B0E351DB4C4A92294CE8130EBEB5A0D924AE9F8BFCC - Body hash
B4FBF36468C2F994AE80C2388ACE8E36449211CD621C3B0646FF42DF41DA666E - IL size1174
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.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)CandideServer.Models.Town.TownModel::GetLocalizedName()System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()System.String::op_Implicit(System.String)ImGuiNET.ImGui::TreeNode(System.ReadOnlySpan<System.Char>)ImGuiNET.ImGui::Text(System.ReadOnlySpan<System.Char>)System.Numerics.Vector4::.ctor(System.Single)System.Numerics.Vector4::.ctor(System.Single, System.Single, System.Single, System.Single)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::ToUpper()System.String::Concat(System.String, System.String, System.String)ImGuiNET.ImGui::TextColored(System.Numerics.Vector4, System.ReadOnlySpan<System.Char>)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()ImGuiNET.ImGui::SameLine(System.Single)Shared.Text.StringExtensions::GetTranslation(Shared.Text.StringId)ImGuiNET.ImGui::SameLine()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.List<System.Guid>::GetEnumerator()List.Enumerator<System.Guid>::get_Current()Candide.GameModels.GameState::TryGetLogisticsConnection(System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel&)
String literals
-[] -[ ] -<-->Internal resource storageOutput resource storageStorage inventoryOutput inventory
CreateServerGameStateOverview
#
public System.Void CreateServerGameStateOverview()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
6A7092286EB6C0EB37A1487DE1CC30CF03CA9A46D40F1C54A68289EAE310E1FE - Body hash
096E5DB955B965A1EFCC7247F24F5FF65B2AC3D0A49F6214299D02446261760D - IL size2990
Referenced calls
System.String::op_Implicit(System.String)ImGuiNET.ImGui::Text(System.ReadOnlySpan<System.Char>)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.Object::ToString()Dictionary.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::MoveNext()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::MoveNext()System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::MoveNext()BuildingsManager.<>c::<CreateServerGameStateOverview>b__3_0(System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Town.ServerTownModel>)System.Func<System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Town.ServerTownModel>, System.Collections.Generic.HashSet<System.Guid>>::.ctor(System.Object, System.IntPtr)System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, !!1>)System.Collections.Generic.IEnumerable<System.Collections.Generic.HashSet<System.Guid>>::GetEnumerator()System.Collections.Generic.IEnumerator<System.Collections.Generic.HashSet<System.Guid>>::get_Current()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()HashSet.Enumerator<System.Guid>::MoveNext()System.Collections.IEnumerator::MoveNext()System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.SharedInventoryModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, Shared.Models.Items.SharedInventoryModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Shared.Models.Items.SharedInventoryModel>::Deconstruct(!0&, !1&)
String literals
TOWNSBUILDINGSCONNECTIONSSLOTSTOWN CITIZENSINVENTORIES-INTERNAL RESOURCE STORAGESCITIZENSSOURCESFOOD SOURCESWORLDSDECORATIONSTRADE ROUTESHome:Destination:
SyncBuildingRemoved
#
public System.Void SyncBuildingRemoved(CandideServer.MessageModels.Buildings.BuildingRemovedMessage msg)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
6E7BCC4580625744D8A7A329CC9803F9642A016075BD6504A23ED13FBB9851CD - Body hash
16BD423D464189ECEAECF549215D08D7504424B7DD64117DEDA7D68626FA14BF - IL size630
Referenced calls
System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)System.Collections.Generic.List<System.Guid>::GetEnumerator()List.Enumerator<System.Guid>::get_Current()Candide.GameModels.Controllers.LogisticsController::ConnectionRemoved(System.Guid)List.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()Candide.GameModels.Controllers.TownsController::CitizenAssignmentsChangeForTown(CandideServer.MessageModels.Citizens.CitizenAssignmentsChangeForTownMessage)Candide.GameModels.Controllers.JobsController::SyncUnregisterJob(System.Guid, System.Boolean)System.Collections.Generic.List<CandideServer.MessageModels.Citizens.Jobs.UpdateJobMessage>::GetEnumerator()List.Enumerator<CandideServer.MessageModels.Citizens.Jobs.UpdateJobMessage>::get_Current()Candide.GameModels.Controllers.JobsController::SyncUpdateJob(CandideServer.MessageModels.Citizens.Jobs.UpdateJobMessage)List.Enumerator<CandideServer.MessageModels.Citizens.Jobs.UpdateJobMessage>::MoveNext()System.Collections.Generic.Dictionary<System.Guid, Shared.Text.StringId>::get_Keys()Candide.GameModels.Controllers.CitizenController::SyncUnregisterActiveCitizens(System.Collections.Generic.IEnumerable<System.Guid>)Candide.GameModels.Managers.WorldManager::RemoveWorld(System.Guid)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()Candide.GameModels.GameState::TryGetTown(System.Guid, Candide.GameModels.Models.ClientTownModel&)System.Exception::.ctor(System.String)System.Collections.Generic.HashSet<System.Guid>::Remove(!0)Candide.GameModels.Controllers.TownsController::SynchRemoveCitizens(System.Collections.Generic.IEnumerable<System.Guid>, Candide.GameModels.Models.ClientTownModel)Candide.GameModels.Controllers.SimpleInventoryController::SyncUnregisterActiveInventory(System.Guid)Candide.GameModels.Controllers.InternalResourceStorageController::SyncStorageRemoved(System.Guid)System.Collections.Generic.Dictionary<System.Guid, Shared.Text.StringId>::GetEnumerator()Dictionary.Enumerator<System.Guid, Shared.Text.StringId>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Shared.Text.StringId>::Deconstruct(!0&, !1&)Shared.Text.StringExtensions::GetTranslation(Shared.Text.StringId)Shared.Text.StringDefinitions::GetFormatString(System.String, System.String)Candide.Multiplayer.Chat.ChatLogManager::SendLocalChatMessage(System.String, CandideServer.Models.ChatMessageType)Dictionary.Enumerator<System.Guid, Shared.Text.StringId>::MoveNext()
String literals
SyncBuildingRemoved: Building doesn't exist in the game stateTown ID is set on the building but the town doesn't existCitizens_Chat_LostHome
TryRemoveBuilding
#
public System.Boolean TryRemoveBuilding(System.Guid buildingId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
48DD416A800CA38382F81ACC3524B89E4228AF9A85B52A33662668B737683E88 - Body hash
70E8453FA99C995429D28D44EA90D3AEE5671CF396414E6B15C0F3F406E480E8 - IL size87
Referenced calls
System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)CandideServer.MessageModels.Buildings.RemoveBuildingMessage::.ctor()Candide.GameModels.Services.BuildingsService::Send_RemoveBuilding(CandideServer.MessageModels.Buildings.RemoveBuildingMessage)Microsoft.Xna.Framework.Rectangle::get_Center()CandideCreator.Shared.Helpers.VectorExtension::ToVector3Xy(Microsoft.Xna.Framework.Point)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Candide.Sound.SoundPlayer::Play3DEventOneShot(System.String, Microsoft.Xna.Framework.Vector3, System.Single, System.Single)
String literals
event:/buildings/construction_remove