mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 18:47:10 +02:00
33 lines
539 B
C#
33 lines
539 B
C#
using Robust.Shared.Serialization;
|
|
using System;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
|
|
[Serializable, NetSerializable]
|
|
public abstract class ComponentState
|
|
{
|
|
|
|
public abstract uint NetID { get; }
|
|
|
|
protected ComponentState()
|
|
{
|
|
}
|
|
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
internal sealed class NetIdComponentState : ComponentState
|
|
{
|
|
|
|
public override uint NetID { get; }
|
|
|
|
public NetIdComponentState(uint netId)
|
|
{
|
|
NetID = netId;
|
|
}
|
|
|
|
}
|
|
|
|
}
|