namespace Sandbox; /// /// A class that holds all configured input settings for a game. /// This is serialized as a config and shared from the server to the client. /// [Expose] public class InputSettings : ConfigData { public InputSettings() { Actions = new List(); InitDefault(); } public void InitDefault() { Actions.Clear(); Actions.AddRange( Engine.Input.CommonInputs.Select( x => new InputAction( x ) ) ); } /// /// A list of actions used by the game. /// public List Actions { get; set; } }