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 SourceHasItemInside(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 |
Initialize()
Declaration
public override void Initialize()
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 |
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 |