{"Id":"CandideServer.ServerManagers.ConstructionsServerManager","Name":"ConstructionsServerManager","DisplayName":"ConstructionsServerManager","FullName":"CandideServer.ServerManagers.ConstructionsServerManager","Namespace":"CandideServer.ServerManagers","Kind":"class","Visibility":"public","IsAbstract":true,"IsSealed":true,"BaseType":"System.Object","Interfaces":[],"SourceLocations":[],"Fields":[],"Properties":[],"Events":[],"Methods":[{"Id":"SpawnConstruction(Shared.Models.Construction.ConstructionModel, Microsoft.Xna.Framework.Rectangle, System.Guid, System.Guid, System.Collections.Generic.Dictionary\u00602\u003CSystem.String,System.String\u003E, System.Nullable\u00601\u003CSystem.Guid\u003E, System.Nullable\u00601\u003CSystem.Guid\u003E, System.Nullable\u00601\u003CSystem.Guid\u003E)-\u003ESystem.Void","Name":"SpawnConstruction","Signature":"public System.Void SpawnConstruction(Shared.Models.Construction.ConstructionModel construction, Microsoft.Xna.Framework.Rectangle tileBounds, System.Guid worldId, System.Guid spawnId, System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E parameters, System.Nullable\u003CSystem.Guid\u003E constructionSiteId, System.Nullable\u003CSystem.Guid\u003E characterId, System.Nullable\u003CSystem.Guid\u003E townId)","Visibility":"public","ReturnType":"System.Void","Parameters":[{"Name":"construction","Type":"Shared.Models.Construction.ConstructionModel","IsOut":false,"IsOptional":false},{"Name":"tileBounds","Type":"Microsoft.Xna.Framework.Rectangle","IsOut":false,"IsOptional":false},{"Name":"worldId","Type":"System.Guid","IsOut":false,"IsOptional":false},{"Name":"spawnId","Type":"System.Guid","IsOut":false,"IsOptional":false},{"Name":"parameters","Type":"System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E","IsOut":false,"IsOptional":true},{"Name":"constructionSiteId","Type":"System.Nullable\u003CSystem.Guid\u003E","IsOut":false,"IsOptional":true},{"Name":"characterId","Type":"System.Nullable\u003CSystem.Guid\u003E","IsOut":false,"IsOptional":true},{"Name":"townId","Type":"System.Nullable\u003CSystem.Guid\u003E","IsOut":false,"IsOptional":true}],"IsStatic":true,"IsAbstract":false,"IsVirtual":false,"IsConstructor":false,"GenericArity":0,"IlSize":1208,"BodyHash":"2A2710E11B414118E3D45CBABBDE81C3C57B19B8C05E4E81B4986BFE180C70D9","Hash":"CCAB7ED9D9EE74E7E641962BAA9380859C1FBA8D58ECF506D4626BDBBDE1976D","CalledMethods":["System.Guid::op_Equality(System.Guid, System.Guid)","System.Guid::NewGuid()","System.String::Concat(System.String, System.String, System.String)","CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)","System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E::.ctor()","System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E::GetEnumerator()","Dictionary.Enumerator\u003CSystem.String, System.String\u003E::get_Current()","System.Collections.Generic.KeyValuePair\u003CSystem.String, System.String\u003E::get_Key()","System.Collections.Generic.KeyValuePair\u003CSystem.String, System.String\u003E::get_Value()","System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E::set_Item(!0, !1)","Dictionary.Enumerator\u003CSystem.String, System.String\u003E::MoveNext()","System.IDisposable::Dispose()","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()","CandideServer.ServerControllers.BuildingsSController::SpawnNewBuildingConstruction(System.String, System.Guid, Microsoft.Xna.Framework.Rectangle, System.Nullable\u003CSystem.Guid\u003E, System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E)","System.String::op_Equality(System.String, System.String)","System.Nullable\u003CSystem.Guid\u003E::get_HasValue()","System.Nullable\u003CSystem.Guid\u003E::get_Value()","System.Collections.Generic.Dictionary\u003CSystem.Guid, CandideServer.Models.Town.ServerTownModel\u003E::get_Item(!0)","CandideServer.SyncStrategies.SyncStrategy::Everyone()","CandideServer.ServerManagers.ConstructionSitesServerManager::RemoveIntersectingConstructionSites(System.Guid, Microsoft.Xna.Framework.Rectangle, CandideServer.SyncStrategies.SyncStrategy, System.String)","CandideServer.MessageModels.Buildings.BuildingSpawnedMessage::.ctor()","System.Collections.Generic.CollectionExtensions::GetValueOrDefault(System.Collections.Generic.IReadOnlyDictionary\u003C!!0, !!1\u003E, !!0)","ConstructionsServerManager.\u003C\u003Ec::\u003CSpawnConstruction\u003Eb__2_0(System.Guid)","System.Func\u003CSystem.Guid, CandideServer.Models.Citizen.CitizenSlotModel\u003E::.ctor(System.Object, System.IntPtr)","System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable\u003C!!0\u003E, System.Func\u003C!!0, !!1\u003E)","System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable\u003C!!0\u003E)","CandideServer.ServerServices.BuildingsServerService::Send_BuildingSpawned(CandideServer.MessageModels.Buildings.BuildingSpawnedMessage)","System.Nullable\u003CSystem.Int32\u003E::get_HasValue()","CandideServer.ServerManagers.TownsServerManager::RegisterTownDefenceValue(System.Guid, Shared.Models.Construction.ConstructionModel, System.Guid)"],"StringLiterals":["Construction with ID "," does not spawn anything.","Tried to spawn construction with ConstructionType: ","town_core:0","SpawnConstruction: Spawned a Town Core but we have no town set for it.","Tried to create inventory when spawning construction "," but there are no inventory parameters","inventory_id","Unknown ground tile ID ","Currently do not support decorations with town defense value. Need to update so decorations save Town ID affiliation, an"],"Source":null},{"Id":"SpawnConstruction(System.String, Microsoft.Xna.Framework.Point, System.Guid, System.Guid, System.Collections.Generic.Dictionary\u00602\u003CSystem.String,System.String\u003E, System.Nullable\u00601\u003CSystem.Guid\u003E, System.Nullable\u00601\u003CSystem.Guid\u003E, System.Nullable\u00601\u003CSystem.Guid\u003E)-\u003ESystem.Void","Name":"SpawnConstruction","Signature":"public System.Void SpawnConstruction(System.String constructionId, Microsoft.Xna.Framework.Point tilePosition, System.Guid worldId, System.Guid spawnId, System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E parameters, System.Nullable\u003CSystem.Guid\u003E constructionSiteId, System.Nullable\u003CSystem.Guid\u003E characterId, System.Nullable\u003CSystem.Guid\u003E townId)","Visibility":"public","ReturnType":"System.Void","Parameters":[{"Name":"constructionId","Type":"System.String","IsOut":false,"IsOptional":false},{"Name":"tilePosition","Type":"Microsoft.Xna.Framework.Point","IsOut":false,"IsOptional":false},{"Name":"worldId","Type":"System.Guid","IsOut":false,"IsOptional":false},{"Name":"spawnId","Type":"System.Guid","IsOut":false,"IsOptional":false},{"Name":"parameters","Type":"System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E","IsOut":false,"IsOptional":true},{"Name":"constructionSiteId","Type":"System.Nullable\u003CSystem.Guid\u003E","IsOut":false,"IsOptional":true},{"Name":"characterId","Type":"System.Nullable\u003CSystem.Guid\u003E","IsOut":false,"IsOptional":true},{"Name":"townId","Type":"System.Nullable\u003CSystem.Guid\u003E","IsOut":false,"IsOptional":true}],"IsStatic":true,"IsAbstract":false,"IsVirtual":false,"IsConstructor":false,"GenericArity":0,"IlSize":106,"BodyHash":"04D3F60BB30F06E525C84559946AA5305ED6AE5CF81016B2E869D61D7CEBEA76","Hash":"781AA98C50A5AD1D6044F2C50E9484BA543A9CC7A4C080E5F4AD61AA9A2EE72C","CalledMethods":["Shared.Data.ConstructionDataBase::GetConstructionOrMissing(System.String)","Microsoft.Xna.Framework.Rectangle::get_Location()","Microsoft.Xna.Framework.Point::op_Addition(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Point)","Microsoft.Xna.Framework.Rectangle::set_Location(Microsoft.Xna.Framework.Point)","CandideServer.ServerManagers.ConstructionsServerManager::SpawnConstruction(Shared.Models.Construction.ConstructionModel, Microsoft.Xna.Framework.Rectangle, System.Guid, System.Guid, System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E, System.Nullable\u003CSystem.Guid\u003E, System.Nullable\u003CSystem.Guid\u003E, System.Nullable\u003CSystem.Guid\u003E)","System.Exception::.ctor(System.String)"],"StringLiterals":["TileBounds does not have a value"],"Source":null},{"Id":"TryPlaceConstruction(Microsoft.Xna.Framework.Point, System.Guid, System.Guid, CandideServer.EventBus.EventBusArgs)-\u003ESystem.Nullable\u00601\u003CSystem.Int32\u003E","Name":"TryPlaceConstruction","Signature":"public System.Nullable\u003CSystem.Int32\u003E TryPlaceConstruction(Microsoft.Xna.Framework.Point tilePosition, System.Guid itemInstanceId, System.Guid entityId, CandideServer.EventBus.EventBusArgs args)","Visibility":"public","ReturnType":"System.Nullable\u003CSystem.Int32\u003E","Parameters":[{"Name":"tilePosition","Type":"Microsoft.Xna.Framework.Point","IsOut":false,"IsOptional":false},{"Name":"itemInstanceId","Type":"System.Guid","IsOut":false,"IsOptional":false},{"Name":"entityId","Type":"System.Guid","IsOut":false,"IsOptional":false},{"Name":"args","Type":"CandideServer.EventBus.EventBusArgs","IsOut":false,"IsOptional":false}],"IsStatic":true,"IsAbstract":false,"IsVirtual":false,"IsConstructor":false,"GenericArity":0,"IlSize":287,"BodyHash":"C2246E42D6F2FA503D2831E1619F00AD5AB5200CC0CADD3921360BF770C751F5","Hash":"CE791E39D6D361AB81E9D80C951AD4520626AD6C583D88AD7AFCF73E3F9D7D50","CalledMethods":["System.Collections.Generic.Dictionary\u003CSystem.Guid, Shared.Models.Items.ItemInstanceModel\u003E::TryGetValue(!0, !1\u0026)","Shared.Models.Items.ItemInstanceModel::get_Data()","Shared.Data.ConstructionDataBase::GetConstructionOrNull(System.String)","CandideServer.ServerManagers.SimpleInventoryServerManager::TryExpendOneItem(Shared.Models.Items.ItemInstanceModel, System.Guid)","Microsoft.Xna.Framework.Point::ToVector2()","Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)","CandideServer.ServerManagers.TownsServerManager::GetClosestTown(Microsoft.Xna.Framework.Vector2)","System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E::.ctor()","System.Object::ToString()","System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E::Add(!0, !1)","System.Nullable\u003CSystem.Guid\u003E::.ctor(!0)","CandideServer.ServerManagers.ConstructionsServerManager::SpawnConstruction(System.String, Microsoft.Xna.Framework.Point, System.Guid, System.Guid, System.Collections.Generic.Dictionary\u003CSystem.String, System.String\u003E, System.Nullable\u003CSystem.Guid\u003E, System.Nullable\u003CSystem.Guid\u003E, System.Nullable\u003CSystem.Guid\u003E)","System.Nullable\u003CSystem.Int32\u003E::.ctor(!0)"],"StringLiterals":["owner_character_id"],"Source":null},{"Id":"TrySpendConstructionUpgrade(Shared.Models.Construction.ConstructionModel, System.Guid)-\u003ESystem.Boolean","Name":"TrySpendConstructionUpgrade","Signature":"public System.Boolean TrySpendConstructionUpgrade(Shared.Models.Construction.ConstructionModel construction, System.Guid resourceSourceId)","Visibility":"public","ReturnType":"System.Boolean","Parameters":[{"Name":"construction","Type":"Shared.Models.Construction.ConstructionModel","IsOut":false,"IsOptional":false},{"Name":"resourceSourceId","Type":"System.Guid","IsOut":false,"IsOptional":false}],"IsStatic":true,"IsAbstract":false,"IsVirtual":false,"IsConstructor":false,"GenericArity":0,"IlSize":58,"BodyHash":"7527AF2400CCD0266ECFADD5D779E22BA632226C93ACA1681839692AB1D3F727","Hash":"86EF7D6534A9FFC1F1BF3D4C81BB2F8A723C4BA84CA9365B3225E7CB15B2A16D","CalledMethods":["System.Collections.Generic.Dictionary\u003CSystem.Guid, CandideServer.SimulationModels.BuildingSimulationModel\u003E::TryGetValue(!0, !1\u0026)","System.Nullable\u003CSystem.Guid\u003E::get_HasValue()","System.Nullable\u003CSystem.Guid\u003E::GetValueOrDefault()","CandideServer.ServerManagers.ConstructionsServerManager::TrySpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel, System.Guid)"],"StringLiterals":[],"Source":null},{"Id":"TrySpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel, System.Guid)-\u003ESystem.Boolean","Name":"TrySpendConstructionUpgradeCostForTown","Signature":"public System.Boolean TrySpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel construction, System.Guid townId)","Visibility":"public","ReturnType":"System.Boolean","Parameters":[{"Name":"construction","Type":"Shared.Models.Construction.ConstructionModel","IsOut":false,"IsOptional":false},{"Name":"townId","Type":"System.Guid","IsOut":false,"IsOptional":false}],"IsStatic":true,"IsAbstract":false,"IsVirtual":false,"IsConstructor":false,"GenericArity":0,"IlSize":292,"BodyHash":"1FDEB5F4650014C30DD6A9C643CD4F0CEA1C0C8109E0A0E5B1D4FFC2467267E2","Hash":"3EF06CCEDE03F50CBA0C4B0F8058870583A0456D47A6886005442E9D955264A8","CalledMethods":["CandideServer.ServerControllers.InternalResourceStorageSController::CanSpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel, System.Guid)","System.Collections.Generic.List\u003CCandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage\u003E::.ctor()","System.Collections.Generic.Dictionary\u003CSystem.Guid, System.Collections.Generic.List\u003CShared.Models.Items.ResourceAmount\u003E\u003E::GetEnumerator()","Dictionary.Enumerator\u003CSystem.Guid, System.Collections.Generic.List\u003CShared.Models.Items.ResourceAmount\u003E\u003E::get_Current()","System.Collections.Generic.KeyValuePair\u003CSystem.Guid, System.Collections.Generic.List\u003CShared.Models.Items.ResourceAmount\u003E\u003E::Deconstruct(!0\u0026, !1\u0026)","CandideServer.ServerGameState::TryGetBuilding(System.Guid, CandideServer.SimulationModels.BuildingSimulationModel\u0026)","System.Nullable\u003CSystem.Guid\u003E::get_HasValue()","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)","System.Nullable\u003CSystem.Guid\u003E::get_Value()","CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel\u0026)","System.Collections.Generic.List\u003CShared.Models.Items.ResourceAmount\u003E::ToArray()","CandideServer.ServerControllers.InternalResourceStorageSController::DepleteResources_Destructive(CandideServer.Models.InternalResourceStorageModel, Shared.Models.Items.ResourceAmount[], System.Collections.Generic.Dictionary\u003CSystem.String, CandideServer.Models.Logistics.LogisticsConnectionParameter\u003E)","System.Collections.Generic.List\u003CCandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage\u003E::Add(!0)","Dictionary.Enumerator\u003CSystem.Guid, System.Collections.Generic.List\u003CShared.Models.Items.ResourceAmount\u003E\u003E::MoveNext()","System.IDisposable::Dispose()","CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage::.ctor()","System.Collections.Generic.List\u003CCandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage\u003E::ToArray()","CandideServer.ServerServices.InternalResourceStorageServerService::Send_InternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage)"],"StringLiterals":["Material storage "," doesn\u0027t have an internal resource storage ID","Weird that we can\u0027t find it since we already checked it exists.","Failed depleting resources but we already checked that it should work."],"Source":null}],"Hash":"52CC52DF0EECFB539645517700CD1A0F31DCF663885E2621D28B659D85A564FA"}