class BindCollection

in global :: Sandbox . Engine

A collection of action binds. BindCollection - Action: attack1 - Slot0: mouse1 - Action: selectall - Slot0: ctrl + a The bind collection can be saved and loaded from disk via the BindSaveConfig class. The bind collection can have a base collection which it will fall back to if it contains the same binds. This allows us to have a "common" collection which can be shared between all games, but can also let the games + users to override those binds if they choose.


public BindCollection Base { get; set; }

The base collection. Game binds have this set to the common binds.

public string CollectionName { get; set; }

Will be either "common" or the ident of the current game.

public string ConfigPath { get; set; }

The location of the config file to load from in EngineFileSystem.Config

public CaseInsensitiveDictionary<BindCollection.ActionBind> Actions

The actual collection of binds.

public BindCollection( string name )

Creates a collection and tries to load it from disk.

public BindCollection.ActionBind GetBind( string actionName, bool create = True )

Get the bind, create if it doesn't exist

public BindCollection.ActionBind Set( string actionName, int slot, string buttonName )

Set the bind value for this action. This will overwrite what's in this slot.

public string Get( string actionName, int slot )

Get the bind value at this slot

public void SaveToDisk( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.