﻿/// <reference path="../Model/CharacterModel.js" />
/// <reference path="../Model/SkillModel.js" />

var GameContext = {
    Game: {
        CurrentFPS: 0,
        ShowFPS: 0,
        CurrentSelectSkillGroup: { current: null },
        CurrentSelectCharacterGroup: { current: null },
        CurrentSelectButtonGroup: { current: null },
        CurrentCanvas: null,
        CurrentGameCenter: null,
        ClearSelect: function () {
            var toClear = ["CurrentSelectSkillGroup", "CurrentSelectCharacterGroup", "CurrentSelectButtonGroup"];
            for (var i = 0; i < toClear.length; i++) {
                GameContext.Game[toClear[i]].current = null;
            }
        },
        CurrentGameLevel: 1,
        CurrentBattleName: null,
        CurrentSaveSlot: 1
    },
    Context: {
        Handle: [],
        TempDraw: [],
        BattleStage: null,
        AdvanceStage: null,
        PlayerCharacters: [{ Character: null, stageX: 0, stageY: 0}]
    },
    Player: {
        PlayerLine: [
         ],
        TargetLine: [
         ]
    },
    Skill: {
        Left: [],
        Right: []
    },
    PassedLevels: []
}