Class RespawnRuleSystem
This handles logic and interactions related to RespawnDeadRuleComponent
Namespace: Content.Server.GameTicking.Rules
Assembly: Content.Server.dll
Syntax
public sealed class RespawnRuleSystem : GameRuleSystem<RespawnDeadRuleComponent>
Methods
| Improve this Doc View SourceAddToTracker(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 |
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 |
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 |
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)