CandideServer.Helpers.LogisticalBuildingHelper
Type JSONpublic class in CandideServer.Helpers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Helpers - Base type
System.Object - Hash
C401A66DE44F2E33D55507C7C07D81448E251DFEA60E20AE91AB95CC3AEADE39
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
ReuseUpdatesList# | private | private System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.String>> ReuseUpdatesList |
Methods
Building_CheckSpaceExistsForAddItem
#
public System.Boolean Building_CheckSpaceExistsForAddItem(CandideServer.ServerControllers.AddItemAmountMessage msg, Shared.Models.Items.SharedInventoryModel existingInventory)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
305044A37C526004FD9329370B7D0077731A5A62E5C57189F34DC2F4FD73C275 - Body hash
81CB76E1249D0C28E77EE5DBEEA99972E880B9100052C9D0EE0DD858E36E8476 - IL size63
Referenced calls
CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)Shared.Inventory.DeltaModels.InventoryHelper::CanAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32)
Called by
String literals
Sam, check here. ExistingInventory is null but we don't expect it to be.
Building_TryAddItemAmount
#
public System.Boolean Building_TryAddItemAmount(Shared.Models.Items.SharedInventoryModel inventory, System.String itemId, System.Int32 addAmount, System.String auraId, System.Boolean allowPartialStack, System.Nullable<System.Int32> targetFirstSlot, System.Collections.Generic.HashSet<System.Int32> changedInventoryIndices)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
F3CEDCE50F97928A606252BB113D89D5331C6563DFFE9D0CF389E3E3EC8F6021 - Body hash
C7447A97AE6D3DB52FCFFAE288A4474A410F4BA17A8A6496250D63943D6E58D1 - IL size28
CanDepositItemIntoOutput
#
public System.Boolean CanDepositItemIntoOutput(CandideServer.Models.Buildings.BuildingInstanceModel building, System.String itemId, System.Int32 amount, System.String auraId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
B02E6039D99EF14929E0EEB41A587FE151B0F5B9D1C58D651AEA63C644BE1753 - Body hash
37638A061320E36F83B9CC4B226B98FF7A5AE5C00EFB0BB647F2CA1D87E54F77 - IL size190
Referenced calls
Shared.Data.ItemDataBase::GetItemDataOrNull(System.String)System.String::Concat(System.String, System.String)CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)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::ToStringAndClear()CandideServer.ServerControllers.AddItemAmountMessage::.ctor()CandideServer.Helpers.LogisticalBuildingHelper::Building_CheckSpaceExistsForAddItem(CandideServer.ServerControllers.AddItemAmountMessage, Shared.Models.Items.SharedInventoryModel)
Called by
String literals
CanDepositItemIntoOutput: Data was null forCanDepositItemIntoOutput: Buildingdoesn't have an output inventory to output
CanDepositResourceIntoOutput
#
public System.Boolean CanDepositResourceIntoOutput(CandideServer.Models.Buildings.BuildingInstanceModel building, System.String resourceId, System.Int32 amount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
F456F4C2C4FB7A6BCA176A3383F1A8E4551DD1766258756316E6E25593EF8B39 - Body hash
5AC5C0C3A562618815289F7437F9908B2053EC8563CAF456DE76AE5B0B91912D - IL size60
Referenced calls
System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)CandideServer.Models.InternalResourceStorageModel::GetSpaceLeft(System.String)System.Math::Min(System.Int32, System.Int32)
SummarizeAvailableStuffForBuilding
#
public System.ValueTuple<System.Collections.Generic.Dictionary<System.String, System.Int32>, System.Collections.Generic.Dictionary<System.String, System.Int32>> SummarizeAvailableStuffForBuilding(CandideServer.SimulationModels.BuildingSimulationModel building, System.Boolean checkInternalItems, System.Boolean checkInternalResources)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.Collections.Generic.Dictionary<System.String, System.Int32>, System.Collections.Generic.Dictionary<System.String, System.Int32>> - StaticTrue
- VirtualFalse
- Hash
7F38C4F2873B0C380A976DEC8144B29003D46807DE87173C2AE42754F7289697 - Body hash
7CA11FEBA6EFFD8668874049B0083A3F6CC0DF7C32DA25414018BC22AC258B18 - IL size759
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::.ctor()System.Collections.Generic.List<System.Guid>::GetEnumerator()List.Enumerator<System.Guid>::get_Current()CandideServer.ServerGameState::TryGetLogisticsConnection(System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel&)CandideServer.ServerGameState::TryGetBuilding(System.Guid, CandideServer.SimulationModels.BuildingSimulationModel&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)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>::TryAdd(!0, !1)System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Item(!0)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)List.Enumerator<System.Guid>::MoveNext()System.ValueTuple<System.Collections.Generic.Dictionary<System.String, System.Int32>, System.Collections.Generic.Dictionary<System.String, System.Int32>>::.ctor(!0, !1)
TryDepositResource
#
public System.Boolean TryDepositResource(CandideServer.Models.Buildings.BuildingInstanceModel building, System.Boolean checkInternalInputStorage, System.Boolean checkInternalOutputStorage, System.String resourceId, System.Int32 amount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
5A64D899C05F10B86FF4320EB20D0A0A7CA0B39974E31A0CCF8CBF96B8FB3EDD - Body hash
6CA65F1D8B4FCB457D76AB85D0D915A89916D22B1FE5F45D129FA62B53050859 - IL size112
Referenced calls
System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)CandideServer.ServerControllers.InternalResourceStorageSController::TryAddToStorage(CandideServer.Models.InternalResourceStorageModel, System.String, System.Int32)CandideServer.ServerServices.InternalResourceStorageServerService::Send_OneInternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage)
TryDepositResourcesFromOneToSeveral_Destructive
#
public System.Boolean TryDepositResourcesFromOneToSeveral_Destructive(System.Guid sourceStorageId, System.Collections.Generic.IEnumerable<System.Guid> buildingIds, System.String targetBuildingType, CandideServer.Helpers.IOType ioType, System.Collections.Generic.Dictionary<System.String, System.Int32> resourceAmounts)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
464035C4E4B9F6C7E95B57AF028FD1210C09C07CAE9093FEA03087594CA8EC97 - Body hash
BC799C00FD665F1E127F06A4B3121ED73D60DB23A83B68440D953153249CBCC9 - IL size553
Referenced calls
CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)System.Collections.Generic.HashSet<System.String>::.ctor()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.String>>::Clear()System.Collections.Generic.IEnumerable<System.Guid>::GetEnumerator()System.Collections.Generic.IEnumerator<System.Guid>::get_Current()CandideServer.ServerGameState::TryGetBuilding(System.Guid, CandideServer.SimulationModels.BuildingSimulationModel&)System.String::IsNullOrEmpty(System.String)System.String::op_Inequality(System.String, System.String)System.ArgumentOutOfRangeException::.ctor(System.String, System.Object, System.String)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()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&)CandideServer.ServerControllers.InternalResourceStorageSController::TryAddToStorage(CandideServer.Models.InternalResourceStorageModel, System.String, System.Int32, System.Boolean, System.Collections.Generic.HashSet<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.ServerControllers.InternalResourceStorageSController::TryDepleteResource(CandideServer.Models.InternalResourceStorageModel, System.String, System.Int32, System.Collections.Generic.HashSet<System.String>)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.HashSet<System.String>::get_Count()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.String>>::set_Item(!0, !1)System.Collections.IEnumerator::MoveNext()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.String>>::get_Count()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.String>>::GetEnumerator()Dictionary.Enumerator<System.Guid, System.Collections.Generic.HashSet<System.String>>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, System.Collections.Generic.HashSet<System.String>>::Deconstruct(!0&, !1&)CandideServer.MessageModels.InternalResourceStorage.UpdateInternalResourceStorageChangedMessage::.ctor()CandideServer.Models.InternalResourceStorageModel::ToResourceAmountsUpdates(System.Collections.Generic.HashSet<System.String>)Dictionary.Enumerator<System.Guid, System.Collections.Generic.HashSet<System.String>>::MoveNext()CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage::.ctor()CandideServer.ServerServices.InternalResourceStorageServerService::Send_InternalResourceStorageChanged(CandideServer.MessageModels.InternalResourceStorage.UpdateManyInternalResourceStorageChangedMessage)
String literals
ioType