void _OnBattleResponse(Guid battler, IBattleAdmissionTickets battle_admission_tickets) { if (_Entity.Id == battler) { ToBattleStageEvent(battle_admission_tickets); } }
public Battle(IBattleAdmissionTickets battle_admission_tickets, ActorInfomation actor_infomation, Remoting.ISoulBinder binder, IStorage stroage) { _BattleAdmissionTickets = battle_admission_tickets; _ActorInfomation = actor_infomation; _Binder = binder; _Storage = stroage; }
void _ToBattle(IBattleAdmissionTickets battle_admission_tickets) { var stage = new Regulus.Project.Crystal.Game.Stage.Battle(battle_admission_tickets, _ActorInfomation, Binder, Storage); stage.EndEvent += () => { _ToAdventure(_ActorInfomation); }; _StageMachine.Push(stage); _StatusEvent(UserStatus.Battle); }