Remove misc Startup/Shutdown overrides (#8113)

Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
ike709
2022-05-12 06:11:50 -05:00
committed by GitHub
parent 834e29d76a
commit a9c18acd35
7 changed files with 58 additions and 50 deletions

View File

@@ -7,6 +7,7 @@ using Robust.Shared.Localization;
namespace Content.Server.Ghost.Roles.Components
{
[Friend(typeof(GhostRoleSystem))]
public abstract class GhostRoleComponent : Component
{
[DataField("name")] public string _roleName = "Unknown";
@@ -69,21 +70,6 @@ namespace Content.Server.Ghost.Roles.Components
[DataField("reregister")]
public bool ReregisterOnGhost { get; set; } = true;
protected override void Initialize()
{
base.Initialize();
if (_roleRules == "")
_roleRules = Loc.GetString("ghost-role-component-default-rules");
EntitySystem.Get<GhostRoleSystem>().RegisterGhostRole(this);
}
protected override void Shutdown()
{
base.Shutdown();
EntitySystem.Get<GhostRoleSystem>().UnregisterGhostRole(this);
}
public abstract bool Take(IPlayerSession session);
}
}