Candide.GameModels.Controllers.InternalResourceStorageController
Type JSONpublic class in Candide.GameModels.Controllers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Controllers - Base type
System.Object - Hash
5E2DCCFA0E4AD0540CF25FC5317F12444040197E4FF65498DDC7A91949234355
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
IgnoreEvents# | public | public System.Boolean IgnoreEvents |
ServerListenerAmount# | public | public System.Collections.Generic.Dictionary<System.Guid, System.Int32> ServerListenerAmount |
StorageChanged# | private | private InternalResourceStorageController.GameStateActiveInternalResourceStorageChanged StorageChanged |
Events
| Name | Visibility | Signature |
|---|---|---|
StorageChanged# | public | public InternalResourceStorageController.GameStateActiveInternalResourceStorageChanged StorageChanged |
Methods
DecreaseListenerAmount
#
private System.Void DecreaseListenerAmount(System.Guid storageId)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
21F94DB5AD979D6DE88EEC2A080EEE19512D4FA0AE2761F1F59F26E9DDE6465D - Body hash
5ECD73399A68E10C767F78967E39F120AB5B88B8FC38F2061B3909D252383DFC - IL size130
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, System.Int32>::TryAdd(!0, !1)System.Collections.Generic.Dictionary<System.Guid, System.Int32>::get_Item(!0)System.Collections.Generic.Dictionary<System.Guid, System.Int32>::set_Item(!0, !1)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)
String literals
InternalResourceStorageController: Server listener amount for storage IDwent to less than 0
IncrementListenerAmount
#
public System.Void IncrementListenerAmount(System.Guid storageId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
C0DD95117343F03E0E55D60EE6B676B28C1E1ED677AFE3AF3BBC9E9651332877 - Body hash
F05548E590BD8BD3D7C47B406705B9C513CA26D51319E19E45214501E1902FAA - IL size38
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, System.Int32>::TryAdd(!0, !1)System.Collections.Generic.Dictionary<System.Guid, System.Int32>::get_Item(!0)System.Collections.Generic.Dictionary<System.Guid, System.Int32>::set_Item(!0, !1)
InvokeStorageChanged
#
public System.Void InvokeStorageChanged(Candide.GameModels.Models.InternalResourceStorage storage)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
4745D29608604B10E5888A952F2469D6908CAF65793F447864E8196AD40B0AF1 - Body hash
D1259D3E9ADC7C15849E28595FC7205D5B34A1154F03BDFBEE00C62188A5B018 - IL size18
Referenced calls
InvokeStorageChanged
#
public System.Void InvokeStorageChanged(System.Guid id, Candide.GameModels.Models.InternalResourceStorage storage)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A806B727CAD201BDF39B5FF92099F7D97F77C425FFEF9D9785E3E3053B743C7C - Body hash
1A9389D22F40AC66C84C9028464C5C88FC22579A31193945CDFA5CFF65F0B86A - IL size30
Referenced calls
Candide.GameModels.Controllers.GameStateActiveInternalResourceStorageChangedArgs::.ctor(System.Guid, Candide.GameModels.Models.InternalResourceStorage)InternalResourceStorageController.GameStateActiveInternalResourceStorageChanged::Invoke(Candide.GameModels.Controllers.GameStateActiveInternalResourceStorageChangedArgs)
RegisterOrUpdateActiveStorage
#
public Candide.GameModels.Models.InternalResourceStorage RegisterOrUpdateActiveStorage(CandideServer.Models.InternalResourceStorageModel model, System.Nullable<System.Guid> homeBuildingId)
Method metadata
- Visibilitypublic
- Return type
Candide.GameModels.Models.InternalResourceStorage - StaticTrue
- VirtualFalse
- Hash
D3EEC1296D3674672BD3FEE3409ED265B82C38FBA888BE02F4C83D17754F3591 - Body hash
48FEEA8751F8FAFD977411E1063C93A72829D076E6B32FC951CD8CE7146EDD9D - IL size262
Referenced calls
System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::ContainsKey(!0)Candide.GameModels.Models.InternalResourceStorage::.ctor(CandideServer.Models.InternalResourceStorageModel, Candide.GameModels.Models.Constructions.Building)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::set_Item(!0, !1)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::get_Item(!0)Candide.Toolkit.SamuelDevelopmentException::.ctor(System.String)Candide.GameModels.Models.InternalResourceStorage::UpdateFromModelAndBuilding(CandideServer.Models.InternalResourceStorageModel, Candide.GameModels.Models.Constructions.Building)Candide.GameModels.Controllers.InternalResourceStorageController::IncrementListenerAmount(System.Guid)Candide.GameModels.Controllers.InternalResourceStorageController::InvokeStorageChanged(Candide.GameModels.Models.InternalResourceStorage)
String literals
RegisterOrUpdateActiveStorage: InternalResourceStorage requested home building ID set but we could not find it in the local game state. Storage IDand Building IDWe lost the building but didn't lose the resource storage
SyncFullGameState
#
public System.Void SyncFullGameState()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
C3F7EAB005B8A028431E3CA6DA893B0441C930AF4B1CE1724CBB5A0475163BDE - Body hash
2857E71B95DB5247F50A4D4AB1086B039F4BD7C28CE437C4F92602367D15048A - IL size21
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::Clear()System.Collections.Generic.Dictionary<System.Guid, System.Int32>::Clear()
SyncStorageRemoved
#
public System.Void SyncStorageRemoved(System.Guid id)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
19D884B1951DEA93860D4E93D356705E45DD7623664131A95BE93C92F8C99222 - Body hash
C03FD3B9D3392389C4AC31EA6E36231A2941B012B4E0DB1EC63166A780321310 - IL size25
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::Remove(!0)System.Collections.Generic.Dictionary<System.Guid, System.Int32>::Remove(!0)
UnregisterActiveStorage
#
public System.Void UnregisterActiveStorage(System.Guid id)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A3489DD5332CAA585AF57219F2BC72A80EE85C55A3CDEB6E07D7014319E47AAB - Body hash
3B7EF3FDB8FBA22B6CE8CE440D34634616D61060192808E73E66E45A048F5F3E - IL size39
Referenced calls
Candide.GameModels.Controllers.InternalResourceStorageController::DecreaseListenerAmount(System.Guid)System.Collections.Generic.Dictionary<System.Guid, System.Int32>::get_Item(!0)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::Remove(!0)Candide.GameModels.Controllers.InternalResourceStorageController::InvokeStorageChanged(System.Guid, Candide.GameModels.Models.InternalResourceStorage)
UpdateActiveStorage
#
public Candide.GameModels.Models.InternalResourceStorage UpdateActiveStorage(CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage update, System.Boolean sendInvokeStorageChanged)
Method metadata
- Visibilitypublic
- Return type
Candide.GameModels.Models.InternalResourceStorage - StaticTrue
- VirtualFalse
- Hash
D3381D4BCF36F53274824ECD8A514597D7DC7F12F6F243497CAECDDF94EAF67F - Body hash
9A978FF9CAA623D2EE58C5B8444F4758F9D9CD6D283032DD868E2010FE4454B7 - IL size232
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.InternalResourceStorage>::TryGetValue(!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()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)Candide.Toolkit.SamuelDevelopmentException::.ctor(System.String)Candide.GameModels.Controllers.InternalResourceStorageController::InvokeStorageChanged(Candide.GameModels.Models.InternalResourceStorage)
Called by
String literals
Couldn't find InternalResourceStorage with IDWe received an update for MaximumResourceAmountsUpdates but the storage in the local GameState does not have a MaximumRe
UpdateActiveStorages
#
public System.Void UpdateActiveStorages(System.Collections.Generic.IEnumerable<CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage> updates)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
776F4F89C8A74213F962667120C9EFCF44ADE52F465DCE9C44D5B90DF827F06E - Body hash
A05F4BACD3A4C90D0C769905DB6B447B87DEC71DD145DC16B8643E777B03EC22 - IL size105
Referenced calls
System.Collections.Generic.List<Candide.GameModels.Models.InternalResourceStorage>::.ctor()System.Collections.Generic.IEnumerable<CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage>::get_Current()Candide.GameModels.Controllers.InternalResourceStorageController::UpdateActiveStorage(CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage, System.Boolean)System.Collections.Generic.List<Candide.GameModels.Models.InternalResourceStorage>::Add(!0)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.List<Candide.GameModels.Models.InternalResourceStorage>::GetEnumerator()List.Enumerator<Candide.GameModels.Models.InternalResourceStorage>::get_Current()Candide.GameModels.Controllers.InternalResourceStorageController::InvokeStorageChanged(Candide.GameModels.Models.InternalResourceStorage)List.Enumerator<Candide.GameModels.Models.InternalResourceStorage>::MoveNext()