123456789101112131415161718192021222324252627282930313233343536373839 |
- 'use strict';
- const Constants = {
- // Server requests status
- request: {
- IDLE: 'idle',
- REQUESTED: 'requested',
- SUCCESS: 'success',
- ERROR: 'ERROR'
- },
- // Positions of heroes in game
- POS_PILE: 'pile',
- POS_HAND: 'hand',
- POS_DISCARD: 'discard',
- POS_CAMP: 'camp',
- POS_BATTLE_LEFT: 'battle_left',
- POS_BATTLE_CENTER: 'battle_center',
- POS_BATTLE_RIGHT: 'battle_right',
- // Possible hero actions in game
- HERO_RECRUIT: 'recruit',
- HERO_DEPLOY: 'deploy',
- HERO_MOVE: 'move',
- HERO_ABILITY: 'ability',
- HERO_DISMISS: 'dismiss',
- HERO_DISCARD: 'discard',
- // Possible actions for player in game
- PLAYER_SUPPLY: 'supply'
- };
- Constants.install = function(Vue) {
- Vue.prototype.$types = key => {
- return Constants[key];
- };
- };
- export default Constants;
|