2019-09-03 22:51:19 +02:00
|
|
|
using System;
|
|
|
|
|
using Robust.Shared.GameObjects;
|
2021-07-12 01:32:10 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2019-09-03 22:51:19 +02:00
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Shared.Research.Components
|
2019-09-03 22:51:19 +02:00
|
|
|
{
|
2021-07-12 01:32:10 -07:00
|
|
|
[NetworkedComponent()]
|
2022-02-16 00:23:23 -07:00
|
|
|
[Virtual]
|
2019-09-03 22:51:19 +02:00
|
|
|
public class SharedResearchConsoleComponent : Component
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[NetSerializable, Serializable]
|
|
|
|
|
public enum ResearchConsoleUiKey
|
|
|
|
|
{
|
|
|
|
|
Key,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ConsoleUnlockTechnologyMessage : BoundUserInterfaceMessage
|
2019-09-03 22:51:19 +02:00
|
|
|
{
|
|
|
|
|
public string Id;
|
2021-03-10 14:48:29 +01:00
|
|
|
|
2019-09-03 22:51:19 +02:00
|
|
|
public ConsoleUnlockTechnologyMessage(string id)
|
|
|
|
|
{
|
|
|
|
|
Id = id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ConsoleServerSyncMessage : BoundUserInterfaceMessage
|
2019-09-03 22:51:19 +02:00
|
|
|
{
|
|
|
|
|
public ConsoleServerSyncMessage()
|
|
|
|
|
{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ConsoleServerSelectionMessage : BoundUserInterfaceMessage
|
2019-09-03 22:51:19 +02:00
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|