Show / Hide Table of Contents

Class RespawnRuleSystem

This handles logic and interactions related to RespawnDeadRuleComponent

Inheritance
System.Object
GameRuleSystem<RespawnDeadRuleComponent>
RespawnRuleSystem
Namespace: Content.Server.GameTicking.Rules
Assembly: Content.Server.dll
Syntax
public sealed class RespawnRuleSystem : GameRuleSystem<RespawnDeadRuleComponent>

Methods

| Improve this Doc View Source

AddToTracker(EntityUid, EntityUid, RespawnTrackerComponent, ActorComponent)

Adds a given player to the respawn tracker, ensuring that they are respawned if they die.

Declaration
public void AddToTracker(EntityUid player, EntityUid tracker, RespawnTrackerComponent component = null, ActorComponent actor = null)
Parameters
Type Name Description
EntityUid player
EntityUid tracker
RespawnTrackerComponent component
Robust.Server.GameObjects.ActorComponent actor
| Improve this Doc View Source

AddToTracker(NetUserId, EntityUid, RespawnTrackerComponent)

Adds a given player to the respawn tracker, ensuring that they are respawned if they die.

Declaration
public void AddToTracker(NetUserId id, EntityUid tracker, RespawnTrackerComponent component = null)
Parameters
Type Name Description
Robust.Shared.Network.NetUserId id
EntityUid tracker
RespawnTrackerComponent component
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<Content.Server.GameTicking.Rules.Components.RespawnDeadRuleComponent>.Initialize()
| Improve this Doc View Source

RespawnPlayer(EntityUid, EntityUid, RespawnTrackerComponent, ActorComponent)

Attempts to directly respawn a player, skipping the lobby screen.

Declaration
public bool RespawnPlayer(EntityUid player, EntityUid respawnTracker, RespawnTrackerComponent component = null, ActorComponent actor = null)
Parameters
Type Name Description
EntityUid player
EntityUid respawnTracker
RespawnTrackerComponent component
Robust.Server.GameObjects.ActorComponent actor
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Update(Single)

Declaration
public override void Update(float frameTime)
Parameters
Type Name Description
System.Single frameTime
Overrides
Content.Server.GameTicking.Rules.GameRuleSystem<Content.Server.GameTicking.Rules.Components.RespawnDeadRuleComponent>.Update(System.Single)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