Romestead Assembly Reference

CandideServer.ServerManagers.SimpleInventoryServerManager

Type JSON

public class in CandideServer.ServerManagers

Methods25
Properties0
Fields1
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerManagers
  • Base typeSystem.Object
  • Hash2950413C0E4AEB7B3B152F189F8AE3E7D67DA8AC40AD6B324A9D451CE98C81A1

Relationships

Base type

System.Object

Fields

NameVisibilitySignature
_inventoryToIndexLookupprivateprivate 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 typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashD1AF3FC33B9DA6FADA7A5DC1D6F877CF096BF0839B0CBB00600D7174F295DB6B
  • Body hash9C6C96E8F8B6CE21B3E0F27576C63E2222489C74228D35A0CC3FBE7B6823AD8F
  • IL size139
Referenced calls
Called by

CanExpendItem

public System.Boolean CanExpendItem(Shared.Models.Items.ItemInstanceModel item, System.Guid inventoryId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashFF308A5706A690F3A594D7D46BA73295228FD582940D731FFAE92F1D875E7337
  • Body hash8B0DF959DFF67A4FA9AC2F240814C9DA9434CB8AF38BDFCE49E683DE4E57A68C
  • IL size50
Referenced calls
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Nullable<System.Guid>::GetValueOrDefault()
  • System.Guid::op_Inequality(System.Guid, System.Guid)
Called by

CanExpendItemIngredientsForRecipe

public System.Boolean CanExpendItemIngredientsForRecipe(Shared.Models.Items.SharedInventoryModel inventory, Shared.Data.ItemRecipe recipe, System.Int32 craftAmounts)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashC4C748D3C146303D17FE42AB8A42AED5422E56A4D04F87B92BC75784B7CADDED
  • Body hash7C01FDC5EFDD264B4E0B380EDE4005361A2CAEE45E3BDCAE6F21A2F59A80B7EE
  • IL size55
Referenced calls
Called by

DumpInventoryContentIntoNewLootOnlyInventory

public Shared.Models.Items.SharedInventoryModel DumpInventoryContentIntoNewLootOnlyInventory(System.Boolean onlyMoney, Shared.Models.Items.SharedInventoryModel inventory, System.String newInventoryName)

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.SharedInventoryModel
  • StaticTrue
  • VirtualFalse
  • Hash380321F4D1EB068D863713943F099334BC1F9F3A6B3D92F2FB2F6D16DDFBD47C
  • Body hashED8D9F7BB5137C72FF8ECA8F09DB43B613B969F69078CEE42D9B5C6C54EF61D7
  • IL size440
Referenced calls
Called by

LootAllFromMany

public System.Void LootAllFromMany(System.Collections.Generic.List<Shared.Models.Items.SharedInventoryModel> sourceInventories, Shared.Models.Items.SharedInventoryModel targetInventory)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash2411E124658FFA9B04308CF8EDBCA3C59365C31F575AA41A9F59B3ECAA7CECF5
  • Body hash8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55
  • 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 typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashF2DC133929ACDC893616D91629E9EC03683258D64D340BB072457F42D65FD848
  • Body hash7333360FDEEB5D80D26DD584C195D5551359D8BA8191A22BBA8722492FD6D2F2
  • 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[])
Called by

OnInventoryChanged

public System.Void OnInventoryChanged(System.Guid inventoryId, System.Collections.Generic.HashSet<System.Int32> changedInventoryIndices, System.Nullable<System.UInt64> newMoneyAmount)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash49E3ED93A5F79EA955282DE8D1F3032865898491234551CC95B6CD310FC6637D
  • Body hash9BA64F8C964DEC026737665FC1A57418C5EDA1002BAF09AEB6F9E5B672BB1B68
  • IL size169
Referenced calls
Called by

OnInventoryChanged_Money

private System.Void OnInventoryChanged_Money(System.Guid inventoryId, System.UInt64 inventoryMoney)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash79A64ABC8DAB9F88379621B120659ACDE176EA7D2E7A1F3ADAAAE764E59C5798
  • Body hash42793B05E76EF69A845A8687C64356E3B7026C9B50F7897964D8A6C457E6B376
  • IL size55
Referenced calls
Called by

OnInventoryChanged_SingleSlot

public System.Void OnInventoryChanged_SingleSlot(System.Guid inventoryId, System.Int32 changedIndex)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashF428F3F1B43312B3C06AD20D4BCC891EFAEB8C607E2268F844E02153306AF478
  • Body hash3D599B54BB5FD87035E30226488B72A4B5992F6FB16E04EC0113F60B58F53701
  • IL size89
Referenced calls
Called by

RenameInventory

public System.Void RenameInventory(System.Guid inventoryId, System.String newName)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashAFFBAE127E7149F2C7399510F05CE2FBE2608006A30D1433D5CF9C16E63E6AE2
  • Body hash295803A335E623BBE6F0F0EABF9BD36122330C825CB0A4A0A64E1CAA33BF9AF7
  • IL size65
Referenced calls
Called by

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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashD93CFEB5860A08D852688DD045BC7383BDF8176C459DA3E7DF1EF53947F06D6C
  • Body hash72819C2390AF2DF0450A829C55B46E9A1DACEF89287172803DEEF8D4E7629E81
  • IL size104
Referenced calls
Called by

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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash2B71D2306BBD1CD352C47FE9F045E8B48235E5BD9E999A0CF8DC5432A875D527
  • Body hash50BA646E7B3E22F86261C51FE8A4A5DFF1EB512D92501810FEE01ECAD3A10F0F
  • IL size39
