import { setMovementMode } from '@hiberworld/code-kit';
import { showAssetsBrowser } from './showAssetsBrowser';
/**
 * Add fly mode
 * @param  hs instance of CodeKit
 * @param  key optional, key to toggle fly mode with
 */
let flying = false;
let beenSetup = false;
export const toolSetup = () => {
    if (!beenSetup) {
        console.log(`V - Toggle fly mode
L - List assets and materials
  `);
        addEventListener('keydown', e => {
            if (e.code === 'KeyV') {
                setMovementMode(flying ? 'GROUNDED' : 'AIRWALK');
                flying = !flying;
            }
            if (e.code === 'KeyY') {
                showAssetsBrowser();
            }
        });
        beenSetup = true;
    }
};
//# sourceMappingURL=toolSetup.js.map