mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 11:40:52 +01:00
19 lines
559 B
C#
19 lines
559 B
C#
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Robust.Server.GameObjects;
|
|
|
|
public sealed class AppearanceSystem : SharedAppearanceSystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<ServerAppearanceComponent, ComponentGetState>(OnAppearanceGetState);
|
|
}
|
|
|
|
private static void OnAppearanceGetState(EntityUid uid, ServerAppearanceComponent component, ref ComponentGetState args)
|
|
{
|
|
args.State = new AppearanceComponentState(component.AppearanceData);
|
|
}
|
|
}
|