Input Refactor (#72)

This commit is contained in:
Pieter-Jan Briers
2018-05-27 10:13:33 +02:00
committed by GitHub
parent b13d100107
commit f1ec10e3e1
7 changed files with 81 additions and 45 deletions

View File

@@ -98,6 +98,7 @@
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<Compile Include="Input\ContentKeyFunctions.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>

View File

@@ -13,7 +13,7 @@ namespace Content.Shared.GameObjects
}
// The IDs of the items get synced over the network.
[Serializable]
[Serializable, NetSerializable]
public class HandsComponentState : ComponentState
{
public readonly Dictionary<string, EntityUid> Hands;

View File

@@ -0,0 +1,13 @@
using SS14.Shared.Input;
namespace Content.Shared.Input
{
[KeyFunctions]
public static class ContentKeyFunctions
{
public static readonly BoundKeyFunction SwapHands = "SwapHands";
public static readonly BoundKeyFunction Drop = "Drop";
public static readonly BoundKeyFunction ActivateItemInHand = "ActivateItemInHand";
public static readonly BoundKeyFunction OpenCharacterMenu = "OpenCharacterMenu";
}
}