Referenced calls
Called by

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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash27936827727A8C7462E17B7B0B56AF3E96B6B64E84FE03D04239CE267117094B
  • Body hash270DEE1D936090DDC92542D48C2F94072F42E65C77CF9D166AE97E11CF669B84
  • IL size145
Referenced calls
Called by

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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashDFCADAF8D8D86D6FD94DC1466A32BF342746F24FEA16A711678E6CE930E12259
  • Body hash56525513937347A0D5E88A7D2C1B11E95D7DE54FCA693238DA00878A17DD15BF
  • IL size323
Referenced calls
Called by
String literals
  • TryCraftItemRecipe: craftAmount was less than 1. Defaulting to 1
  • TryCraftItemRecipe: Failed expending items for
  • TryCraftItemRecipe: Failed adding items in target inventory
  • TryCraftItemRecipe: 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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashFB3948C52AA811B5D64134532209C25600A08D767E7A7C79EA1D093A0CA4115D
  • Body hashE4E76DFBC0232BD1B9947623073EA1FED986FDA8F54A600F7F56871AC3ADCD73
  • IL size295
Referenced calls
Called by
String literals
  • TryCraftItemRecipe: craftAmount was less than 1. Defaulting to 1
  • TryCraftItemRecipe: 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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashC2C38F70851D68143CEE4A9B361707D327D1A02C22E079F2C538F3A6B09E175A
  • Body hash8C4C69419F4F11D3728FE1264973DCCF37C8D23CE1049492ACB8F5A5CA3CDA87
  • IL size257
Referenced calls
Called by
String literals
  • TryDropItem
  • : Item instance
  • is 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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash6532533862A745290DA16E2484F3C30DE082367B1F067256D881CFB7C6C447E2
  • Body hash42A3BDD66EC9417E20D8282F760A213FE3CAE2B64E8FE4DE0C8CCD3B2D8E956C
  • IL size169
Referenced calls
Called by
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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash6A922A56BDABC285C77D0632CD9D7CF201D1D9095E4A50BDF3620FC7909FE533
  • Body hashB87ABC33D27220FA14683482B4EA5DFC00537B50A5DDDB4F06C759852A991811
  • IL size36
Referenced calls
Called by

TryExpendItem

public System.Boolean TryExpendItem(System.Guid inventoryId, System.Int32 slotIndex, System.Int32 removeAmount, System.Boolean removeEvenIfNotEnough)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash7B665E50F7951B63F2AA8B330168F6F526C17403A070F60AB1DE4FE8FD35450F
  • Body hashB1C70659C5F1EA561DA92716B32956105BCF2FF032A347BECEB74960396E4C66
  • IL size112
Referenced calls
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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashC60D32E9BD2291C9C2D885039F925EE0268F0FE0664E95F7E4F9F190AD9E059E
  • Body hash0226FED786E6C75B8F323CA9DD19744371F37E241D068F7C98F0BEEB0E4511FD
  • IL size211
Referenced calls
Called by

TryExpendOneItem

public System.Boolean TryExpendOneItem(Shared.Models.Items.ItemInstanceModel item, System.Guid inventoryId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash5ECE7316022C5D56064AA228EA8D6E3F0C169FC1E1F12FC9B38A7BE3AF61A920
  • Body hash2776BAC2F85E631C81EEBB0564171DEFC0A2622E773DAF79B2885917EAD5008A
  • IL size26
Referenced calls
Called by

TryLootWorldItemArrowsIntoEquipment

public SimpleInventoryServerManager.TryLootWorldItemResult TryLootWorldItemArrowsIntoEquipment(Shared.Models.Items.WorldItemModel worldItem, System.Guid lootingEntityId, System.Guid inventoryId, System.Guid equipmentInventoryId)

Method metadata
  • Visibilitypublic
  • Return typeSimpleInventoryServerManager.TryLootWorldItemResult
  • StaticTrue
  • VirtualFalse
  • Hash111360D9ED8A76C6F0C6F4F63111FA0DCAB9CCC469F50F6A81FE94579164FBB4
  • Body hashADD978C94C14AC08671B67CDBD6EB1E2C2C33B8995FCC2FF356CBF217F47F6FD
  • IL size252
Referenced calls
Called by
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 typeSimpleInventoryServerManager.TryLootWorldItemResult
  • StaticTrue
  • VirtualFalse
  • Hash8034DF727F8B1EAE95C08ADB4FDBC186D91ACA09B62A316E2C6C436AEE008208
  • Body hashB1D271F177FFFB4895F95D0A671721C315B54CE8DB2AE146B8E124A3C13BAC0A
  • IL size149
Referenced calls
Called by

TryRemoveItems

public System.Boolean TryRemoveItems(CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashF90778B84F89701467A427D1122D8B901C957FADC26A57EE70EB677761F79D75
  • Body hashA368BE606FCE948E08CD224ECFE08B2A2C583129FE69D3FB9FBD84AC9A77A71E
  • IL size72
Referenced calls
Called by

TryRemoveItemsFromInventories

public System.Boolean TryRemoveItemsFromInventories(System.Collections.Generic.IReadOnlyCollection<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage> messages)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash958ED6358A7C150387AF982817A7132FE2C1A4104A2B2989D9D316D0103451E4
  • Body hash1FB4DB7877DB7681216D6FBF0C9FE384430606DC202348244B9D9C4A0CC83DAD
  • IL size93
Referenced calls