# Sandbox.Engine.BindCollection

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.

- Kind: class
- Namespace: `Sandbox.Engine`
- Assembly: `Sandbox.Engine`

## Constructors

- [`BindCollection`](/api/Sandbox.Engine.BindCollection/.ctor): Creates a collection and tries to load it from disk.

## Fields

- [`Actions`](/api/Sandbox.Engine.BindCollection/Actions): The actual collection of binds.

## Properties

- [`Base`](/api/Sandbox.Engine.BindCollection/Base): The base collection. Game binds have this set to the common binds.
- [`CollectionName`](/api/Sandbox.Engine.BindCollection/CollectionName): Will be either "common" or the ident of the current game.
- [`ConfigPath`](/api/Sandbox.Engine.BindCollection/ConfigPath): The location of the config file to load from in EngineFileSystem.Config

## Methods

- [`Get`](/api/Sandbox.Engine.BindCollection/Get): Get the bind value at this slot
- [`GetBind`](/api/Sandbox.Engine.BindCollection/GetBind): Get the bind, create if it doesn't exist
- [`SaveToDisk`](/api/Sandbox.Engine.BindCollection/SaveToDisk): Save the collection to disk
- [`Set`](/api/Sandbox.Engine.BindCollection/Set): Set the bind value for this action. This will overwrite what's in this slot.
