Romestead Assembly Reference

CandideServer.ServerControllers.InternalResourceStorageSController

Type JSON

public class in CandideServer.ServerControllers

Methods14
Properties0
Fields0
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerControllers
  • Base typeSystem.Object
  • HashED0F83DD526C7033A87A60500E4834E6C97C1A5A733A16FB2F419FF1751BE82A

Relationships

Base type

System.Object

Methods

AdjustStorageWithResourceAggregate

public CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage AdjustStorageWithResourceAggregate(CandideServer.Models.InternalResourceStorageModel storage, Shared.Models.Construction.ConstructionMaterialsAggregate constructionMaterials)

Method metadata
Referenced calls
  • CandideServer.Models.InternalResourceStorageModel::CanAdjustByConstructionMaterialsAggregate(Shared.Models.Construction.ConstructionMaterialsAggregate)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::.ctor()
  • 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>::get_Value()
  • System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Key()
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Item(!0)
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)
  • System.ValueTuple<System.String, System.Int32>::.ctor(!0, !1)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::Add(!0)
  • Dictionary.Enumerator<System.String, System.Int32>::MoveNext()
  • System.IDisposable::Dispose()
  • CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::ToArray()
Called by

CanSpendConstructionUpgradeCostForTown

public System.ValueTuple<System.Boolean, System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>>> CanSpendConstructionUpgradeCostForTown(Shared.Models.Construction.ConstructionModel construction, System.Guid townId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.ValueTuple<System.Boolean, System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.List<Shared.Models.Items.ResourceAmount>>>
  • StaticTrue
  • VirtualFalse
  • HashFC3DCF0992112C71B6EE5BF0FAF2C5E3E7E196F920F536EB56413F963315B69B
  • Body hash0A76AC2816ADEA33DEC0C259744B0922E9ABCA1E57769C8699B8EBC41D5DE56A
  • IL size470
Referenced calls
Called by
String literals
  • Material storage
  • doesn't have an internal resource storage ID

CheckCanRemoveResources

public System.Boolean CheckCanRemoveResources(CandideServer.Models.InternalResourceStorageModel storage, Shared.Models.Items.ResourceAmount[] resourceAmounts)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashA1775F9223AA3D0629E78CCA166823276EAEB26E1473B9C575E3D6235DF44E99
  • Body hash77A3891914EA929200CEC7B992DE8B65DD4FDB26C6D1012D2BA91C0E2E42B3E2
  • IL size48
Referenced calls
Called by

CreateInternalResourceStorage

public CandideServer.Models.InternalResourceStorageModel CreateInternalResourceStorage(CandideServer.MessageModels.InternalResourceStorage.CreateNewInternalResourceStorageMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeCandideServer.Models.InternalResourceStorageModel
  • StaticTrue
  • VirtualFalse
  • Hash3B5720CAB6FDA5B6350455C6B8149865BD84590A6D3884A11AE11304A031F42B
  • Body hash2029534398FFFF5988B67D6E2105A2EA3B1AE1DC078E7CD559100D34167CE5E4
  • IL size219
Referenced calls
  • 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>::get_Key()
  • Shared.Data.ConstructionResourcesDataBase::GetConstructionResourceOrNull(System.String)
  • System.Nullable<Shared.Models.Construction.ConstructionResourceDataModel>::get_HasValue()
  • System.String::Concat(System.String, System.String, System.String)
  • CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
  • Dictionary.Enumerator<System.String, System.Int32>::MoveNext()
  • System.IDisposable::Dispose()
  • CandideServer.Models.InternalResourceStorageModel::.ctor()
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.InternalResourceStorageModel>::TryAdd(!0, !1)
  • 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()
Called by
String literals
  • Unknown resource type
  • . Couldn't find it in the DataBase. Aborting
  • Failed to add new InternalResourceStorage to the game state. ID:

DepleteResource

public CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage DepleteResource(CandideServer.Models.InternalResourceStorageModel storage, System.String resourceId, System.Int32 amount)

Method metadata
Referenced calls
Called by
String literals
  • Failed to deplete amount
  • of resource
  • from storage with ID

DepleteResources

public CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage DepleteResources(CandideServer.Models.InternalResourceStorageModel storage, Shared.Models.Items.ResourceAmount[] resourceAmounts, System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Logistics.LogisticsConnectionParameter> logisticsConnectionParameters)

Method metadata
Referenced calls
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::.ctor()
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)
  • System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Logistics.LogisticsConnectionParameter>::TryGetValue(!0, !1&)
  • System.Math::Min(System.Int32, System.Int32)
  • CandideServer.Models.InternalResourceStorageModel::TryAdjustByAmount(System.String, System.Int32)
  • System.ValueTuple<System.String, System.Int32>::.ctor(!0, !1)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::Add(!0)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::get_Count()
  • CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::ToArray()
Called by

DepleteResources_Destructive

public CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage DepleteResources_Destructive(CandideServer.Models.InternalResourceStorageModel storage, Shared.Models.Items.ResourceAmount[] resourceAmounts, System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Logistics.LogisticsConnectionParameter> logisticsConnectionParameters)

Method metadata
Referenced calls
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::.ctor()
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)
  • System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Logistics.LogisticsConnectionParameter>::TryGetValue(!0, !1&)
  • System.Math::Min(System.Int32, System.Int32)
  • CandideServer.Models.InternalResourceStorageModel::TryAdjustByAmount(System.String, System.Int32)
  • System.ValueTuple<System.String, System.Int32>::.ctor(!0, !1)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::Add(!0)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::get_Count()
  • CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::ToArray()
