Candide.GameModels.Managers.EquipmentManager
Type JSONpublic class in Candide.GameModels.Managers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Managers - Base type
System.Object - Hash
592D6B3839E6168155964F82F6C914D83E81D9C04D78D2C6C72117C8DDC0A991
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
EquipmentsChanged# | private | private EquipmentManager.GameStateEquipmentsChanged EquipmentsChanged |
IgnoreEvents# | public | public System.Boolean IgnoreEvents |
_lastInventoryModel# | private | private System.Nullable<System.Guid>[] _lastInventoryModel |
Events
| Name | Visibility | Signature |
|---|---|---|
EquipmentsChanged# | public | public EquipmentManager.GameStateEquipmentsChanged EquipmentsChanged |
Methods
AnalyticsPrintSourceAndTargetInventories
#
private System.Void AnalyticsPrintSourceAndTargetInventories(Shared.Models.Items.SharedInventoryModel sourceInventory, Shared.Models.Items.SharedInventoryModel targetInventory, System.Text.StringBuilder sb)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
6BC215CE6EE5F626260ED901A0723DF55BFDC5A77F58F042836EC61A8F6EF30B - Body hash
1B0B780A77DD5BA68E8D3F6F161925478064F6DF74C2B45DE361BEF46771B733 - IL size185
Referenced calls
StringBuilder.AppendInterpolatedStringHandler::.ctor(System.Int32, System.Int32, System.Text.StringBuilder)StringBuilder.AppendInterpolatedStringHandler::AppendLiteral(System.String)Candide.Globals::get_LanguageCode()StringBuilder.AppendInterpolatedStringHandler::AppendFormatted(System.String)Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()StringBuilder.AppendInterpolatedStringHandler::AppendFormatted(!!0)System.Collections.Generic.Dictionary<System.Int32, Candide.Multiplayer.Models.ClientPlayerCharacter>::get_Count()System.Text.StringBuilder::AppendLine(StringBuilder.AppendInterpolatedStringHandler&)System.Text.StringBuilder::AppendLine(System.String)System.Text.StringBuilder::Append(System.Object)System.Text.StringBuilder::AppendLine()System.Object::ToString()Shared.Analytics.AnalyticsManager::TrackError(System.String)
String literals
AnalyticsPrintSourceAndTargetInventories() Language:Playing on controller:Multiplayer:Is host:SOURCE INVENTORYTARGET INVENTORY
InvokeEquipmentsChanged
#
public System.Void InvokeEquipmentsChanged(Candide.GameModels.Models.Items.SimpleInventory inventory, System.Collections.Generic.IReadOnlyCollection<Shared.Models.Items.ItemInstanceModel> equippedItems)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
BE9A567418D71D91F575C909606BDA0947E8AF9EBFF00A528F16CA194860F211 - Body hash
733D07AC6830F405277E7CA0BDE7AFD251EA9C2CEB287A080353760FEBC5CAE8 - IL size19
InvokeEquipmentsChanged
#
public System.Void InvokeEquipmentsChanged(System.Guid id, Candide.GameModels.Models.Items.SimpleInventory inventory, System.Collections.Generic.IReadOnlyCollection<Shared.Models.Items.ItemInstanceModel> equippedItems)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8592F5AC81B533E0AE762F3DEE24D4FA14172E07D8DFA2EDDAE234CECDFC7664 - Body hash
2E0F92B294B7FED8F5B40F9E610C76FCE8B9EA0EC01C762F83F42A82E340EE4C - IL size228
Referenced calls
System.Collections.Generic.IReadOnlyCollection<Shared.Models.Items.ItemInstanceModel>::get_Count()Candide.Sound.SoundPlayer::PlayEventOneShot(System.String, System.Single, System.Single)System.Collections.Generic.IEnumerable<Shared.Models.Items.ItemInstanceModel>::GetEnumerator()System.Collections.Generic.IEnumerator<Shared.Models.Items.ItemInstanceModel>::get_Current()Shared.Models.Items.ItemInstanceModel::get_Data()System.Nullable<Shared.Models.Items.EquipmentType>::.ctor(!0)System.Nullable<Shared.Models.Items.EquipmentType>::get_HasValue()System.Nullable<Shared.Models.Items.EquipmentType>::GetValueOrDefault()System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()System.Array::Empty()Candide.GameModels.Managers.GameStateEquipmentsChangedArgs::.ctor(System.Guid, Candide.GameModels.Models.Items.SimpleInventory, System.Collections.Generic.IReadOnlyCollection<Shared.Models.Items.ItemInstanceModel>)EquipmentManager.GameStateEquipmentsChanged::Invoke(Candide.GameModels.Managers.GameStateEquipmentsChangedArgs)
String literals
event:/interface/player inventory/ui_inventory_equip_generalevent:/interface/player inventory/ui_inventory_equip_weaponevent:/interface/player inventory/ui_inventory_equip_armor
OnEquipmentInventorySynced
#
public System.Void OnEquipmentInventorySynced(Candide.GameModels.Models.Items.SimpleInventory simpleInventory)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
B5C156A2B483B7510D35CF97B5BE4282AA52BD24F92E72995EEC3A1832149588 - Body hash
502D010FD462F38C7E53F03802AFB77B6388C237807169B45CC761A5151245B6 - IL size302
Referenced calls
System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::.ctor()System.Nullable<System.Guid>::get_HasValue()System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::Add(!0)System.Nullable<System.Guid>::get_Value()System.Guid::op_Inequality(System.Guid, System.Guid)System.Nullable<System.Guid>::.ctor(!0)System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::get_Count()Candide.GameModels.Managers.EquipmentManager::InvokeEquipmentsChanged(Candide.GameModels.Models.Items.SimpleInventory, System.Collections.Generic.IReadOnlyCollection<Shared.Models.Items.ItemInstanceModel>)
PlayUnequipSound
#
private System.Void PlayUnequipSound(Shared.Models.Items.EquipmentType equipmentType)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
75F2036254CADF06E968E32FCACFBD4EE997E7C06595C392E288F76F1C98FC1C - Body hash
FFC0B9405E2118D669046EED82AE3D2FEA2BFAC127B4127F2E9C001DF32FFD30 - IL size57
Referenced calls
String literals
event:/interface/player inventory/ui_inventory_unequip_weaponevent:/interface/player inventory/ui_inventory_unequip_armor
SwitchWeapons
#
public System.Void SwitchWeapons()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
2CC126D066C5B235F1FB20D2E87F8CB9A6D886A42B0FFC30309659D961B51A4D - Body hash
6045BFCC22B591D6E6F756522DC5F81494F1B829278C2F34F041B8E9D621930E - IL size364
Referenced calls
Candide.GameModels.GameState::TryGetActiveInventory(System.Guid, Candide.GameModels.Models.Items.SimpleInventory&)Shared.Inventory.DeltaModels.InventoryHelper::TryFindSlotMatchingEquipmentType(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.EquipmentType, System.Int32&)Shared.Inventory.ComplexInventoryDeltaEngine::Equipment_SimultaneousSwap(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.SharedInventoryModel, System.Int32[], 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.WarningHelper::Warning(System.String)Shared.Inventory.InventoryApplyEngine::TryApplyManyActions(Shared.Inventory.InventoryApplyBridge.IInventoryApplyBridge, System.Collections.Generic.IReadOnlyCollection<Shared.Inventory.DeltaModels.DeltaAction>)CandideServer.MessageModels.Equipment.SwitchWeaponsMessage::.ctor()Candide.GameModels.Services.EquipmentService::Send_SwitchWeapons(CandideServer.MessageModels.Equipment.SwitchWeaponsMessage)
String literals
SwitchWeapons: Result was
TryEquip
#
public System.Boolean TryEquip(System.Guid sourceInventoryId, System.Int32 sourceSlotIndex, System.Guid equipmentInventoryId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
C1047CAA35DD8392C42407766095445E0B2BCBEFCA91C4D753FE4F88790D0B99 - Body hash
6EEACF9779C205171DE86D9CBAB9D2BB344C4B155A429A67181EC04D91E3BB5C - IL size287
Referenced calls
Candide.GameModels.GameState::TryGetActiveInventory(System.Guid, Candide.GameModels.Models.Items.SimpleInventory&)Shared.Inventory.DeltaModels.InventoryHelper::DebugAssertSourceItemEquippable(Shared.Models.Items.ItemInstanceModel)Shared.Models.Items.ItemInstanceModel::get_Data()Shared.Inventory.ComplexInventoryDeltaEngine::LootItem(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Boolean, Shared.Models.Items.SharedInventoryModel, System.Boolean)Shared.Inventory.InventoryApplyEngine::TryApplyManyActions(Shared.Inventory.InventoryApplyBridge.IInventoryApplyBridge, System.Collections.Generic.IReadOnlyCollection<Shared.Inventory.DeltaModels.DeltaAction>)CandideServer.MessageModels.Inventories.InventoryApplyManyDeltaMessage::.ctor()Candide.GameModels.Services.SimpleInventoryService::Send_InventoryApplyManyDelta(CandideServer.MessageModels.Inventories.InventoryApplyManyDeltaMessage)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.WarningHelper::Warning(System.String)Shared.Inventory.DeltaModels.InventoryHelper::TryFindFirstSlotAcceptingItemData(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.ItemData, System.Boolean, System.Int32&)Candide.GameModels.Managers.EquipmentManager::TryEquipAndSwapAction(System.Guid, System.Int32, System.Guid, System.Int32, System.Boolean)
String literals
TryEquip, arrows: Result wasTryEquip: Failed TryEquipAndSwapAction
TryEquipAndSwapAction
#
public System.Boolean TryEquipAndSwapAction(System.Guid sourceInventoryId, System.Int32 sourceSlotIndex, System.Guid equipmentInventoryId, System.Int32 equipmentSlotIndex, System.Boolean sourceToEquipment)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
20F2F03B2A15A92C2CFE4F10DEFB42C870F0A4BCABA4D636A975264097D70296 - Body hash
A206DE239EA48536C0107AF9698303F453C321063DF6198F6E9F3B66B7A54D32 - IL size425
Referenced calls
Candide.GameModels.GameState::TryGetActiveInventory(System.Guid, Candide.GameModels.Models.Items.SimpleInventory&)Shared.Models.Items.ItemInstanceModel::get_Data()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Candide.GameModels.Managers.SimpleInventoryManager::ItemSwapAction(System.Guid, System.Int32, System.Guid, System.Int32)Candide.GameModels.Managers.SimpleInventoryManager::EmptyTrashAndSwapInItem(Candide.GameModels.Models.Items.SimpleInventory, Candide.GameModels.Models.Items.SimpleInventory, System.Int32, System.Int32)Shared.Inventory.DeltaModels.InventoryHelper::DebugAssertSourceItemEquippable(Shared.Models.Items.ItemInstanceModel)System.Nullable<Shared.Models.Items.EquipmentType>::get_HasValue()System.Nullable<Shared.Models.Items.EquipmentType>::get_Value()Shared.Inventory.DeltaModels.InventoryHelper::TryFindSlotMatchingEquipmentType(Shared.Models.Items.SharedInventoryModel, Shared.Models.Items.EquipmentType, 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()System.Nullable<System.Int32>::.ctor(!0)Shared.Inventory.ComplexInventoryDeltaEngine::Player_LootItemEquipment(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Int32, System.Nullable<System.Int32>)Shared.Inventory.InventoryApplyEngine::TryApplyManyActions(Shared.Inventory.InventoryApplyBridge.IInventoryApplyBridge, System.Collections.Generic.IReadOnlyCollection<Shared.Inventory.DeltaModels.DeltaAction>)CandideServer.MessageModels.Inventories.InventoryApplyManyDeltaMessage::.ctor()Candide.GameModels.Services.SimpleInventoryService::Send_InventoryApplyManyDelta(CandideServer.MessageModels.Inventories.InventoryApplyManyDeltaMessage)
Called by
String literals
TryEquipAndSwapAction: Item in equipment is not equippable?TryEquipAndSwapAction: Couldn't find slot for extra equipment typeTryEquipAndSwapAction: Failed to equip.
TryUnequipItem
#
public System.Boolean TryUnequipItem(Candide.GameModels.Models.Items.SimpleInventory equipmentInventory, Candide.GameModels.Models.Items.SimpleInventory targetInventory, System.Int32 equipmentSlotIndex)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
C68F81DBAD99E4E81EACB586E8CD33A539A0BECB6864ACAE2EADE18CC2ED756D - Body hash
9642954238C07ACCF80E03D1EE73B71DDF93C83245144EF11DD126155F4AB09E - IL size174
Referenced calls
Shared.Inventory.ComplexInventoryDeltaEngine::LootItem(Shared.Models.Items.SharedInventoryModel, System.Int32, Shared.Models.Items.SharedInventoryModel, System.Boolean, Shared.Models.Items.SharedInventoryModel, System.Boolean)Shared.Text.StringDefinitions::GetString(System.String)Candide.CandideUI.PlayerWarningMessage::Add(System.String)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.WarningHelper::Warning(System.String)Shared.Inventory.InventoryApplyEngine::TryApplyManyActions(Shared.Inventory.InventoryApplyBridge.IInventoryApplyBridge, System.Collections.Generic.IReadOnlyCollection<Shared.Inventory.DeltaModels.DeltaAction>)Candide.GameModels.Managers.EquipmentManager::PlayUnequipSound(Shared.Models.Items.EquipmentType)CandideServer.MessageModels.Inventories.InventoryApplyManyDeltaMessage::.ctor()Candide.GameModels.Services.SimpleInventoryService::Send_InventoryApplyManyDelta(CandideServer.MessageModels.Inventories.InventoryApplyManyDeltaMessage)
String literals
Gui_Warning_InventoryFullTryUnequipItem: Result was