Class SharedItemSystem
Inheritance
System.Object
SharedItemSystem
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
|
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
|
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 |
|