Show / Hide Table of Contents

Class SharedItemSystem

Inheritance
System.Object
SharedItemSystem
ItemSystem
ItemSystem
Namespace: Content.Shared.Item
Assembly: Content.Shared.dll
Syntax
public abstract class SharedItemSystem : EntitySystem

Fields

| Improve this Doc View Source

Container

Declaration
protected readonly SharedContainerSystem Container
Field Value
Type Description
Robust.Shared.Containers.SharedContainerSystem

Methods

| Improve this Doc View Source

CopyVisuals(EntityUid, ItemComponent, ItemComponent)

Copy all item specific visuals from another item.

Declaration
public void CopyVisuals(EntityUid uid, ItemComponent otherItem, ItemComponent item = null)
Parameters
Type Name Description
EntityUid uid
ItemComponent otherItem
ItemComponent item
| Improve this Doc View Source

Initialize()

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

OnStackCountChanged(EntityUid, ItemComponent, StackCountChangedEvent)

Declaration
protected virtual void OnStackCountChanged(EntityUid uid, ItemComponent component, StackCountChangedEvent args)
Parameters
Type Name Description
EntityUid uid
ItemComponent component
StackCountChangedEvent args
| Improve this Doc View Source

SetHeldPrefix(EntityUid, Nullable<String>, ItemComponent)

Declaration
public void SetHeldPrefix(EntityUid uid, string? heldPrefix, ItemComponent component = null)
Parameters
Type Name Description
EntityUid uid
System.Nullable<System.String> heldPrefix
ItemComponent component
| Improve this Doc View Source

SetSize(EntityUid, Int32, ItemComponent)

Declaration
public void SetSize(EntityUid uid, int size, ItemComponent component = null)
Parameters
Type Name Description
EntityUid uid
System.Int32 size
ItemComponent component
| Improve this Doc View Source

VisualsChanged(EntityUid)

Notifies any entity that is holding or wearing this item that they may need to update their sprite.

Declaration
public virtual void VisualsChanged(EntityUid owner)
Parameters
Type Name Description
EntityUid owner
Remarks

This is used for updating both inhand sprites and clothing sprites, but it's here just cause it needs to be in one place.

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