Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -5,7 +5,6 @@ using JetBrains.Annotations;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.GameStates;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Points;
|
||||
@@ -22,7 +21,6 @@ public sealed class PointSystem : SharedPointSystem
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<PointManagerComponent, ComponentStartup>(OnStartup);
|
||||
SubscribeLocalEvent<PointManagerComponent, ComponentGetState>(OnGetState);
|
||||
}
|
||||
|
||||
private void OnStartup(EntityUid uid, PointManagerComponent component, ComponentStartup args)
|
||||
@@ -30,11 +28,6 @@ public sealed class PointSystem : SharedPointSystem
|
||||
_pvsOverride.AddGlobalOverride(uid);
|
||||
}
|
||||
|
||||
private void OnGetState(EntityUid uid, PointManagerComponent component, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new PointManagerComponentState(component.Points, component.Scoreboard);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified point value to a player.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user