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:
@@ -72,6 +72,7 @@
|
||||
<Compile Include="GameObjects\PhysicalConstants.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="GameObjects\Components\Items\SharedHandsComponent.cs" />
|
||||
<Compile Include="GameObjects\Components\Power\SharedPowerDebugTool.cs" />
|
||||
<Compile Include="Maths\PhysicalConstants.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -101,4 +102,4 @@
|
||||
<Compile Include="Input\ContentKeyFunctions.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -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