Romestead Assembly Reference

CandideServer.ServerControllers.SimpleInventorySController

Type JSON

public class in CandideServer.ServerControllers

Methods24
Properties0
Fields0
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerControllers
  • Base typeSystem.Object
  • Hash36EF6131174B3981B39396A942DA5C45807E6F96FBCC0BC42256806FCDE4DD90

Relationships

Base type

System.Object

Methods

AddItemInstance

public System.Boolean AddItemInstance(Shared.Models.Items.ItemInstanceModel item, System.Guid inventoryId, System.Boolean allowPartialStack, System.Collections.Generic.HashSet<System.Int32> changedInventoryIndices, out System.UInt64& moneyChange)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash9F80CA522F70247C021A6592E8867F2800051ADBE34AE999CF81AF4F09276EFE
  • Body hash276CFF1AF8DC8D822A3AC0DF8C82613E39EF657A64BEA09E403D81DF3D964817
  • IL size447
Referenced calls
Called by
String literals
  • Can't add item instance with ID
  • . It already has an inventory ID set:
  • . If you want to add it anyway, contact me (Samuel) for a personal consultation.

CheckCanRemoveItems

public System.Boolean CheckCanRemoveItems(CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage msg, Shared.Models.Items.SharedInventoryModel existingInventory)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash7CCEB6ABD35B0EF97881B3F5B14F72881AEA480FE34D1C21A2CD51F44FBAEFF7
  • Body hashC523D0E34E776AAD6E1EAB3FF02073217F281927DB3D8CF5D66700AE352C09A1
  • IL size19
Referenced calls
Called by

CheckCanRemoveItems

public System.Boolean CheckCanRemoveItems(Shared.Models.Items.SharedInventoryModel inventory, Shared.Models.Items.ItemAmount[] toBeRemoved)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash073AF9A0C00E0B7526EC5E8BD1CB4797284078CF4413B1181B6BFFC92422137D
  • Body hash02793C2BD8B7B790E56380BF24F62A05F93946021247BC33ED5BBCAA85EC1EF6
  • IL size119
Referenced calls
  • Shared.Models.Items.ItemInstanceModel::get_Data()
  • System.String::op_Equality(System.String, System.String)
Called by

CheckCanRemoveItems

public System.Boolean CheckCanRemoveItems(System.Guid inventoryId, Shared.Models.Items.ItemAmount[] itemAmounts, Shared.Models.Items.SharedInventoryModel existingInventory)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash96D3557524270FD7C17EE1E134AEE022855828618F2B3C4EEF5252809DCBEDC1
  • Body hash92D0E50DB228ECDC90B2A08E87CDAF01B7464BB1E88F194668FFEAAAE31B1A86
  • IL size25
Referenced calls
Called by

CheckSpaceExistsForAddItem

public System.Boolean CheckSpaceExistsForAddItem(CandideServer.ServerControllers.AddItemAmountMessage msg, Shared.Models.Items.SharedInventoryModel existingInventory)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashAC19097E14AE1C8025D72197FC5EBB766F09A0CBA7ABC34A41B9AA50164AC9BB
  • Body hashF88C4F455BCD5E8BCA1CC3AB458C9DFE289ED58DA62983433A5A7E5EA194F6CA
  • IL size51
Referenced calls
Called by
String literals
  • Sam, check here. ExistingInventory is null but we don't expect it to be.

ClearAndDeleteItemInstances

public CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage ClearAndDeleteItemInstances(Shared.Models.Items.SharedInventoryModel inventory, System.Boolean resetMoneyField)

Method metadata
Referenced calls
  • System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::.ctor()
  • CandideServer.ServerControllers.ItemInstanceSController::RemoveItemInstanceFromState(Shared.Models.Items.ItemInstanceModel)
  • CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage::.ctor()
  • System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::Add(!0)
  • System.Nullable<System.UInt64>::get_HasValue()
  • System.Nullable<System.UInt64>::GetValueOrDefault()
  • CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage::.ctor()
  • System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::ToArray()
  • CandideServer.ServerControllers.UpdateInventoryMoneyMessage::.ctor()
Called by

CreateNewInventory

public Shared.Models.Items.SharedInventoryModel CreateNewInventory(Shared.Messages.CreateNewInventoryMessage msg, System.Boolean isTemporary)

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.SharedInventoryModel
  • StaticTrue
  • VirtualFalse
  • Hash6833EB813580D21FF2A8B27B6C28F2706BB0FD3A3F616F22F552B19F019F5646
  • Body hashB344DD74F46459E3281945CF2FCC70D2DFEB590FFB04660E39396EC64A8329B4
  • IL size319
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.SharedInventoryModel>::ContainsKey(!0)
  • 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()
  • CandideServer.ServerControllers.ServerSimpleInventoryException::.ctor(System.String)
  • CandideCreator.Shared.Models.Items.InventoryItemSpawnModel::get_ItemId()
  • CandideCreator.Shared.Models.Items.InventoryItemSpawnModel::get_Amount()
  • System.Guid::NewGuid()
  • System.Nullable<System.Guid>::.ctor(!0)
  • CandideServer.ServerControllers.ItemInstanceSController::CreateNewItemInstance(System.String, System.Int32, System.Guid, System.Nullable<System.Guid>, System.String)
  • Shared.Models.Items.SharedInventoryModel::.ctor()
  • System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.SharedInventoryModel>::Add(!0, !1)
