CandideServer.ServerManagers.ConstructionsServerManager
Type JSONpublic class in CandideServer.ServerManagers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.ServerManagers - Base type
System.Object - Hash
52CC52DF0EECFB539645517700CD1A0F31DCF663885E2621D28B659D85A564FA
Relationships
Base type
System.Object
Methods
SpawnConstruction
#
public System.Void SpawnConstruction(Shared.Models.Construction.ConstructionModel construction, Microsoft.Xna.Framework.Rectangle tileBounds, System.Guid worldId, System.Guid spawnId, System.Collections.Generic.Dictionary<System.String, System.String> parameters, System.Nullable<System.Guid> constructionSiteId, System.Nullable<System.Guid> characterId, System.Nullable<System.Guid> townId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
CCAB7ED9D9EE74E7E641962BAA9380859C1FBA8D58ECF506D4626BDBBDE1976D - Body hash
2A2710E11B414118E3D45CBABBDE81C3C57B19B8C05E4E81B4986BFE180C70D9 - IL size1208
Referenced calls
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<System.String, System.String>::.ctor()System.Collections.Generic.Dictionary<System.String, System.String>::GetEnumerator()Dictionary.Enumerator<System.String, System.String>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.String>::get_Key()System.Collections.Generic.KeyValuePair<System.String, System.String>::get_Value()System.Collections.Generic.Dictionary<System.String, System.String>::set_Item(!0, !1)Dictionary.Enumerator<System.String, System.String>::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<System.Guid>, System.Collections.Generic.Dictionary<System.String, System.String>)System.String::op_Equality(System.String, System.String)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.ServerTownModel>::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<!!0, !!1>, !!0)ConstructionsServerManager.<>c::<SpawnConstruction>b__2_0(System.Guid)System.Func<System.Guid, CandideServer.Models.Citizen.CitizenSlotModel>::.ctor(System.Object, System.IntPtr)System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, !!1>)System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable<!!0>)CandideServer.ServerServices.BuildingsServerService::Send_BuildingSpawned(CandideServer.MessageModels.Buildings.BuildingSpawnedMessage)System.Nullable<System.Int32>::get_HasValue()CandideServer.ServerManagers.TownsServerManager::RegisterTownDefenceValue(System.Guid, Shared.Models.Construction.ConstructionModel, System.Guid)
String literals
Construction with IDdoes not spawn anything.Tried to spawn construction with ConstructionType:town_core:0SpawnConstruction: Spawned a Town Core but we have no town set for it.Tried to create inventory when spawning constructionbut there are no inventory parametersinventory_idUnknown ground tile IDCurrently do not support decorations with town defense value. Need to update so decorations save Town ID affiliation, an
SpawnConstruction
#
public System.Void SpawnConstruction(System.String constructionId, Microsoft.Xna.Framework.Point tilePosition, System.Guid worldId, System.Guid spawnId, System.Collections.Generic.Dictionary<System.String, System.String> parameters, System.Nullable<System.Guid> constructionSiteId, System.Nullable<System.Guid> characterId, System.Nullable<System.Guid> townId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
781AA98C50A5AD1D6044F2C50E9484BA543A9CC7A4C080E5F4AD61AA9A2EE72C - Body hash
04D3F60BB30F06E525C84559946AA5305ED6AE5CF81016B2E869D61D7CEBEA76 - IL size106
Referenced calls
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<System.String, System.String>, System.Nullable<System.Guid>, System.Nullable<System.Guid>, System.Nullable<System.Guid>)System.Exception::.ctor(System.String)
Called by
String literals
TileBounds does not have a value
TryPlaceConstruction
#
public System.Nullable<System.Int32> TryPlaceConstruction(Microsoft.Xna.Framework.Point tilePosition, System.Guid itemInstanceId, System.Guid entityId, CandideServer.EventBus.EventBusArgs args)
Method metadata
- Visibilitypublic
- Return type
System.Nullable<System.Int32> - StaticTrue
- VirtualFalse
- Hash
CE791E39D6D361AB81E9D80C951AD4520626AD6C583D88AD7AFCF73E3F9D7D50 - Body hash
C2246E42D6F2FA503D2831E1619F00AD5AB5200CC0CADD3921360BF770C751F5 - IL size287
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.ItemInstanceModel>::TryGetValue(!0, !1&)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<System.String, System.String>::.ctor()System.Object::ToString()System.Collections.Generic.Dictionary<System.String, System.String>::Add(!0, !1)System.Nullable<System.Guid>::.ctor(!0)CandideServer.ServerManagers.ConstructionsServerManager::SpawnConstruction(System.String, Microsoft.Xna.Framework.Point, System.Guid, System.Guid, System.Collections.Generic.Dictionary<System.String, System.String>, System.Nullable<System.Guid>, System.Nullable<System.Guid>, System.Nullable<System.Guid>)System.Nullable<System.Int32>::.ctor(!0)
Called by
String literals
owner_character_id
TrySpendConstructionUpgrade
#
public System.Boolean TrySpendConstructionUpgrade(Shared.Models.Construction.ConstructionModel construction, System.Guid resourceSourceId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
86EF7D6534A9FFC1F1BF3D4C81BB2F8A723C4BA84CA9365B3225E7CB15B2A16D - Body hash
7527AF2400CCD0266ECFADD5D779E22BA632226C93ACA1681839692AB1D3F727 - IL size58
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::TryGetValue(!0, !1&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::GetValueOrDefault()CandideServer.ServerManagers.ConstructionsServerManager::TrySpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel, System.Guid)
TrySpendConstructionUpgradeCostForTown
#
public System.Boolean TrySpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel construction, System.Guid townId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
3EF06CCEDE03F50CBA0C4B0F8058870583A0456D47A6886005442E9D955264A8 - Body hash
1FDEB5F4650014C30DD6A9C643CD4F0CEA1C0C8109E0A0E5B1D4FFC2467267E2 - IL size292
Referenced calls
CandideServer.ServerControllers.InternalResourceStorageSController::CanSpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel, System.Guid)System.Collections.Generic.List<CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage>::.ctor()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>>::GetEnumerator()Dictionary.Enumerator<System.Guid, System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>>::Deconstruct(!0&, !1&)CandideServer.ServerGameState::TryGetBuilding(System.Guid, CandideServer.SimulationModels.BuildingSimulationModel&)System.Nullable<System.Guid>::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<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>::ToArray()CandideServer.ServerControllers.InternalResourceStorageSController::DepleteResources_Destructive(CandideServer.Models.InternalResourceStorageModel, Shared.Models.Items.ResourceAmount[], System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Logistics.LogisticsConnectionParameter>)System.Collections.Generic.List<CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage>::Add(!0)Dictionary.Enumerator<System.Guid, System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>>::MoveNext()System.IDisposable::Dispose()CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage::.ctor()System.Collections.Generic.List<CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage>::ToArray()CandideServer.ServerServices.InternalResourceStorageServerService::Send_InternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage)
Called by
String literals
Material storagedoesn't have an internal resource storage IDWeird that we can't find it since we already checked it exists.Failed depleting resources but we already checked that it should work.