Summary
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.
Constructors
Fields
Actions |
The actual collection of binds. |
Properties
Base |
The base collection. Game binds have this set to the common binds. |
CollectionName |
Will be either "common" or the ident of the current game. |
ConfigPath |
The location of the config file to load from in EngineFileSystem.Config |
Methods
Get |
Get the bind value at this slot |
GetBind |
Get the bind, create if it doesn't exist |
SaveToDisk |
Save the collection to disk |
Set |
Set the bind value for this action. This will overwrite what's in this slot. |