Show / Hide Table of Contents

Class LightReplacerSystem

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

Methods

| Improve this Doc View Source

Initialize()

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

TryInsertBulb(EntityUid, EntityUid, Nullable<EntityUid>, Boolean, LightReplacerComponent, LightBulbComponent)

Try to insert a new bulb inside light replacer

Declaration
public bool TryInsertBulb(EntityUid replacerUid, EntityUid bulbUid, EntityUid? userUid = null, bool showTooltip = false, LightReplacerComponent replacer = null, LightBulbComponent bulb = null)
Parameters
Type Name Description
EntityUid replacerUid
EntityUid bulbUid
System.Nullable<EntityUid> userUid
System.Boolean showTooltip
LightReplacerComponent replacer
LightBulbComponent bulb
Returns
Type Description
System.Boolean

True if successfully inserted light, false otherwise

| Improve this Doc View Source

TryInsertBulbsFromStorage(EntityUid, EntityUid, Nullable<EntityUid>, LightReplacerComponent, StorageComponent)

Try to insert all light bulbs from storage (for example light tubes box)

Declaration
public bool TryInsertBulbsFromStorage(EntityUid replacerUid, EntityUid storageUid, EntityUid? userUid = null, LightReplacerComponent replacer = null, StorageComponent storage = null)
Parameters
Type Name Description
EntityUid replacerUid
EntityUid storageUid
System.Nullable<EntityUid> userUid
LightReplacerComponent replacer
StorageComponent storage
Returns
Type Description
System.Boolean

Returns true if storage contained at least one light bulb which was successfully inserted inside light replacer

| Improve this Doc View Source

TryReplaceBulb(EntityUid, EntityUid, Nullable<EntityUid>, LightReplacerComponent, PoweredLightComponent)

Try to replace a light bulb in fixtureUid using light replacer. Light fixture should have PoweredLightComponent.

Declaration
public bool TryReplaceBulb(EntityUid replacerUid, EntityUid fixtureUid, EntityUid? userUid = null, LightReplacerComponent replacer = null, PoweredLightComponent fixture = null)
Parameters
Type Name Description
EntityUid replacerUid
EntityUid fixtureUid
System.Nullable<EntityUid> userUid
LightReplacerComponent replacer
PoweredLightComponent fixture
Returns
Type Description
System.Boolean

True if successfully replaced light, false otherwise

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