import { _decorator, Component } from 'cc';
import { GameConfig } from './GameConfig';
import { GameMode } from './GameMode';
import { GameState } from './GameState';
import { SocketPlayer } from './SocketPlayer';
const { ccclass, property } = _decorator;

@ccclass('GameManager')
export class GameManager extends Component {
    @property({type: GameConfig})
    public config: GameConfig;
    @property({type: GameMode})
    public mode: GameMode;
    @property({type: GameState})
    public state: GameState;

    public socketPlayer: SocketPlayer;

    protected onLoad(): void {
        window.gm = this;
    }
}
