Show / Hide Table of Contents

Class SecretStashSystem

Inheritance
System.Object
SecretStashSystem
Namespace: Content.Server.Storage.EntitySystems
Assembly: Content.Server.dll
Syntax
public sealed class SecretStashSystem : EntitySystem

Methods

| Improve this Doc View Source

HasItemInside(EntityUid, SecretStashComponent)

Is there something inside secret stash item container?

Declaration
public bool HasItemInside(EntityUid uid, SecretStashComponent component = null)
Parameters
Type Name Description
EntityUid uid
SecretStashComponent component
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Initialize()

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

TryGetItem(EntityUid, EntityUid, SecretStashComponent, HandsComponent)

Try get item and place it in users hand. If user can't take it by hands, will drop item from container.

Declaration
public bool TryGetItem(EntityUid uid, EntityUid userUid, SecretStashComponent component = null, HandsComponent hands = null)
Parameters
Type Name Description
EntityUid uid
EntityUid userUid
SecretStashComponent component
HandsComponent hands
Returns
Type Description
System.Boolean

True if user received item

| Improve this Doc View Source

TryHideItem(EntityUid, EntityUid, EntityUid, SecretStashComponent, ItemComponent, HandsComponent)

Tries to hide item inside secret stash from hands of user.

Declaration
public bool TryHideItem(EntityUid uid, EntityUid userUid, EntityUid itemToHideUid, SecretStashComponent component = null, ItemComponent item = null, HandsComponent hands = null)
Parameters
Type Name Description
EntityUid uid
EntityUid userUid
EntityUid itemToHideUid
SecretStashComponent component
ItemComponent item
HandsComponent hands
Returns
Type Description
System.Boolean

True if item was hidden inside stash

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