Esempio n. 1
0
        protected virtual void Area_OnClientEnterZoneNotify(ClientEnterZoneNotify notify)
        {
            if (!IsDelayReleaseBattleClient && current_battle != null)
            {
                current_battle.Dispose();
                current_battle = null;
            }
            log.Info("ClientEnterZoneNotify : " + notify);
            var battle = CreateBattle(notify);

            battle.Layer.ActorAdded += Layer_ActorAdded;

            if (current_battle == null || !IsDelayReleaseBattleClient)
            {
                current_battle = battle;
            }
            else
            {
                next_battle = battle;
            }
            if (event_OnZoneChanged != null)
            {
                event_OnZoneChanged(battle);
            }
        }
Esempio n. 2
0
 protected virtual RPGBattleClient CreateBattle(ClientEnterZoneNotify sd)
 {
     return(new RPGBattleClient(this, sd));
 }