Called by
String literals
  • An inventory already exists with ID

DeleteInventoryAndInstances

public System.Void DeleteInventoryAndInstances(System.Guid id)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash504C56A68E4E946805A265B09E234F23997A7A2AB504BF5F1C555750D65A54FD
  • Body hash600384CC9DFCE3794FB74557B4E835AF88C6AA6232CA52F760D588B96A181CC6
  • IL size36
Referenced calls
Called by

ExpendItemAmount

public System.Boolean ExpendItemAmount(Shared.Models.Items.SharedInventoryModel inventory, System.String itemId, System.Int32 amount, System.Collections.Generic.HashSet<System.Int32> changedInventoryIndices)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash2C52D6355E65F3C736D24073108FDB9422E7D6BC1D03BFE486506BC88B2302F7
  • Body hash200FFA1FCAAA58AAE4125BE47C9D6B7F8FB09DDC8C75E889C3D82BAEFE38584F
  • IL size128
Referenced calls
Called by

FillInventoryWithSeparateSystemInstancesSilent

public System.Void FillInventoryWithSeparateSystemInstancesSilent(Shared.Models.Items.SharedInventoryModel inventory, Shared.Models.Items.ItemInstanceModel[] inventorySlots)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashB0D1F46B1C92FB510C07487E5B41EC1E1B66104820481A9DF68442C680120869
  • Body hashB9FDB7A54DAA7387B38599A727E0CBB380C8150B63823E663C468D7C54243D54
  • IL size107
Referenced calls
Called by

IncreaseInventorySpace

public Shared.Models.Items.SharedInventoryModel IncreaseInventorySpace(System.Guid inventoryId, System.Int32 slots)

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.SharedInventoryModel
  • StaticTrue
  • VirtualFalse
  • HashE24F426FD6AAEAB47EE59C80221E8A0E2C76590F8F8C09D3C06071319D367A92
  • Body hashB2277F3D41D31A50175B6892F0C04FBE8B4B636FF2455CBF5190165D6688827C
  • IL size59
Referenced calls
Called by

RemoveInventory

public System.Void RemoveInventory(Shared.Models.Items.SharedInventoryModel inventory, System.Boolean deleteItemInstances)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash0A4AE3FF8A37636804A04BCC0E94CD646E7E2F4FC2CCD752C15C3D6A20720524
  • Body hashA74DA057D8D9C35DA90C3FB86839C65C40C31D96902BD78EC8B76AA287A8F99F
  • IL size13
Referenced calls
Called by

RemoveInventory

public System.Void RemoveInventory(System.Guid inventoryId, System.Boolean deleteItemInstances)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash0193091E227364A2E3FE03EC75E403FB28D68562C1ED864C39FA9A6BE2DD9D47
  • Body hash53EAC023D630906A060F44B8CAFDBF23B3F9CC8383EE916B8AAF24E64FFD97D1
  • IL size32
Referenced calls
Called by

RemoveInventoryItem

public System.Void RemoveInventoryItem(Shared.Models.Items.SharedInventoryModel inventory, System.Int32 slotIndex)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashDEE010D8E06196CFE078B8707E91AEC0DCDC2E0EA38F056BF85F356512B4FCF5
  • Body hash04C2ACA6F62FD8881A0A200BD7F4AD444FE82D0AC1E948C6569A84BD4DB52C1B
  • IL size34
Referenced calls
Called by

RemoveItemsFromInventories

public CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage RemoveItemsFromInventories(System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Inventories.RemoveItemsFromInventoryMessage> args)

Method metadata
Referenced calls
Called by

RemoveItemsFromInventory

public System.Boolean RemoveItemsFromInventory(System.Guid inventoryId, Shared.Models.Items.ItemAmount[] itemAmounts, System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage> updatesList)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashB598CD58FAF6188FFE92AD9EE9A4D4E814F1C51461F7C61CEA491339BF81F8A9
  • Body hashBCDE2E0214F8FC3C3B3E56D58F8C7071356375EB093C4B5247C3F04B73FDDF41
  • IL size633
Referenced calls
  • SimpleInventorySController.<>c__DisplayClass5_0::.ctor()
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.SharedInventoryModel>::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.ServerWarningHelper::Warning(System.String)
  • System.Exception::.ctor(System.String)
  • SimpleInventorySController.<>c__DisplayClass5_1::.ctor()
  • Shared.Models.Items.ItemInstanceModel::get_Data()
  • System.String::op_Equality(System.String, System.String)
  • SimpleInventorySController.<>c__DisplayClass5_1::<RemoveItemsFromInventory>b__0(CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage)
  • System.Predicate<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::Find(System.Predicate<!0>)
  • CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage::.ctor()
  • CandideServer.ServerControllers.ItemInstanceSController::RemoveItemInstanceFromState(Shared.Models.Items.ItemInstanceModel)
  • System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::Add(!0)
