Romestead Assembly Reference

CandideServer.ServerControllers.ItemInstanceSController

Type JSON changed

public class in CandideServer.ServerControllers

Methods11
Properties0
Fields0
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerControllers
  • Base typeSystem.Object
  • Hash0364F6662C392E9CC9DA64AE68AF6BBE1A6EA71EFA69EA5565D898F2D31CDC59

Relationships

Base type

System.Object

Methods

AddAuraToItem

public System.Void AddAuraToItem(Shared.Models.Items.ItemInstanceModel itemInstance, System.String auraId, System.Boolean delayCalculateStats)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashA97BB8CACF214D888DF9D80382E939869D93A6086BE11D69BA18EA7EDEBEC02B
  • Body hash7933C660FF2727F51FB579D3BDE960373847348A2333168816D64D442E0252E0
  • IL size45
Referenced calls
Called by

AddItemAuras

public System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage> AddItemAuras(Shared.Models.Items.ItemInstanceModel itemInstance, System.Collections.Generic.List<Shared.Aura.AbstractAura<Shared.Models.Items.ItemData>> auras)

Method metadata
Referenced calls

AddItemAurasSilent

public System.Void AddItemAurasSilent(Shared.Models.Items.ItemInstanceModel itemInstance, System.Collections.Generic.List<Shared.Aura.AbstractAura<Shared.Models.Items.ItemData>> auras)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash844130A300FAC19F93BC4556A89D958F44E0C65BF5574EB491C6A9222C8B1F5D
  • Body hashFF094F17AFB929E905BADEA10ABB247AC811F7F4E62853DE57DE669AD7744343
  • IL size67
Referenced calls
Called by

BeforeWorldGameStateLoaded

changed

public System.Void BeforeWorldGameStateLoaded()

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashE436680153BA94F37B6D87B83DBF62551FB1246946B4301DC8C161BB97272003
  • Body hash755811ED21D14555A542FF9AE1D17B305D9A6BAF66A921F519BF026B50EE49B1
  • IL size1144
