Some work on the mess that is this power code.

Jesus.

Tons of fixes, refactors and other things.
The powernet's code is still awful though.
This commit is contained in:
Pieter-Jan Briers
2018-05-27 16:44:50 +02:00
parent f1ec10e3e1
commit 147aad5064
24 changed files with 444 additions and 172 deletions

View File

@@ -0,0 +1,24 @@
using System;
using SS14.Shared.GameObjects;
using SS14.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Power
{
public class SharedPowerDebugTool : Component
{
public override string Name => "PowerDebugTool";
public override uint? NetID => ContentNetIDs.POWER_DEBUG_TOOL;
[Serializable, NetSerializable]
protected class OpenDataWindowMsg : ComponentMessage
{
public string Data { get; }
public OpenDataWindowMsg(string data)
{
Directed = true;
Data = data;
}
}
}
}

View File

@@ -9,5 +9,6 @@
public const uint HANDS = 1003;
public const uint STORAGE = 1005;
public const uint INVENTORY = 1006;
public const uint POWER_DEBUG_TOOL = 1007;
}
}