Called by
String literals
  • Couldn't find inventory with ID
  • in the gamestate.
  • Tried to remove a negative amount of items

TryAddItemAmount

public System.Boolean 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 typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash13C1F2590D4F0667F43648CE6CF1D1057E272269BC6802CF6AD1CDDD05F6295E
  • Body hash036939E97F750A5E1E4DB6ED07C2AFEE74C44197165074ECF9EC15A81434957D
  • IL size398
Referenced calls
Called by
String literals
  • TryAddItemAmount: Failed creating item instance

TryAddMoney

public System.Boolean TryAddMoney(Shared.Models.Items.SharedInventoryModel inventory, System.UInt64 money)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashC7DDE43DD76ACD06DB1E3D751E4691622D2223900A24947C0124CF9BAE643C9F
  • Body hashB58ABB1A9BFA30552EF463AAE5862A3E09E6D667FF847117A4DDC140BCAF04B0
  • IL size100
Referenced calls
  • System.Nullable<System.UInt64>::get_HasValue()
  • System.Nullable<System.UInt64>::GetValueOrDefault()
  • System.Nullable<System.UInt64>::.ctor(!0)
  • System.Nullable<System.UInt64>::get_Value()
Called by

TryDetachItemFromInventory

public System.Boolean TryDetachItemFromInventory(Shared.Models.Items.SharedInventoryModel inventory, System.Int32 slotIndex)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash889EB182EEC969531842CCAD1EAB5722E58C2AD8D2335ED9F3C4979386344CEF
  • Body hash7E8D897A16187D338ED4AFB67C70F3C8C61EF3A3A7D0856760D2ABDDAB71E9FF
  • IL size121
Referenced calls
  • 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.ServerWarningHelper::Warning(System.String)
Called by
String literals
  • Item instance at slot
  • of inventory with ID
  • was already null.

TryExpendItem

public System.Boolean TryExpendItem(Shared.Models.Items.SharedInventoryModel inventory, Shared.Models.Items.ItemInstanceModel item, System.Int32 amount, System.Boolean removeEvenIfNotEnough, out System.Int32& changedSlotIndex)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashD3C40B9D9A5615F70446FC5665C72BD7F1080FFF34ECC75E3B3D0251BC6D9FC2
  • Body hash812243F83B177EFBF7637DB98F46EFB09ADB79C8EDBD939CEFE01F3B64A9F42D
  • IL size224
Referenced calls
Called by
String literals
  • Item instance inventory ID is not the same as the given inventory ID
  • Item instance says it's part of the inventory but it doesn't exist in the slots.
  • TryExpendItem
  • , Inventory: Tried to remove more
  • than we have in stack

TryExpendItem

public System.Boolean TryExpendItem(Shared.Models.Items.SharedInventoryModel inventory, System.Guid itemInstanceId, System.Int32 amount, System.Boolean removeEvenIfNotEnough, out System.Int32& changedSlotIndex)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash00660DA79DFAF9A974DFB5BA9639EAC4191E4CD1AD95E14E08FCF0F437B152D6
  • Body hash649C14B17417E350424A6E3D0078C60A818EDD5449DA3BD07734718C9FB17CBC
  • IL size28
Referenced calls
Called by

TryRemoveMoney

public System.Boolean TryRemoveMoney(Shared.Models.Items.SharedInventoryModel inventory, System.UInt64 money)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash1396E083C9A6162971CA38AF9531EC3FF2D76A6F6503FB06F0CD877DAEDE005B
  • Body hash3FE1EE3E0FB803862FAA66DD7984FB83A087D63AF278C37DB361D4FB7EA6E100
  • IL size97
Referenced calls
  • System.Nullable<System.UInt64>::get_HasValue()
  • System.Nullable<System.UInt64>::GetValueOrDefault()
  • System.Nullable<System.UInt64>::.ctor(!0)
Called by

TryRenameInventory

public System.Boolean TryRenameInventory(System.Guid inventoryId, System.String newName)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash9FAEFAC91E53B1C298492FE9CBBB882FE401E2FB7F295C55604770A4C2257810
  • Body hashC35C2CDBEC72C5C2022B5091014E971789B4DE2AA117AFE37B83C58C29A67C98
  • IL size53
Referenced calls
Called by
String literals
  • Tried to rename inventory name into the same name

ValidateInventorySlots

public System.Boolean ValidateInventorySlots(Shared.Models.Items.ItemInstanceModel[] inventorySlots)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashD02ADE8CDCF613918C8972BED6E407CAC922FA9858C833AC1CDDA7F50993AEB0
  • Body hashE26C6A4778F1A16C6E5225844890993769C97CBDE54EB22E439C20691F65405B
  • IL size232
Referenced calls
Called by
String literals
  • Invalid item id
  • in inventory - (removing because we are in DEBUG)