Show / Hide Table of Contents

Class ClientInventorySystem

Inheritance
System.Object
InventorySystem
ClientInventorySystem
Namespace: Content.Client.Inventory
Assembly: Content.Client.dll
Syntax
public sealed class ClientInventorySystem : InventorySystem

Fields

| Improve this Doc View Source

EntitySlotUpdate

Declaration
public Action<ClientInventorySystem.SlotData>? EntitySlotUpdate
Field Value
Type Description
System.Nullable<Action<ClientInventorySystem.SlotData>>
| Improve this Doc View Source

OnLinkInventorySlots

Declaration
public Action<EntityUid, InventorySlotsComponent>? OnLinkInventorySlots
Field Value
Type Description
System.Nullable<Action<EntityUid, InventorySlotsComponent>>
| Improve this Doc View Source

OnSlotAdded

Declaration
public Action<ClientInventorySystem.SlotData>? OnSlotAdded
Field Value
Type Description
System.Nullable<Action<ClientInventorySystem.SlotData>>
| Improve this Doc View Source

OnSlotRemoved

Declaration
public Action<ClientInventorySystem.SlotData>? OnSlotRemoved
Field Value
Type Description
System.Nullable<Action<ClientInventorySystem.SlotData>>
| Improve this Doc View Source

OnSpriteUpdate

Declaration
public Action<ClientInventorySystem.SlotSpriteUpdate>? OnSpriteUpdate
Field Value
Type Description
System.Nullable<Action<Content.Client.Inventory.ClientInventorySystem.SlotSpriteUpdate>>
| Improve this Doc View Source

OnUnlinkInventory

Declaration
public Action? OnUnlinkInventory
Field Value
Type Description
System.Nullable<Action>

Methods

| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
InventorySystem.Initialize()
| Improve this Doc View Source

OnInit(EntityUid, InventoryComponent, ComponentInit)

Declaration
protected override void OnInit(EntityUid uid, InventoryComponent component, ComponentInit args)
Parameters
Type Name Description
EntityUid uid
InventoryComponent component
ComponentInit args
| Improve this Doc View Source

ReloadInventory(InventorySlotsComponent)

Declaration
public void ReloadInventory(InventorySlotsComponent component = null)
Parameters
Type Name Description
InventorySlotsComponent component
| Improve this Doc View Source

RemoveSlotDef(EntityUid, InventorySlotsComponent, ClientInventorySystem.SlotData)

Declaration
public void RemoveSlotDef(EntityUid owner, InventorySlotsComponent component, ClientInventorySystem.SlotData slotData)
Parameters
Type Name Description
EntityUid owner
InventorySlotsComponent component
ClientInventorySystem.SlotData slotData
| Improve this Doc View Source

RemoveSlotDef(EntityUid, InventorySlotsComponent, String)

Declaration
public void RemoveSlotDef(EntityUid owner, InventorySlotsComponent component, string slotName)
Parameters
Type Name Description
EntityUid owner
InventorySlotsComponent component
System.String slotName
| Improve this Doc View Source

SetSlotHighlight(EntityUid, InventorySlotsComponent, String, Boolean)

Declaration
public void SetSlotHighlight(EntityUid owner, InventorySlotsComponent component, string slotName, bool state)
Parameters
Type Name Description
EntityUid owner
InventorySlotsComponent component
System.String slotName
System.Boolean state
| Improve this Doc View Source

Shutdown()

Declaration
public override void Shutdown()
Overrides
InventorySystem.Shutdown()
| Improve this Doc View Source

TryAddSlotDef(EntityUid, InventorySlotsComponent, SlotDefinition)

Declaration
public bool TryAddSlotDef(EntityUid owner, InventorySlotsComponent component, SlotDefinition newSlotDef)
Parameters
Type Name Description
EntityUid owner
InventorySlotsComponent component
SlotDefinition newSlotDef
Returns
Type Description
System.Boolean
| Improve this Doc View Source

UIInventoryActivate(String)

Declaration
public void UIInventoryActivate(string slot)
Parameters
Type Name Description
System.String slot
| Improve this Doc View Source

UIInventoryActivateItem(String, EntityUid)

Declaration
public void UIInventoryActivateItem(string slot, EntityUid uid)
Parameters
Type Name Description
System.String slot
EntityUid uid
| Improve this Doc View Source

UIInventoryAltActivateItem(String, EntityUid)

Declaration
public void UIInventoryAltActivateItem(string slot, EntityUid uid)
Parameters
Type Name Description
System.String slot
EntityUid uid
| Improve this Doc View Source

UIInventoryExamine(String, EntityUid)

Declaration
public void UIInventoryExamine(string slot, EntityUid uid)
Parameters
Type Name Description
System.String slot
EntityUid uid
| Improve this Doc View Source

UIInventoryOpenContextMenu(String, EntityUid)

Declaration
public void UIInventoryOpenContextMenu(string slot, EntityUid uid)
Parameters
Type Name Description
System.String slot
EntityUid uid
| Improve this Doc View Source

UIInventoryStorageActivate(String)

Declaration
public void UIInventoryStorageActivate(string slot)
Parameters
Type Name Description
System.String slot
| Improve this Doc View Source

Update(Single)

Declaration
public override void Update(float frameTime)
Parameters
Type Name Description
System.Single frameTime
| Improve this Doc View Source

UpdateSlot(EntityUid, InventorySlotsComponent, String, Nullable<Boolean>, Nullable<Boolean>)

Declaration
public void UpdateSlot(EntityUid owner, InventorySlotsComponent component, string slotName, bool? blocked = null, bool? highlight = null)
Parameters
Type Name Description
EntityUid owner
InventorySlotsComponent component
System.String slotName
System.Nullable<System.Boolean> blocked
System.Nullable<System.Boolean> highlight
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