CandideServer.ServerManagers.InternalResourceStorageServerManager
Type JSONpublic class in CandideServer.ServerManagers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.ServerManagers - Base type
System.Object - Hash
2B1D54E1B751B1A7EA7F6BEEF947BA78C2AB4BB9DFD36A3BED0B428B5543ADE8
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
ReuseSpawnEntitiesList# | private | private System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage> ReuseSpawnEntitiesList |
Methods
DropStorageAndDelete
#
public System.Void DropStorageAndDelete(System.Guid storageId, Microsoft.Xna.Framework.Vector3 worldPosition, System.Guid worldId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
0DE598E0C6F63FCF69AEAA0F148578346A52CE4D17D4998A33DD46268F8A96CC - Body hash
7B745ECE9A87CEB04A0FF22646C401142C1619DBACA594D512584746846F4AEE - IL size357
Referenced calls
CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>::Clear()System.Collections.Generic.Dictionary<System.String, System.Int32>::GetEnumerator()Dictionary.Enumerator<System.String, System.Int32>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.Int32>::Deconstruct(!0&, !1&)Shared.Data.ConstructionResourcesDataBase::GetConstructionResourceOrNull(System.String)System.Nullable<Shared.Models.Construction.ConstructionResourceDataModel>::get_HasValue()System.Nullable<Shared.Models.Construction.ConstructionResourceDataModel>::get_Value()System.Nullable<System.Guid>::get_HasValue()CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)CandideCreator.Shared.Helpers.RandomHelper::NextDouble(System.Random, System.Double, System.Double)CandideServer.MessageModels.Entities.RequestSpawnEntityMessage::.ctor()System.Math::Cos(System.Double)System.Math::Sin(System.Double)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Multiply(System.Single, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::get_UnitZ()Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)System.Nullable<System.Guid>::get_Value()System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>::Add(!0)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()CandideServer.ServerControllers.InternalResourceStorageSController::RemoveStorage(System.Guid)CandideServer.ServerManagers.EntityServerManager::SpawnEntities(System.Collections.Generic.IReadOnlyCollection<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>, System.Guid)
MoveWhateverPossibleFromSourceToDestination
#
public System.Void MoveWhateverPossibleFromSourceToDestination(CandideServer.Models.InternalResourceStorageModel sourceResourceInventory, CandideServer.Models.InternalResourceStorageModel targetResourceInventory, Shared.Models.Items.ResourceAmount[] moveResourcesArray, System.Int32 moveResourcesCount)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
759C9C6ADA83464DFFFF4FEA18827674A710882D094034E6832C0F45D1B6F4AC - Body hash
31A90B43AFB35FFAE9A52A634A865AD65AAE84218F57F9ECE7AFD8B583D2CA83 - IL size36
Referenced calls
System.Collections.Generic.HashSet<System.String>::.ctor()CandideServer.ServerControllers.InternalResourceStorageSController::MoveWhateverPossibleFromSourceToDestination(CandideServer.Models.InternalResourceStorageModel, CandideServer.Models.InternalResourceStorageModel, Shared.Models.Items.ResourceAmount[], System.Int32, System.Collections.Generic.HashSet<System.String>, System.Collections.Generic.HashSet<System.String>)CandideServer.ServerManagers.InternalResourceStorageServerManager::SendUpdatedStorageResourceAmounts(CandideServer.Models.InternalResourceStorageModel, CandideServer.Models.InternalResourceStorageModel, System.Collections.Generic.HashSet<System.String>, System.Collections.Generic.HashSet<System.String>)
SendMultipleUpdatedStorageResourceAmounts
#
public System.Void SendMultipleUpdatedStorageResourceAmounts(System.Collections.Generic.List<System.ValueTuple<CandideServer.Models.InternalResourceStorageModel, System.Collections.Generic.HashSet<System.String>>> changedStorageResourceIds)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
BF029D2A1436571FB8F1A7FCE546BB2C76CDCAFE41123F1CDC02F90DB51BE9F5 - Body hash
723B92A955A203AF599194D67256A39C2D974A12D656EB1963C30A93C23D50F4 - IL size212
Referenced calls
System.Collections.Generic.List<System.ValueTuple<CandideServer.Models.InternalResourceStorageModel, System.Collections.Generic.HashSet<System.String>>>::get_Count()System.Collections.Generic.List<System.ValueTuple<CandideServer.Models.InternalResourceStorageModel, System.Collections.Generic.HashSet<System.String>>>::GetEnumerator()List.Enumerator<System.ValueTuple<CandideServer.Models.InternalResourceStorageModel, System.Collections.Generic.HashSet<System.String>>>::get_Current()System.Collections.Generic.HashSet<System.String>::get_Count()System.Collections.Generic.HashSet<System.String>::GetEnumerator()HashSet.Enumerator<System.String>::get_Current()CandideServer.Models.InternalResourceStorageModel::GetResourceAmount(System.String)System.ValueTuple<System.String, System.Int32>::.ctor(!0, !1)HashSet.Enumerator<System.String>::MoveNext()System.IDisposable::Dispose()CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()List.Enumerator<System.ValueTuple<CandideServer.Models.InternalResourceStorageModel, System.Collections.Generic.HashSet<System.String>>>::MoveNext()CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage::.ctor()CandideServer.ServerServices.InternalResourceStorageServerService::Send_InternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage)
SendUpdatedStorageResourceAmounts
#
public System.Void SendUpdatedStorageResourceAmounts(CandideServer.Models.InternalResourceStorageModel sourceResourceInventory, CandideServer.Models.InternalResourceStorageModel targetResourceInventory, System.Collections.Generic.HashSet<System.String> changedSourceResourceIds, System.Collections.Generic.HashSet<System.String> changedTargetResourceIds)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
6282D65C96504739720B6DEBDE6EBE1DF166C985F4FB0E5B8127993A233493F0 - Body hash
458344A681E1B70C6FB58EF8A8AFBD43C397C53D9B42DCD1E4C62FDEFDA6A247 - IL size248
Referenced calls
System.Collections.Generic.HashSet<System.String>::get_Count()System.Collections.Generic.HashSet<System.String>::GetEnumerator()HashSet.Enumerator<System.String>::get_Current()CandideServer.Models.InternalResourceStorageModel::GetResourceAmount(System.String)System.ValueTuple<System.String, System.Int32>::.ctor(!0, !1)HashSet.Enumerator<System.String>::MoveNext()System.IDisposable::Dispose()CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage::.ctor()CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()CandideServer.ServerServices.InternalResourceStorageServerService::Send_InternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage)
TryRemoveResources_Destructive
#
public System.Boolean TryRemoveResources_Destructive(CandideServer.Models.InternalResourceStorageModel storageModel, Shared.Models.Items.ResourceAmount[] resourceAmounts)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
5946F36B40B61252331BA8ADF420507ACA698217B9204B0739B221640053C178 - Body hash
D8C003F34D6066F7D60ABE1F4BB89A4F248E2AE47A08A19EFA37C68278395624 - IL size22
Referenced calls
CandideServer.ServerControllers.InternalResourceStorageSController::DepleteResources_Destructive(CandideServer.Models.InternalResourceStorageModel, Shared.Models.Items.ResourceAmount[], System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Logistics.LogisticsConnectionParameter>)CandideServer.ServerServices.InternalResourceStorageServerService::Send_OneInternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage)
TryUpdateStorage
#
public System.Boolean TryUpdateStorage(CandideServer.Models.InternalResourceStorageModel storageModel, System.String resourceId, System.Int32 amount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
9B73FE286C0026C2D5451A48E468CF3F05BEFD2637E003C877384338B91A95D6 - Body hash
FF079FB5553184EB0B17F2FE97F71BE9BC633D826EACCA0FC778B78F08D3FE5B - IL size22
Referenced calls
CandideServer.ServerControllers.InternalResourceStorageSController::TryAddToStorage(CandideServer.Models.InternalResourceStorageModel, System.String, System.Int32)CandideServer.ServerServices.InternalResourceStorageServerService::Send_OneInternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage)