UNPKG

camelot-unchained

Version:
33 lines (25 loc) 724 B
/** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import ConfigVar from './ConfigVar'; import configCategory from './configCategory'; import KeyBind from './KeyBind'; class KeyBindConfigVar extends ConfigVar { public _value: KeyBind; get value ():KeyBind { return this._value; } set value (v: KeyBind) { this._value = v; } constructor(config:KeyBindConfigVar = <KeyBindConfigVar>{}) { super(<ConfigVar>config); } public create() { let c = new KeyBindConfigVar(); return c; } } export default KeyBindConfigVar;