Referenced calls
  • System.Diagnostics.Stopwatch::StartNew()
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.SharedInventoryModel>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, Shared.Models.Items.SharedInventoryModel>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, Shared.Models.Items.SharedInventoryModel>::Deconstruct(!0&, !1&)
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.ItemInstanceModel>::Remove(!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::AppendFormatted(System.String)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()
  • CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
  • System.Nullable<System.Guid>::get_HasValue()
  • System.Nullable<System.Guid>::GetValueOrDefault()
  • System.Guid::op_Inequality(System.Guid, System.Guid)
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Items.ServerWorldItemModel>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Items.ServerWorldItemModel>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, CandideServer.Models.Items.ServerWorldItemModel>::Deconstruct(!0&, !1&)
  • System.Guid::op_Equality(System.Guid, System.Guid)
  • Dictionary.Enumerator<System.Guid, CandideServer.Models.Items.ServerWorldItemModel>::MoveNext()
  • System.IDisposable::Dispose()
  • System.Nullable<System.Guid>::.ctor(!0)
  • Dictionary.Enumerator<System.Guid, Shared.Models.Items.SharedInventoryModel>::MoveNext()
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.ItemInstanceModel>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, Shared.Models.Items.ItemInstanceModel>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, Shared.Models.Items.ItemInstanceModel>::Deconstruct(!0&, !1&)
  • Shared.Models.Items.ItemInstanceModel::CalculateStats()
  • Shared.Models.Items.ItemInstanceModel::get_Data()
  • Dictionary.Enumerator<System.Guid, Shared.Models.Items.ItemInstanceModel>::MoveNext()
  • System.Diagnostics.Stopwatch::get_Elapsed()
Called by
String literals
  • Found invalid item instance stack amount on world load. Removing it.
  • Inventory ID:
  • Found item instance that was a world item but not detached from its inventory.
  • Found item instance that had detached from its inventory.
  • Calculated stats on all item instances, updated inventory instance IDs and inventory slots in

CreateMoneyItemInstancesFromMoney

public System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel> CreateMoneyItemInstancesFromMoney(System.UInt64 money, System.Nullable<System.Guid> inventoryId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>
  • StaticTrue
  • VirtualFalse
  • Hash8F68CE80809E5D70267C4A3505140809A0C9D357F669244ABF0AC063F7BEEFF6
  • Body hash6BFB98CDAAC51438911A90BE7B847DF4AD696EEA9B080BEC066FB8FE86230C18
  • IL size87
Referenced calls
  • System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::.ctor()
  • CandideServer.ServerControllers.ItemInstanceSController::<CreateMoneyItemInstancesFromMoney>g__CreateMoney|1_0(System.Int32, System.String, ItemInstanceSController.<>c__DisplayClass1_0&)
Called by
String literals
  • money
  • money:1
  • money:2
  • money:3

CreateNewItemInstance

public Shared.Models.Items.ItemInstanceModel CreateNewItemInstance(System.String itemId, System.Int32 amount, System.Guid instanceId, System.Nullable<System.Guid> inventoryId, System.String auraId)

Method metadata
  • Visibilitypublic
  • Return typeShared.Models.Items.ItemInstanceModel
  • StaticTrue
  • VirtualFalse
  • Hash74C3682DB1247620F76CEC0D3A2A0812B427667F072189E9A7E4BD35CCF390A6
  • Body hash76EE305939AE3C16A11BDDC6129F550294F5CAAC189BF5AECF09BCB4EACFC8AF
  • IL size144
Referenced calls
Called by
String literals
  • An item instance with the ID
  • already exists in the gamestate.

RemoveInventoryItems

public System.Void RemoveInventoryItems(Shared.Models.Items.SharedInventoryModel model)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashC0D76280E7B5FF5888A48354F61D38181B204A8C8C78D5BCDA28BA89B75AD474
  • Body hash5290D8F58F43B7EF29554FC96D313DC3CB3D9A6F868818B8996DFBB38D320E3D
  • IL size35
Referenced calls
Called by

RemoveItemInstanceFromState

public System.Void RemoveItemInstanceFromState(Shared.Models.Items.ItemInstanceModel itemInstance)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash91AA4572887864E7181389D1A2F8E89C4EDA77FD8E282A8BF590E44C3F6DF4F3
  • Body hash0DB6A4DE07AE605A5CFAFFA670EF6CA9CD93B892CFB3AEAD1C12082A70258AFC
  • IL size18
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.ItemInstanceModel>::Remove(!0)
Called by

RemoveItemInstanceFromState

public System.Void RemoveItemInstanceFromState(System.Guid itemInstanceId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashDBFC3CA477054BDBAB31198124A7D13CB618933ED03A4E2E15F2CBD5B3CCFC70
  • Body hashC60491E16C3B81ACEBD682AB77AA7C0A98558529BDF95DCF6BAF205BE285A2A6
  • IL size13
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.ItemInstanceModel>::Remove(!0)
Called by

TryExpendItem

public System.Boolean TryExpendItem(CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash0BD13DA8F2B11624FF45CB840B95AD442336946EE392AA05ECF9D470FD2A5BE5
  • Body hash1BA194C3BEA7D1DAE11923DEF725F625520F811332D407CBE12D33ECB0065E76
  • IL size30
Referenced calls

TryExpendItem

public System.Boolean TryExpendItem(Shared.Models.Items.ItemInstanceModel item, System.Int32 amount)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash8227360F760785CC6B629AD645952BCBFA6FD2A0204EC40A200D031BC19C3974
  • Body hash3F37F6C4CFD3D38102CE83C63B61D559D828A5C986C5FF5FEE721394571EB10A
  • IL size145
Referenced calls
Called by
String literals
  • Use SimpleInventorySController's expend item instead. This method is for instances which do not have an inventory set (e
  • TryExpendItem
  • : Tried to remove more
  • than we have in stack