Class StealthClothingSystem
Handles the toggle action and disables stealth when clothing is unequipped.
Inheritance
System.Object
StealthClothingSystem
Namespace: Content.Shared.Clothing.EntitySystems
Assembly: Content.Shared.dll
Syntax
public sealed class StealthClothingSystem : EntitySystem
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
SetEnabled(EntityUid, EntityUid, Boolean, StealthClothingComponent)
Sets the clothing's stealth effect for the user.
Declaration
public bool SetEnabled(EntityUid uid, EntityUid user, bool enabled, StealthClothingComponent comp = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
EntityUid | user | |
System.Boolean | enabled | |
StealthClothingComponent | comp |
Returns
Type | Description |
---|---|
System.Boolean | True if it was changed, false otherwise |