Input Refactor (#72)
This commit is contained in:
committed by
GitHub
parent
b13d100107
commit
f1ec10e3e1
@@ -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>
|
||||
@@ -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;
|
||||
|
||||
13
Content.Shared/Input/ContentKeyFunctions.cs
Normal file
13
Content.Shared/Input/ContentKeyFunctions.cs
Normal 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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user