Ejemplo n.º 1
0
        protected void LoadMapScripts()
        {
            DicMapEvent = new Dictionary <string, MapEvent>();
            DicMapEvent.Add(EventTypeGame, new BattleEvent(EventTypeGame, new string[] { "Game Start" }));
            DicMapEvent.Add(EventTypePhase, new BattleEvent(EventTypePhase, new string[] { "Phase Start" }));
            DicMapEvent.Add(EventTypeTurn, new BattleEvent(EventTypeTurn, new string[] { "Turn Start" }));
            DicMapEvent.Add(EventTypeUnitMoved, new BattleEvent(EventTypeUnitMoved, new string[] { "Unit Moved" }));
            DicMapEvent.Add(EventTypeOnBattle, new BattleEvent(EventTypeOnBattle, new string[] { "Battle Start", "Battle End" }));

            DicMapCondition = MapScript.LoadConditions <BattleCondition>(this);
            DicMapTrigger   = MapScript.LoadTriggers <BattleTrigger>(this);
        }