CandideServer.ServerManagers.SimpleInventoryServerManager
Type JSONpublic class in CandideServer.ServerManagers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.ServerManagers - Base type
System.Object - Hash
2950413C0E4AEB7B3B152F189F8AE3E7D67DA8AC40AD6B324A9D451CE98C81A1
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
_inventoryToIndexLookup# | private | private System.Collections.Generic.Dictionary<System.Guid, System.ValueTuple<System.Int32, System.Boolean>> _inventoryToIndexLookup |
Methods
AddItemsToInventory
#
public System.Void AddItemsToInventory(System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>> items, System.Guid inventoryId, System.Boolean allowPartialStack, System.Boolean ignoreInventoryFilter)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
D1AF3FC33B9DA6FADA7A5DC1D6F877CF096BF0839B0CBB00600D7174F295DB6B - Body hash
9C6C96E8F8B6CE21B3E0F27576C63E2222489C74228D35A0CC3FBE7B6823AD8F - IL size139
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)System.Collections.Generic.HashSet<System.Int32>::.ctor()System.Collections.Generic.List<System.ValueTuple<System.String, System.Int32>>::GetEnumerator()List.Enumerator<System.ValueTuple<System.String, System.Int32>>::get_Current()CandideServer.ServerControllers.SimpleInventorySController::TryAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.String, System.Boolean, System.Nullable<System.Int32>, System.Collections.Generic.HashSet<System.Int32>)List.Enumerator<System.ValueTuple<System.String, System.Int32>>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.HashSet<System.Int32>::get_Count()CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)
CanExpendItem
#
public System.Boolean CanExpendItem(Shared.Models.Items.ItemInstanceModel item, System.Guid inventoryId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
FF308A5706A690F3A594D7D46BA73295228FD582940D731FFAE92F1D875E7337 - Body hash
8B0DF959DFF67A4FA9AC2F240814C9DA9434CB8AF38BDFCE49E683DE4E57A68C - IL size50
Referenced calls
System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)
CanExpendItemIngredientsForRecipe
#
public System.Boolean CanExpendItemIngredientsForRecipe(Shared.Models.Items.SharedInventoryModel inventory, Shared.Data.ItemRecipe recipe, System.Int32 craftAmounts)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
C4C748D3C146303D17FE42AB8A42AED5422E56A4D04F87B92BC75784B7CADDED - Body hash
7C01FDC5EFDD264B4E0B380EDE4005361A2CAEE45E3BDCAE6F21A2F59A80B7EE - IL size55
DumpInventoryContentIntoNewLootOnlyInventory
#
public Shared.Models.Items.SharedInventoryModel DumpInventoryContentIntoNewLootOnlyInventory(System.Boolean onlyMoney, Shared.Models.Items.SharedInventoryModel inventory, System.String newInventoryName)
Method metadata
- Visibilitypublic
- Return type
Shared.Models.Items.SharedInventoryModel - StaticTrue
- VirtualFalse
- Hash
380321F4D1EB068D863713943F099334BC1F9F3A6B3D92F2FB2F6D16DDFBD47C - Body hash
ED8D9F7BB5137C72FF8ECA8F09DB43B613B969F69078CEE42D9B5C6C54EF61D7 - IL size440
Referenced calls
System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::.ctor()System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::Add(!0)System.Nullable<System.UInt64>::get_HasValue()System.Nullable<System.UInt64>::get_Value()CandideServer.ServerControllers.ItemInstanceSController::CreateMoneyItemInstancesFromMoney(System.UInt64, System.Nullable<System.Guid>)System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::GetEnumerator()List.Enumerator<Shared.Models.Items.ItemInstanceModel>::get_Current()List.Enumerator<Shared.Models.Items.ItemInstanceModel>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::get_Count()System.Nullable<System.UInt64>::.ctor(!0)System.Guid::NewGuid()Shared.Messages.CreateNewInventoryMessage::.ctor()Shared.Text.StringId::op_Implicit(System.String)CandideServer.ServerControllers.SimpleInventorySController::CreateNewInventory(Shared.Messages.CreateNewInventoryMessage, System.Boolean)System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::get_Item(System.Int32)System.Nullable<System.Guid>::.ctor(!0)System.Collections.Generic.HashSet<System.Int32>::.ctor(System.Int32)System.Collections.Generic.HashSet<System.Int32>::Add(!0)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged_Money(System.Guid, System.UInt64)
LootAllFromMany
#
public System.Void LootAllFromMany(System.Collections.Generic.List<Shared.Models.Items.SharedInventoryModel> sourceInventories, Shared.Models.Items.SharedInventoryModel targetInventory)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
2411E124658FFA9B04308CF8EDBCA3C59365C31F575AA41A9F59B3ECAA7CECF5 - Body hash
8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55 - IL size1
OnInventoriesChanged
#
public System.Void OnInventoriesChanged(System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>> changedInventoriesAndIndices, System.Collections.Generic.HashSet<System.Guid> changedInventoriesMoneyAmount)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
F2DC133929ACDC893616D91629E9EC03683258D64D340BB072457F42D65FD848 - Body hash
7333360FDEEB5D80D26DD584C195D5551359D8BA8191A22BBA8722492FD6D2F2 - IL size520
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, System.ValueTuple<System.Int32, System.Boolean>>::Clear()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::GetEnumerator()Dictionary.Enumerator<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::Deconstruct(!0&, !1&)System.Collections.Generic.HashSet<System.Guid>::Contains(!0)System.ValueTuple<System.Int32, System.Boolean>::.ctor(!0, !1)System.Collections.Generic.Dictionary<System.Guid, System.ValueTuple<System.Int32, System.Boolean>>::TryAdd(!0, !1)Dictionary.Enumerator<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()HashSet.Enumerator<System.Guid>::MoveNext()System.Collections.Generic.Dictionary<System.Guid, System.ValueTuple<System.Int32, System.Boolean>>::GetEnumerator()Dictionary.Enumerator<System.Guid, System.ValueTuple<System.Int32, System.Boolean>>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, System.ValueTuple<System.Int32, System.Boolean>>::Deconstruct(!0&, !1&)CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::TryGetValue(!0, !1&)System.Collections.Generic.HashSet<System.Int32>::get_Count()System.Collections.Generic.HashSet<System.Int32>::GetEnumerator()HashSet.Enumerator<System.Int32>::get_Current()CandideServer.MessageModels.Inventories.NEWInventorySlotUpdate::.ctor()HashSet.Enumerator<System.Int32>::MoveNext()Dictionary.Enumerator<System.Guid, System.ValueTuple<System.Int32, System.Boolean>>::MoveNext()CandideServer.ServerServices.SimpleInventoryServerService::Send_NEWInventoriesChanged(CandideServer.MessageModels.Inventories.InventoryListenerUpdate[])
OnInventoryChanged
#
public System.Void OnInventoryChanged(System.Guid inventoryId, System.Collections.Generic.HashSet<System.Int32> changedInventoryIndices, System.Nullable<System.UInt64> newMoneyAmount)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
49E3ED93A5F79EA955282DE8D1F3032865898491234551CC95B6CD310FC6637D - Body hash
9BA64F8C964DEC026737665FC1A57418C5EDA1002BAF09AEB6F9E5B672BB1B68 - IL size169
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)System.Collections.Generic.HashSet<System.Int32>::get_Count()System.Collections.Generic.HashSet<System.Int32>::GetEnumerator()HashSet.Enumerator<System.Int32>::get_Current()CandideServer.MessageModels.Inventories.NEWInventorySlotUpdate::.ctor()HashSet.Enumerator<System.Int32>::MoveNext()System.IDisposable::Dispose()System.Nullable<System.UInt64>::get_HasValue()CandideServer.ServerServices.SimpleInventoryServerService::Send_NEWInventoryChanged(CandideServer.MessageModels.Inventories.InventoryListenerUpdate)
Called by
CandideServer.Buildings.BuildingControllers.AbstractBuildingController::DefaultFinishWorkOrderHandleNoCitizenCandideServer.ServerManagers.JobServerManager::RollExpertiseGatherDropCandideServer.ServerManagers.JobServerManager::SetCurrentWorkOrderFinishedCandideServer.ServerManagers.JobServerManager::TryCraftFurnitureCandideServer.ServerManagers.ShopServerManager::TryBuyItemCandideServer.ServerManagers.ShopServerManager::TrySellItemCandideServer.ServerManagers.SimpleInventoryServerManager::AddItemsToInventoryCandideServer.ServerManagers.SimpleInventoryServerManager::DumpInventoryContentIntoNewLootOnlyInventoryCandideServer.ServerManagers.SimpleInventoryServerManager::TryAddItemAmountCandideServer.ServerManagers.SimpleInventoryServerManager::TryAddItemsToInventoryCandideServer.ServerManagers.SimpleInventoryServerManager::TryCraftItemRecipeCandideServer.ServerManagers.SimpleInventoryServerManager::TryCraftItemRecipeAndDropCandideServer.ServerManagers.SimpleInventoryServerManager::TryLootWorldItemArrowsIntoEquipmentCandideServer.ServerManagers.SimpleInventoryServerManager::TryLootWorldItemIntoInventory
OnInventoryChanged_Money
#
private System.Void OnInventoryChanged_Money(System.Guid inventoryId, System.UInt64 inventoryMoney)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
79A64ABC8DAB9F88379621B120659ACDE176EA7D2E7A1F3ADAAAE764E59C5798 - Body hash
42793B05E76EF69A845A8687C64356E3B7026C9B50F7897964D8A6C457E6B376 - IL size55
Referenced calls
OnInventoryChanged_SingleSlot
#
public System.Void OnInventoryChanged_SingleSlot(System.Guid inventoryId, System.Int32 changedIndex)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
F428F3F1B43312B3C06AD20D4BCC891EFAEB8C607E2268F844E02153306AF478 - Body hash
3D599B54BB5FD87035E30226488B72A4B5992F6FB16E04EC0113F60B58F53701 - IL size89
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.MessageModels.Inventories.NEWInventorySlotUpdate::.ctor()CandideServer.ServerServices.SimpleInventoryServerService::Send_NEWInventoryChanged(CandideServer.MessageModels.Inventories.InventoryListenerUpdate)
RenameInventory
#
public System.Void RenameInventory(System.Guid inventoryId, System.String newName)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
AFFBAE127E7149F2C7399510F05CE2FBE2608006A30D1433D5CF9C16E63E6AE2 - Body hash
295803A335E623BBE6F0F0EABF9BD36122330C825CB0A4A0A64E1CAA33BF9AF7 - IL size65
Referenced calls
System.String::IsNullOrWhiteSpace(System.String)System.String::get_Length()System.String::Substring(System.Int32, System.Int32)CandideServer.ServerControllers.SimpleInventorySController::TryRenameInventory(System.Guid, System.String)CandideServer.MessageModels.Inventories.RenameInventoryMessage::.ctor()CandideServer.ServerServices.SimpleInventoryServerService::Send_RenameInventory(CandideServer.MessageModels.Inventories.RenameInventoryMessage)
TryAddItemAmount
#
public System.Boolean TryAddItemAmount(Shared.Models.Items.SharedInventoryModel inventory, System.String itemId, System.Int32 amount, System.String auraId, System.Boolean allowPartialStack, System.Nullable<System.Int32> targetSlotIndex)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
D93CFEB5860A08D852688DD045BC7383BDF8176C459DA3E7DF1EF53947F06D6C - Body hash
72819C2390AF2DF0450A829C55B46E9A1DACEF89287172803DEEF8D4E7629E81 - IL size104
Referenced calls
System.Collections.Generic.HashSet<System.Int32>::.ctor()CandideServer.ServerControllers.SimpleInventorySController::TryAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.String, System.Boolean, System.Nullable<System.Int32>, System.Collections.Generic.HashSet<System.Int32>)System.Collections.Generic.HashSet<System.Int32>::get_Count()System.Nullable<System.UInt64>::GetValueOrDefault()System.Nullable<System.UInt64>::get_HasValue()CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)
TryAddItemAmounts
#
public System.Boolean TryAddItemAmounts(System.Guid inventoryId, System.String itemId, System.Int32 amount, System.String auraId, System.Boolean allowPartialStack, System.Nullable<System.Int32> targetSlotIndex, System.Boolean ignoreInventoryFilter)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
2B71D2306BBD1CD352C47FE9F045E8B48235E5BD9E999A0CF8DC5432A875D527 - Body hash
50BA646E7B3E22F86261C51FE8A4A5DFF1EB512D92501810FEE01ECAD3A10F0F - IL size39
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.ServerManagers.SimpleInventoryServerManager::TryAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.String, System.Boolean, System.Nullable<System.Int32>)
TryAddItemsToInventory
#
public System.Boolean TryAddItemsToInventory(System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.Int32, System.String>> items, System.Guid inventoryId, System.Boolean ignoreInventoryFilter)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
27936827727A8C7462E17B7B0B56AF3E96B6B64E84FE03D04239CE267117094B - Body hash
270DEE1D936090DDC92542D48C2F94072F42E65C77CF9D166AE97E11CF669B84 - IL size145
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)System.Collections.Generic.HashSet<System.Int32>::.ctor()System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.Int32, System.String>>::GetEnumerator()System.Collections.Generic.IEnumerator<System.ValueTuple<System.String, System.Int32, System.String>>::get_Current()CandideServer.ServerControllers.SimpleInventorySController::TryAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.String, System.Boolean, System.Nullable<System.Int32>, System.Collections.Generic.HashSet<System.Int32>)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.HashSet<System.Int32>::get_Count()CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)
TryCraftItemRecipe
#
public System.Boolean TryCraftItemRecipe(Shared.Data.ItemRecipe itemRecipe, Shared.Models.Items.SharedInventoryModel inventory, Shared.Models.Items.SharedInventoryModel sourceInventory, System.Nullable<System.Int32> slotId, System.Nullable<System.Guid> playerCharacterId, System.Boolean allowPartialStack, System.Int32 craftAmount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
DFCADAF8D8D86D6FD94DC1466A32BF342746F24FEA16A711678E6CE930E12259 - Body hash
56525513937347A0D5E88A7D2C1B11E95D7DE54FCA693238DA00878A17DD15BF - IL size323
Referenced calls
CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)CandideServer.ServerManagers.SimpleInventoryServerManager::CanExpendItemIngredientsForRecipe(Shared.Models.Items.SharedInventoryModel, Shared.Data.ItemRecipe, System.Int32)Shared.Inventory.DeltaModels.InventoryHelper::CanAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32)System.Collections.Generic.HashSet<System.Int32>::.ctor()CandideServer.ServerControllers.SimpleInventorySController::ExpendItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.Collections.Generic.HashSet<System.Int32>)System.String::Concat(System.String, System.String)CandideServer.ServerControllers.SimpleInventorySController::TryAddItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.String, System.Boolean, System.Nullable<System.Int32>, System.Collections.Generic.HashSet<System.Int32>)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)CandideServer.Models.Quests.EventModels.OnPlayerCraftedItemEvent::Send(Shared.Data.ItemRecipe, System.Nullable<System.Guid>)
Called by
String literals
TryCraftItemRecipe: craftAmount was less than 1. Defaulting to 1TryCraftItemRecipe: Failed expending items forTryCraftItemRecipe: Failed adding items in target inventoryTryCraftItemRecipe: Failed adding items in inventory
TryCraftItemRecipeAndDrop
#
public System.Boolean TryCraftItemRecipeAndDrop(Shared.Data.ItemRecipe itemRecipe, Shared.Models.Items.SharedInventoryModel sourceInventory, System.Guid playerCharacterId, System.Single throwDir, System.Int32 craftAmount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
FB3948C52AA811B5D64134532209C25600A08D767E7A7C79EA1D093A0CA4115D - Body hash
E4E76DFBC0232BD1B9947623073EA1FED986FDA8F54A600F7F56871AC3ADCD73 - IL size295
Referenced calls
CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)Shared.Data.ItemDataBase::GetItemDataOrNull(System.String)CandideServer.ServerGameState::TryGetPlayerCharacter(System.Guid, CandideServer.Models.Player.ServerPlayerCharacter&)CandideServer.ServerManagers.SimpleInventoryServerManager::CanExpendItemIngredientsForRecipe(Shared.Models.Items.SharedInventoryModel, Shared.Data.ItemRecipe, System.Int32)System.Collections.Generic.HashSet<System.Int32>::.ctor()CandideServer.ServerControllers.SimpleInventorySController::ExpendItemAmount(Shared.Models.Items.SharedInventoryModel, System.String, System.Int32, System.Collections.Generic.HashSet<System.Int32>)System.String::Concat(System.String, System.String)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)System.Nullable<System.Guid>::.ctor(!0)CandideServer.Models.Quests.EventModels.OnPlayerCraftedItemEvent::Send(Shared.Data.ItemRecipe, System.Nullable<System.Guid>)CandideServer.ServerManagers.SimpleInventoryServerManager::<TryCraftItemRecipeAndDrop>g__Drop|3_0(System.Int32, SimpleInventoryServerManager.<>c__DisplayClass3_0&)
String literals
TryCraftItemRecipe: craftAmount was less than 1. Defaulting to 1TryCraftItemRecipe: Failed expending items for
TryDropItem
#
public System.Boolean TryDropItem(System.Guid inventoryId, System.Guid itemInstanceId, System.Nullable<System.Int32> dropAmount, Microsoft.Xna.Framework.Vector3 startPosition, Microsoft.Xna.Framework.Vector3 velocity, System.Guid worldId, System.Nullable<System.Int32> ownerPlayer, System.Nullable<System.Int32> antiPriority)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
C2C38F70851D68143CEE4A9B361707D327D1A02C22E079F2C538F3A6B09E175A - Body hash
8C4C69419F4F11D3728FE1264973DCCF37C8D23CE1049492ACB8F5A5CA3CDA87 - IL size257
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.ServerGameState::TryGetItemInstance(System.Guid, Shared.Models.Items.ItemInstanceModel&)Shared.Models.Items.SharedInventoryModel::TryGetSlotIndex(System.Guid, System.Int32&)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.ServerWarningHelper::Warning(System.String)System.Nullable<System.Int32>::get_HasValue()System.Nullable<System.Int32>::get_Value()CandideServer.ServerControllers.SimpleInventorySController::TryDetachItemFromInventory(Shared.Models.Items.SharedInventoryModel, System.Int32)CandideServer.ServerManagers.WorldItemServerManager::SpawnWorldItem(Shared.Models.Items.ItemInstanceModel, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>, System.Nullable<System.Int32>)Shared.Models.Items.ItemInstanceModel::get_Data()System.Guid::NewGuid()CandideServer.ServerControllers.ItemInstanceSController::CreateNewItemInstance(System.String, System.Int32, System.Guid, System.Nullable<System.Guid>, System.String)CandideServer.ServerControllers.SimpleInventorySController::TryExpendItem(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.ItemInstanceModel, System.Int32, System.Boolean, System.Int32&)CandideServer.ServerControllers.ItemInstanceSController::RemoveItemInstanceFromState(Shared.Models.Items.ItemInstanceModel)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged_SingleSlot(System.Guid, System.Int32)
String literals
TryDropItem: Item instanceis not in inventory.
TryDropMoney
#
public System.Boolean TryDropMoney(System.Guid inventoryId, System.UInt64 dropAmount, Microsoft.Xna.Framework.Vector3 startPosition, Microsoft.Xna.Framework.Vector3 velocity, System.Guid worldId, System.Nullable<System.Int32> ownerPlayer, System.Nullable<System.Int32> antiPriority)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
6532533862A745290DA16E2484F3C30DE082367B1F067256D881CFB7C6C447E2 - Body hash
42A3BDD66EC9417E20D8282F760A213FE3CAE2B64E8FE4DE0C8CCD3B2D8E956C - IL size169
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)Shared.Models.Items.SharedInventoryModel::HasMoneyField()CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)System.Nullable<System.UInt64>::get_Value()Shared.Helpers.MoneyHelper::GetCoinTypeAndStackSatisfyingMoney(System.UInt64)Shared.Helpers.MoneyHelper::GetCoinItemId(System.Int32)System.Guid::NewGuid()CandideServer.ServerControllers.ItemInstanceSController::CreateNewItemInstance(System.String, System.Int32, System.Guid, System.Nullable<System.Guid>, System.String)Shared.Helpers.MoneyHelper::GetMultiplierForCoinType(System.Int32)CandideServer.ServerControllers.SimpleInventorySController::TryRemoveMoney(Shared.Models.Items.SharedInventoryModel, System.UInt64)CandideServer.ServerManagers.WorldItemServerManager::SpawnWorldItem(Shared.Models.Items.ItemInstanceModel, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>, System.Nullable<System.Int32>)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged_Money(System.Guid, System.UInt64)
String literals
TryDropMoney: Inventory doesn't have a money field.TryDropMoney: Can't remove money amount from inventory.
TryExpendItem
#
public System.Boolean TryExpendItem(System.Guid inventoryId, System.Guid itemInstanceId, System.Int32 removeAmount, System.Boolean removeEvenIfNotEnough)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
6A922A56BDABC285C77D0632CD9D7CF201D1D9095E4A50BDF3620FC7909FE533 - Body hash
B87ABC33D27220FA14683482B4EA5DFC00537B50A5DDDB4F06C759852A991811 - IL size36
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.ServerControllers.SimpleInventorySController::TryExpendItem(Shared.Models.Items.SharedInventoryModel, System.Guid, System.Int32, System.Boolean, System.Int32&)CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged_SingleSlot(System.Guid, System.Int32)
TryExpendItem
#
public System.Boolean TryExpendItem(System.Guid inventoryId, System.Int32 slotIndex, System.Int32 removeAmount, System.Boolean removeEvenIfNotEnough)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
7B665E50F7951B63F2AA8B330168F6F526C17403A070F60AB1DE4FE8FD35450F - Body hash
B1C70659C5F1EA561DA92716B32956105BCF2FF032A347BECEB74960396E4C66 - IL size112
Referenced calls
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::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)CandideServer.ServerManagers.SimpleInventoryServerManager::TryExpendItem(System.Guid, System.Guid, System.Int32, System.Boolean)
Called by
String literals
TryExpendOneItem: Invalid slot index
TryExpendItemInstances
#
public System.Boolean TryExpendItemInstances(System.Collections.Generic.List<CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage> updates, System.Boolean removeEvenIfNotEnough)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
C60D32E9BD2291C9C2D885039F925EE0268F0FE0664E95F7E4F9F190AD9E059E - Body hash
0226FED786E6C75B8F323CA9DD19744371F37E241D068F7C98F0BEEB0E4511FD - IL size211
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::.ctor()System.Collections.Generic.List<CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage>::GetEnumerator()List.Enumerator<CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage>::get_Current()CandideServer.ServerGameState::TryGetItemInstance(System.Guid, Shared.Models.Items.ItemInstanceModel&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.ServerControllers.SimpleInventorySController::TryExpendItem(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.ItemInstanceModel, System.Int32, System.Boolean, System.Int32&)System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::TryGetValue(!0, !1&)System.Collections.Generic.HashSet<System.Int32>::Add(!0)System.Collections.Generic.HashSet<System.Int32>::.ctor()System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>>::set_Item(!0, !1)List.Enumerator<CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.HashSet<System.Guid>::.ctor()CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoriesChanged(System.Collections.Generic.Dictionary<System.Guid, System.Collections.Generic.HashSet<System.Int32>>, System.Collections.Generic.HashSet<System.Guid>)
TryExpendOneItem
#
public System.Boolean TryExpendOneItem(Shared.Models.Items.ItemInstanceModel item, System.Guid inventoryId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
5ECE7316022C5D56064AA228EA8D6E3F0C169FC1E1F12FC9B38A7BE3AF61A920 - Body hash
2776BAC2F85E631C81EEBB0564171DEFC0A2622E773DAF79B2885917EAD5008A - IL size26
Referenced calls
Called by
CandideServer.Entities.Controllers.ServerPlayerEntityController::OnOutOfHealthCandideServer.Entities.ControllerSets.AutoBallista.AutoBallista_AttackTask::CastCandideServer.ServerManagers.ConstructionsServerManager::TryPlaceConstructionCandideServer.ServerManagers.CropServerManager::PlaceCropsFromInventoryCandideServer.ServerManagers.CropServerManager::TryPlaceCropCandideServer.ServerManagers.ItemInstanceServerManager::UseExpendItem
TryLootWorldItemArrowsIntoEquipment
#
public SimpleInventoryServerManager.TryLootWorldItemResult TryLootWorldItemArrowsIntoEquipment(Shared.Models.Items.WorldItemModel worldItem, System.Guid lootingEntityId, System.Guid inventoryId, System.Guid equipmentInventoryId)
Method metadata
- Visibilitypublic
- Return type
SimpleInventoryServerManager.TryLootWorldItemResult - StaticTrue
- VirtualFalse
- Hash
111360D9ED8A76C6F0C6F4F63111FA0DCAB9CCC469F50F6A81FE94579164FBB4 - Body hash
ADD978C94C14AC08671B67CDBD6EB1E2C2C33B8995FCC2FF356CBF217F47F6FD - IL size252
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetItemInstance(System.Guid, Shared.Models.Items.ItemInstanceModel&)System.Collections.Generic.HashSet<System.Int32>::.ctor()CandideServer.ServerManagers.EquipmentServerManager::ArrowsWorldItem(Shared.Models.Items.ItemInstanceModel, System.Guid, System.Boolean, System.Collections.Generic.HashSet<System.Int32>)System.Collections.Generic.HashSet<System.Int32>::get_Count()CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)CandideServer.ServerControllers.ServerSimpleInventoryException::.ctor(System.String)Shared.Inventory.DeltaModels.InventoryHelper::CanAddItemInstance(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.ItemInstanceModel, System.Boolean, System.Int32&)CandideServer.ServerControllers.SimpleInventorySController::AddItemInstance(Shared.Models.Items.ItemInstanceModel, System.Guid, System.Boolean, System.Collections.Generic.HashSet<System.Int32>, System.UInt64&)
String literals
This should've been caught in the above statement
TryLootWorldItemIntoInventory
#
public SimpleInventoryServerManager.TryLootWorldItemResult TryLootWorldItemIntoInventory(Shared.Models.Items.WorldItemModel worldItem, System.Guid lootingEntityId, System.Guid inventoryId)
Method metadata
- Visibilitypublic
- Return type
SimpleInventoryServerManager.TryLootWorldItemResult - StaticTrue
- VirtualFalse
- Hash
8034DF727F8B1EAE95C08ADB4FDBC186D91ACA09B62A316E2C6C436AEE008208 - Body hash
B1D271F177FFFB4895F95D0A671721C315B54CE8DB2AE146B8E124A3C13BAC0A - IL size149
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetItemInstance(System.Guid, Shared.Models.Items.ItemInstanceModel&)System.Collections.Generic.HashSet<System.Int32>::.ctor()Shared.Inventory.DeltaModels.InventoryHelper::CanAddItemInstance(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.ItemInstanceModel, System.Boolean, System.Int32&)CandideServer.ServerControllers.SimpleInventorySController::AddItemInstance(Shared.Models.Items.ItemInstanceModel, System.Guid, System.Boolean, System.Collections.Generic.HashSet<System.Int32>, System.UInt64&)System.Collections.Generic.HashSet<System.Int32>::get_Count()CandideServer.ServerManagers.SimpleInventoryServerManager::OnInventoryChanged(System.Guid, System.Collections.Generic.HashSet<System.Int32>, System.Nullable<System.UInt64>)
TryRemoveItems
#
public System.Boolean TryRemoveItems(CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage msg)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
F90778B84F89701467A427D1122D8B901C957FADC26A57EE70EB677761F79D75 - Body hash
A368BE606FCE948E08CD224ECFE08B2A2C583129FE69D3FB9FBD84AC9A77A71E - IL size72
Referenced calls
CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.ServerControllers.SimpleInventorySController::CheckCanRemoveItems(CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage, Shared.Models.Items.SharedInventoryModel)CandideServer.ServerControllers.SimpleInventorySController::RemoveItemsFromInventories(System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage>)CandideServer.ServerServices.SimpleInventoryServerService::Send_InventoriesChanged(CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage)
TryRemoveItemsFromInventories
#
public System.Boolean TryRemoveItemsFromInventories(System.Collections.Generic.IReadOnlyCollection<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage> messages)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
958ED6358A7C150387AF982817A7132FE2C1A4104A2B2989D9D316D0103451E4 - Body hash
1FB4DB7877DB7681216D6FBF0C9FE384430606DC202348244B9D9C4A0CC83DAD - IL size93
Referenced calls
System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage>::get_Current()CandideServer.ServerGameState::TryGetInventory(System.Guid, Shared.Models.Items.SharedInventoryModel&)CandideServer.ServerControllers.SimpleInventorySController::CheckCanRemoveItems(CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage, Shared.Models.Items.SharedInventoryModel)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()CandideServer.ServerControllers.SimpleInventorySController::RemoveItemsFromInventories(System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage>)CandideServer.ServerServices.SimpleInventoryServerService::Send_InventoriesChanged(CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage)