Candide.GameModels.Managers.ItemInstanceManager
Type JSONpublic class in Candide.GameModels.Managers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Managers - Base type
System.Object - Hash
D195AF200E85F889448CDEB40D89B84A85D02B7E223531C827BEBC13C2C58CD6
Relationships
Base type
System.Object
Methods
Expend
#
public System.Void Expend(Shared.Models.Items.ItemInstanceModel item, System.Int32 amount)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
E30CA86CC78070C5E11383DB9504BD1EAA93690E041EBA3BA55A7D769BE53D01 - Body hash
2774C7D0825860925A55FF7C49FFFEE0E60AF8B1F5C622DA32CBF43FB67B8143 - IL size61
Referenced calls
CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage::.ctor()Candide.GameModels.Services.ItemInstanceService::SendExpend(CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()Candide.GameModels.Controllers.SimpleInventoryController::ExpendItem(System.Guid, Shared.Models.Items.ItemInstanceModel, System.Int32)
ExpendAmmo
#
public System.Void ExpendAmmo(Shared.Models.Items.ItemInstanceModel[] arrowInstances, System.Int32 amount, Shared.Models.Items.WeaponTypeEnum weaponType)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A88FC645F13F460B8C6FE2EF00024BF75FBD7544C9810C21475FAFB27EBACF19 - Body hash
DF1FF16D7C9196D138C7B06D8B8B6FCD13C55E1C2AD2438F88F1ABBCCA93C958 - IL size265
Referenced calls
System.Nullable<System.Guid>::get_HasValue()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.WarningHelper::Warning(System.String)Shared.Models.Items.ItemInstanceModel::get_Data()System.Nullable<Shared.Models.Items.WeaponTypeEnum>::.ctor(!0)System.Nullable<Shared.Models.Items.WeaponTypeEnum>::GetValueOrDefault()System.Nullable<Shared.Models.Items.WeaponTypeEnum>::get_HasValue()System.Math::Min(System.Int32, System.Int32)System.Nullable<System.Guid>::get_Value()Candide.GameModels.Controllers.SimpleInventoryController::ExpendItem(System.Guid, Shared.Models.Items.ItemInstanceModel, System.Int32)CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage::.ctor()Candide.GameModels.Services.ItemInstanceService::SendExpend(CandideServer.MessageModels.Inventories.ExpendItemInstanceMessage)
String literals
Tried to expend arrows but the arrow instancedoes not have an inventory ID set
TryUseItem
#
public System.Boolean TryUseItem(Shared.Models.Items.ItemInstanceModel item)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
9DCEF68B0D9EE5CB30EB8D44200AEF113826DC1B666D766FFD8EF86CC75C5043 - Body hash
4B180F0F9343FC1A7EF876532A82E91849BE7B7B2FC08B6C144796B73DA090F6 - IL size222
Referenced calls
Shared.Models.Items.ItemInstanceModel::CanUseItem()Shared.Models.Items.ItemInstanceModel::get_Data()Shared.Data.SpellDataBase::GetSpellOrNull(System.String)System.String::Concat(System.String, System.String)CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Spells.AbstractSpell>::ContainsKey(!0)Candide.Multiplayer.Models.LocalPlayer::get_EntityId()Shared.Entity.EntityWrapper::get_Position()System.Nullable<Microsoft.Xna.Framework.Vector3>::.ctor(!0)System.Nullable<System.Single>::.ctor(!0)System.Nullable<Shared.Combat.Spells.Casting.SpellCastingContextItemData>::.ctor(!0)System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.Managers.SpellManager::CastSpell(System.String, System.Nullable<Microsoft.Xna.Framework.Vector3>, System.Nullable<System.Single>, Shared.Entity.EntityWrapper, System.Nullable<Shared.Combat.Spells.Casting.SpellCastingContextItemData>, System.Object, Shared.Models.Spells.AttackSpellArgs, System.Guid, System.Nullable<System.Guid>, Shared.Models.Spells.ProjectileHitFlags, System.Boolean)
Called by
String literals
Couldn't find spell with IDUnknown spell type: