CandideServer.Models.InternalResourceStorageModel
Type JSONpublic class in CandideServer.Models
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Models - Base type
System.Object - Hash
0B5DB69A4B3A109B8381F343F5E86316DE935613511E78C2EF6B2AAB0B452528
Relationships
Base type
System.Object
Referenced by types
CandideServer.Buildings.BuildingControllers.AbstractBuildingControllerCandideServer.Citizens.GenericServerCitizenControllerCandideServer.MessageModels.InternalResourceStorage.GetInternalResourceStorageResponseCandideServer.MessageModels.Jobs.GetResourceStorageAndAvailableStuffCandideServer.ServerControllers.InternalResourceStorageSControllerCandideServer.ServerGameStateCandideServer.ServerManagers.BuildingsServerManagerCandideServer.ServerManagers.InternalResourceStorageServerManagerCandideServer.ServerManagers.LogisticsServerManager_RepeatingCandideServer.ServerManagers.LogisticsServerManager_RequestingCandideServer.ServerServices.BuildingsServerServiceCandide.GameModels.Controllers.InternalResourceStorageController
Fields
| Name | Visibility | Signature |
|---|---|---|
DefaultAllEmpty# | public | public System.Collections.Generic.Dictionary<System.String, System.Int32> DefaultAllEmpty |
Id# | public | public System.Guid Id |
MaximumNullValue# | public | public System.Int32 MaximumNullValue |
MaximumResourceAmounts# | public | public System.Collections.Generic.Dictionary<System.String, System.Int32> MaximumResourceAmounts |
ResourceAmounts# | public | public System.Collections.Generic.Dictionary<System.String, System.Int32> ResourceAmounts |
Methods
CanAdjustByAmount
#
public System.Boolean CanAdjustByAmount(System.String resourceId, System.Int32 value)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
F2D5B91B8B8ED3D9D8DC6AEA271C160BFD917449A333FF9FFA66DBF1C186B2CC - Body hash
F9D2054F2CE87CEA419BA0C560B5E09D73CFF47B465E737A0EFABEDA1380FC72 - IL size69
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)
Called by
CandideServer.Models.InternalResourceStorageModel::CanAdjustByConstructionMaterialsAggregateCandideServer.Models.InternalResourceStorageModel::TryAddAmountOrRegisterNewResourceCandideServer.Models.InternalResourceStorageModel::TryAdjustByAmountCandideServer.ServerControllers.InternalResourceStorageSController::TryAddToStorageCandideServer.ServerControllers.InternalResourceStorageSController::TryAddToStorageCandideServer.ServerControllers.InternalResourceStorageSController::TryAddToStorage
CanAdjustByConstructionMaterialsAggregate
#
public System.Boolean CanAdjustByConstructionMaterialsAggregate(Shared.Models.Construction.ConstructionMaterialsAggregate aggregate)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
B8664F360E53258C4F895A18F780EE9669FFAAD09FF91389CE483F8E16219F37 - Body hash
02CA50791BF2B3D0036C9404FA91E32B2C12FE05DE36449A1121E6D5037FB5FE - IL size77
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()System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Value()CandideServer.Models.InternalResourceStorageModel::CanAdjustByAmount(System.String, System.Int32)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()
CanRegisterResource
#
public System.Boolean CanRegisterResource(System.String resourceId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
FCF0EE04C2A16BB3A1FAFD33346459CD53BDBD57F8648611955A611B457DA0DB - Body hash
D8123ABB6741E59B1AFBE3D5E078485334499066410BE8B18F75BDDD5E884F37 - IL size23
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::ContainsKey(!0)
GetMaximumAmount
#
public System.Nullable<System.Int32> GetMaximumAmount(System.String resourceId)
Method metadata
- Visibilitypublic
- Return type
System.Nullable<System.Int32> - StaticFalse
- VirtualFalse
- Hash
DD8D5820407D44BDB55B52732F113350368B15D1DD892B45B7488576F948ADF3 - Body hash
5804E75EFDE6A57B56464650982B86AD854D9669077F14A3B31FED07F6433BF5 - IL size44
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)System.Nullable<System.Int32>::.ctor(!0)
Called by
CandideServer.Buildings.BuildingControllers.ConcreteMixerController::UpdateCandide.Entities.Controllers.Other.MaterialStorageFluidContainerController::BeforeRenderCandide.Entities.Controllers.Other.MaterialStorageFluidContainerController::GetToolTipCandide.Entities.Controllers.Other.MaterialStorageStackController::GetToolTip
GetResourceAmount
#
public System.Int32 GetResourceAmount(System.String resourceId)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticFalse
- VirtualFalse
- Hash
C6EDC7F84E8DBA52B48B9E9A3BB345641BB18CE764BEC3E7DDD813B9C254C3DB - Body hash
A5EE44ECAB2D8087DBBD5EE6A8870162005467063F8685CE32888C24F23E40C9 - IL size20
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)
Called by
CandideServer.Buildings.BuildingControllers.BrickOvenController::OnTickFurnaceCandideServer.Buildings.BuildingControllers.ConcreteMixerController::UpdateCandideServer.Citizens.GenericServerCitizenController::TryGetMaterialStoragesContainingLiquidCandideServer.Citizens.GenericServerCitizenController::TryHandleLiquidCollectionCandideServer.Entities.Controllers.ServerConcreteMixerController::CanInteractEmptyBucketCandideServer.Entities.Controllers.ServerConcreteMixerController::CanInteractFillBucketCandideServer.Entities.ControllerSets.MaterialStorage.ServerMaterialStorageStackController::UpdateCandideServer.Models.InternalResourceStorageModel::ToResourceAmountsUpdatesCandideServer.ServerControllers.InternalResourceStorageSController::CanSpendConstructionUpgradeCostForTownCandideServer.ServerControllers.InternalResourceStorageSController::CheckCanRemoveResourcesCandideServer.ServerControllers.InternalResourceStorageSController::DepleteResourceCandideServer.ServerControllers.InternalResourceStorageSController::MoveWhateverPossibleFromSourceToDestinationCandideServer.ServerManagers.BuildingsServerManager::DepleteOutputResourceStorageCandideServer.ServerManagers.InternalResourceStorageServerManager::SendMultipleUpdatedStorageResourceAmountsCandideServer.ServerManagers.InternalResourceStorageServerManager::SendUpdatedStorageResourceAmountsCandide.Entities.Controllers.Other.BrickOvenController::OnUpdateCandide.Entities.Controllers.Other.ConcreteMixerController::CanInteractEmptyBucketCandide.Entities.Controllers.Other.ConcreteMixerController::OnUpdateCandide.Entities.Controllers.Other.MaterialStorageFluidContainerController::GetToolTipCandide.Entities.Controllers.Other.MaterialStorageFluidContainerController::OnUpdateCandide.Entities.Controllers.Other.MaterialStorageStackController::GetToolTipCandide.Entities.Controllers.Other.MaterialStorageStackController::OnUpdate
GetSpaceLeft
#
public System.Int32 GetSpaceLeft(System.String resourceId)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticFalse
- VirtualFalse
- Hash
4B7C0B7503F17ACE8B2240ACBA31BDDD849B19429B2D751F597E19CC1A9E845F - Body hash
04E757730940F94DF7557E5635C1766810D05BD9E652181A386511B1A280411C - IL size54
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)
IsEmpty
#
public System.Boolean IsEmpty()
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
80FD44954768E7C024CC46CF3065BF49E2D164CD259F577E0F25DA4C974403EF - Body hash
C80417E119329F74C1E3A8D2225AAFD63D5308D627EC0DFB2F7AA141459876B7 - IL size72
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>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()
ToResourceAmountsArray
#
public Shared.Models.Items.ResourceAmount[] ToResourceAmountsArray()
Method metadata
- Visibilitypublic
- Return type
Shared.Models.Items.ResourceAmount[] - StaticFalse
- VirtualFalse
- Hash
274AE7ADAE4CAED29C6A7A2204C536F63FFCD04BAC9F435FE92C89F578B050B3 - Body hash
9AFFA7FE2D40EAD5114AC45E8EDABB2814434B4E4D4FD9B4FB8E834B56A308A2 - IL size118
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Count()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&)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()
Called by
ToResourceAmountsUpdates
#
public System.ValueTuple<System.String, System.Int32>[] ToResourceAmountsUpdates(System.Collections.Generic.HashSet<System.String> changedResourceIds)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.String, System.Int32>[] - StaticFalse
- VirtualFalse
- Hash
20B336F073BF04985CBD8839A35D14D80A7C23E1DF3650FAEE5102E5082C24B0 - Body hash
2C794142DA1F84059229E43F2EB747194D47356C1C5AD6C79FD1C92EA9DEB931 - IL size82
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()
ToString
#
public System.String ToString()
Method metadata
- Visibilitypublic
- Return type
System.String - StaticFalse
- VirtualTrue
- Hash
3C3DD2A014CD70135CCEEC91A2F2DC8877575351CB874EB0D4BF481DEDC0F287 - Body hash
380AC096732CC266EA6AEB3473B36DF612DDA71C3BE9A152574CF1FE0B480C6D - IL size304
Referenced calls
System.Text.StringBuilder::.ctor()StringBuilder.AppendInterpolatedStringHandler::.ctor(System.Int32, System.Int32, System.Text.StringBuilder)StringBuilder.AppendInterpolatedStringHandler::AppendFormatted(!!0)StringBuilder.AppendInterpolatedStringHandler::AppendLiteral(System.String)System.Text.StringBuilder::AppendLine(StringBuilder.AppendInterpolatedStringHandler&)System.Text.StringBuilder::AppendLine(System.String)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&)System.Collections.Generic.Dictionary<System.String, System.Int32>::TryGetValue(!0, !1&)StringBuilder.AppendInterpolatedStringHandler::AppendFormatted(System.String)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()System.Text.StringBuilder::Append(System.String)System.Object::ToString()
String literals
- IRS[/??/]
TryAddAmountOrRegisterNewResource
#
public System.Boolean TryAddAmountOrRegisterNewResource(System.String resourceId, System.Int32 toAdd)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
CF7C54DDE71EB56C934247C602A4A324B3B051324DCF2D3C38A0A6BABE5AA504 - Body hash
CAFCA592B31BC9A6823A3B5347B613E2ECA338D33B0E1B28031FD30F8633DC20 - IL size78
Referenced calls
System.ArgumentException::.ctor(System.String)CandideServer.Models.InternalResourceStorageModel::CanAdjustByAmount(System.String, System.Int32)System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Item(!0)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)CandideServer.Models.InternalResourceStorageModel::CanRegisterResource(System.String)
String literals
Parameter toAdd is negative
TryAdjustByAmount
#
public System.Boolean TryAdjustByAmount(System.String resourceId, System.Int32 amount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
3A2C8AB611ABAB5E8A97F9E4C34365079F0F7531A44129FA0213DB2C5F00929E - Body hash
E0A2E6584E571A7DFD1ACFC72748896BB1D1AD1D2A8965232B2BAC8A0DBD4108 - IL size39
Referenced calls
CandideServer.Models.InternalResourceStorageModel::CanAdjustByAmount(System.String, System.Int32)System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Item(!0)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)
Called by
CandideServer.ServerControllers.InternalResourceStorageSController::DepleteResourceCandideServer.ServerControllers.InternalResourceStorageSController::DepleteResourcesCandideServer.ServerControllers.InternalResourceStorageSController::DepleteResources_DestructiveCandideServer.ServerControllers.InternalResourceStorageSController::MoveWhateverPossibleFromSourceToDestinationCandideServer.ServerControllers.InternalResourceStorageSController::TryDepleteResource
TryRegisterResource
#
public System.Boolean TryRegisterResource(System.String resourceId, System.Int32 startAmount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
92F75C59284FB0EDD1FDBDA04167FC092D0D0176407638E57380721F4146C707 - Body hash
C7FB100F9C39723541E4DD8B30982E764A965A94E525068E86D1E068137D27C9 - IL size26
Referenced calls
CandideServer.Models.InternalResourceStorageModel::CanRegisterResource(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)