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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user