ECS and bandaid research (#9251)
This commit is contained in:
@@ -1,54 +1,47 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Research.Components
|
||||
{
|
||||
[NetworkedComponent()]
|
||||
[Virtual]
|
||||
public class SharedResearchConsoleComponent : Component
|
||||
[NetSerializable, Serializable]
|
||||
public enum ResearchConsoleUiKey : byte
|
||||
{
|
||||
Key,
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public enum ResearchConsoleUiKey
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConsoleUnlockTechnologyMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public string Id;
|
||||
|
||||
public ConsoleUnlockTechnologyMessage(string id)
|
||||
{
|
||||
Key,
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConsoleUnlockTechnologyMessage : BoundUserInterfaceMessage
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConsoleServerSyncMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public ConsoleServerSyncMessage()
|
||||
{}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConsoleServerSelectionMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public ConsoleServerSelectionMessage()
|
||||
{}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ResearchConsoleBoundInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public int Points;
|
||||
public int PointsPerSecond;
|
||||
public ResearchConsoleBoundInterfaceState(int points, int pointsPerSecond)
|
||||
{
|
||||
public string Id;
|
||||
|
||||
public ConsoleUnlockTechnologyMessage(string id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConsoleServerSyncMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public ConsoleServerSyncMessage()
|
||||
{}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ConsoleServerSelectionMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public ConsoleServerSelectionMessage()
|
||||
{}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ResearchConsoleBoundInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public int Points;
|
||||
public int PointsPerSecond;
|
||||
public ResearchConsoleBoundInterfaceState(int points, int pointsPerSecond)
|
||||
{
|
||||
Points = points;
|
||||
PointsPerSecond = pointsPerSecond;
|
||||
}
|
||||
Points = points;
|
||||
PointsPerSecond = pointsPerSecond;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user