Called by

MoveWhateverPossibleFromSourceToDestination

public System.Boolean MoveWhateverPossibleFromSourceToDestination(CandideServer.Models.InternalResourceStorageModel sourceResourceInventory, CandideServer.Models.InternalResourceStorageModel targetResourceInventory, Shared.Models.Items.ResourceAmount[] moveResourcesArray, System.Int32 moveResourcesCount, System.Collections.Generic.HashSet<System.String> sourceChanges, System.Collections.Generic.HashSet<System.String> targetChanges)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash78FF2B3164325F0400F7959A49B68F8C480F9E804E75E25BF6AD5CC889879BE0
  • Body hash9707F9F06C392F8E664403632634341B5A2C8985A1BF656BB902B94B407550AC
  • IL size126
Referenced calls
Called by

RemoveStorage

public System.Void RemoveStorage(System.Guid storageId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashDBC21E3B8ADCC6C6E641688D8E080DEA6B0035B08DCFF6C78064006A9C2A9A69
  • Body hash9501F80D0F88F36C56FC2C6A953DB78BEA1E5F68442C9EBC6D871E4949887A6E
  • IL size75
Referenced calls
Called by
String literals
  • Tried removing internal resource storage with id
  • but it didn't exist in the server game state.

TryAddToStorage

public CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage TryAddToStorage(CandideServer.Models.InternalResourceStorageModel storageModel, System.Collections.Generic.IReadOnlyCollection<Shared.Models.Items.ResourceAmount> resourceAmounts)

Method metadata
Referenced calls
  • System.Collections.Generic.IEnumerable<Shared.Models.Items.ResourceAmount>::GetEnumerator()
  • System.Collections.Generic.IEnumerator<Shared.Models.Items.ResourceAmount>::get_Current()
  • CandideServer.Models.InternalResourceStorageModel::CanAdjustByAmount(System.String, System.Int32)
  • System.Collections.IEnumerator::MoveNext()
  • System.IDisposable::Dispose()
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::.ctor()
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Item(!0)
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)
  • System.ValueTuple<System.String, System.Int32>::.ctor(!0, !1)
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::Add(!0)
  • CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()
  • System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::ToArray()

TryAddToStorage

public CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage TryAddToStorage(CandideServer.Models.InternalResourceStorageModel storageModel, System.String resourceId, System.Int32 amount)

Method metadata
Referenced calls
Called by

TryAddToStorage

public System.Boolean TryAddToStorage(CandideServer.Models.InternalResourceStorageModel storageModel, System.String resourceId, System.Int32 amount, System.Boolean allowPartialStack, System.Collections.Generic.HashSet<System.String> changes, out System.Int32& addedAmount)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash6563280D0EC8DCEFDD4D5FB85FE12CD641007553C289203ADD458E33328EEB90
  • Body hash45049C534E7410E38F8A1DE555623C638E2A3505D9CC2101CD334888207D995A
  • IL size85
Referenced calls
Called by

TryDepleteResource

public System.Boolean TryDepleteResource(CandideServer.Models.InternalResourceStorageModel storage, System.String resourceId, System.Int32 amount, System.Collections.Generic.HashSet<System.String> changes)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashFB54538E398137485E43BDA65E562E5EDADAD90A8BDDE5079D9571EB6FE7EE80
  • Body hash8EA8EBAA169B1863E0817A23340BB062FD3B2595DB000713B531849F1E517DF8
  • IL size110
Referenced calls
Called by
String literals
  • Failed to deplete amount
  • of resource
  • from storage with ID

UpdateInternalResourceStorageMaximums

public CandideServer.Models.InternalResourceStorageModel UpdateInternalResourceStorageMaximums(System.Guid storageId, System.Collections.Generic.IEnumerable<Shared.Models.Items.ResourceAmount> newMaximum)

Method metadata
  • Visibilitypublic
  • Return typeCandideServer.Models.InternalResourceStorageModel
  • StaticTrue
  • VirtualFalse
  • Hash2D8F35FDBE72CA2F29821C12A215D5C76269A1BC2B480A6048A4C71B9BF0EEF6
  • Body hash45F45F7E1A8EDB624B5D6A9FCD325711C6DC2948CEBEF71294CE172D21EF9C2B
  • IL size153
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.InternalResourceStorageModel>::TryGetValue(!0, !1&)
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::.ctor()
  • System.Collections.Generic.IEnumerable<Shared.Models.Items.ResourceAmount>::GetEnumerator()
  • System.Collections.Generic.IEnumerator<Shared.Models.Items.ResourceAmount>::get_Current()
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)
  • System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)
  • System.Collections.IEnumerator::MoveNext()
  • System.IDisposable::Dispose()
Called by