Class ClientInventorySystem
Inheritance
System.Object
ClientInventorySystem
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
|
Improve this Doc
View Source
OnLinkInventorySlots
Declaration
public Action<EntityUid, InventorySlotsComponent>? OnLinkInventorySlots
Field Value
|
Improve this Doc
View Source
OnSlotAdded
Declaration
public Action<ClientInventorySystem.SlotData>? OnSlotAdded
Field Value
|
Improve this Doc
View Source
OnSlotRemoved
Declaration
public Action<ClientInventorySystem.SlotData>? OnSlotRemoved
Field Value
|
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
|
Improve this Doc
View Source
OnInit(EntityUid, InventoryComponent, ComponentInit)
Declaration
protected override void OnInit(EntityUid uid, InventoryComponent component, ComponentInit args)
Parameters
|
Improve this Doc
View Source
ReloadInventory(InventorySlotsComponent)
Declaration
public void ReloadInventory(InventorySlotsComponent component = null)
Parameters
|
Improve this Doc
View Source
RemoveSlotDef(EntityUid, InventorySlotsComponent, ClientInventorySystem.SlotData)
Declaration
public void RemoveSlotDef(EntityUid owner, InventorySlotsComponent component, ClientInventorySystem.SlotData slotData)
Parameters
|
Improve this Doc
View Source
RemoveSlotDef(EntityUid, InventorySlotsComponent, String)
Declaration
public void RemoveSlotDef(EntityUid owner, InventorySlotsComponent component, string slotName)
Parameters
|
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
|
Improve this Doc
View Source
TryAddSlotDef(EntityUid, InventorySlotsComponent, SlotDefinition)
Declaration
public bool TryAddSlotDef(EntityUid owner, InventorySlotsComponent component, SlotDefinition newSlotDef)
Parameters
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
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 |
|