mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using Robust.Shared.Input;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Robust.Client.Input
|
|
{
|
|
public struct KeyBindingRegistration : IExposeData
|
|
{
|
|
public BoundKeyFunction Function;
|
|
public KeyBindingType Type;
|
|
public Keyboard.Key BaseKey;
|
|
public Keyboard.Key Mod1;
|
|
public Keyboard.Key Mod2;
|
|
public Keyboard.Key Mod3;
|
|
public int Priority;
|
|
public bool CanFocus;
|
|
public bool CanRepeat;
|
|
public bool AllowSubCombs;
|
|
|
|
void IExposeData.ExposeData(ObjectSerializer serializer)
|
|
{
|
|
serializer.DataField(ref Function, "function", default);
|
|
serializer.DataField(ref Type, "type", KeyBindingType.State);
|
|
serializer.DataField(ref BaseKey, "key", default);
|
|
serializer.DataField(ref Mod1, "mod1", default);
|
|
serializer.DataField(ref Mod2, "mod2", default);
|
|
serializer.DataField(ref Mod3, "mod3", default);
|
|
serializer.DataField(ref Priority, "priority", 0);
|
|
serializer.DataField(ref CanFocus, "canFocus", false);
|
|
serializer.DataField(ref CanRepeat, "canRepeat", false);
|
|
serializer.DataField(ref AllowSubCombs, "allowSubCombs", false);
|
|
}
|
|
}
|
|
}
|