Ejemplo n.º 1
0
 public Agent(IProtocol protocol, Regulus.Network.IConnectProviderable client)
 {
     _Serializer     = protocol.GetSerialize();
     _Machine        = new StageMachine();
     _Core           = new AgentCore(protocol);
     connectproivder = client;
 }
Ejemplo n.º 2
0
        public User(
            ISoulBinder binder,
            IAccountFinder account_finder,
            IFishStageQueryer queryer,
            IGameRecorder game_record_handler,
            ITradeNotes trade_account)
        {
            _Machine = new StageMachine();

            _Binder           = binder;
            _AccountFinder    = account_finder;
            _FishStageQueryer = queryer;
            var locks = new[]
            {
                new StageLock
                {
                    KillCount = 200,
                    Stage     = 3
                }
            };

            _StageTicketInspector = new StageTicketInspector(new StageGate(locks));

            _GameRecorder = game_record_handler;

            _TradeAccount = trade_account;
        }
Ejemplo n.º 3
0
        void IBootable.Launch()
        {
            _Runable = true;

            _StageMachine = _CreateStage();

            _Launch(_Loops);
        }
Ejemplo n.º 4
0
        private User(ISoulBinder binder)
        {
            _Machine = new StageMachine();
            _Binder = binder;

            _Version = typeof(IVerify).Assembly.GetName()
                                    .Version.ToString();
        }
Ejemplo n.º 5
0
        void IStage.Enter()
        {
            _Binder.Bind<IFishStageQueryer>(this);

            OnDoneEvent += OnDoneEvent;

            _StageMachine = new StageMachine();
        }
 public ControlStatus(ISoulBinder binder, Entity player, IMapFinder map)
 {
     _Binder      = binder;
     _Player      = player;
     _Map         = map;
     _Status      = new StageMachine();
     _TimeCounter = new TimeCounter();
 }
Ejemplo n.º 7
0
        private Socket(Line Line)
        {
            _SendTasks = new ConcurrentQueue <Task>();
            _ReadTask  = new Task();

            m_Line    = Line;
            m_Machine = new StageMachine <Timestamp>();
        }
Ejemplo n.º 8
0
 public User(IAgent agent)
 {
     _Agent           = agent;
     _ConnectProvider = new TProvider <IConnect>();
     _OnlineProvider  = new TProvider <IOnline>();
     _Machine         = new StageMachine();
     _Updater         = new Updater();
 }
Ejemplo n.º 9
0
        void IStage.Leave()
        {
            _Binder.Unbind <IFishStageQueryer>(this);

            _StageMachine.Termination();
            _StageMachine = null;

            OnDoneEvent.Invoke();
        }
Ejemplo n.º 10
0
        void IStage.Leave()
        {
            _Binder.Unbind<IFishStageQueryer>(this);

            _StageMachine.Termination();
            _StageMachine = null;

            OnDoneEvent.Invoke();
        }
Ejemplo n.º 11
0
        public Client(Console.IViewer view, Command command)
        {
            Enable   = true;
            _Machine = new StageMachine();

            _View    = view;
            _Command = command;
            Selector = new GameModeSelector <TUser>(_Command, _View);
        }
Ejemplo n.º 12
0
        public User(ISoulBinder binder, GameLobby game_lobby)
        {
            _Binder    = binder;
            _GameLobby = game_lobby;

            _Machine = new StageMachine();

            Position = new PlayerPosition();
        }
Ejemplo n.º 13
0
		public User(ISoulBinder binder, GameLobby game_lobby)
		{
			_Binder = binder;
			_GameLobby = game_lobby;

			_Machine = new StageMachine();

			Position = new PlayerPosition();
        }
Ejemplo n.º 14
0
        public User(ISoulBinder binder, IAccountFinder account_finder, IGameRecorder game_record_handler, Zone zone)
        {
            this._Machine = new StageMachine();

            this._Binder        = binder;
            this._AccountFinder = account_finder;
            this._GameRecorder  = game_record_handler;
            this._Zone          = zone;
            _Version            = "0.0.0.0";
        }
Ejemplo n.º 15
0
        private StageMachine _CreateStage()
        {
            var stageMachine = new StageMachine();
            var sss          = new StageSelectSystem(_Viewer, _ControllerProvider(), Command);

            sss.SelectSystemEvent += SelectSystemEvent;
            sss.SelectedEvent     += _OnSelectedSystem;
            stageMachine.Push(sss);
            return(stageMachine);
        }
Ejemplo n.º 16
0
        private StageMachine _CreateStage()
        {
            var stageMachine = new StageMachine();

            var stage = new StageLoadFarmData(_ExpansionFeature.FormulaFarmRecorder);

            stage.OnDoneEvent += _StageLoadFinish;

            stageMachine.Push(stage);

            return(stageMachine);
        }
Ejemplo n.º 17
0
        private void _Stop()
        {
            _Runable = false;
            _Loops.Shutdown();
            _StageMachine.Termination();
            _Loops = null;

            _StageMachine = null;
            _Viewer       = null;
            _Input        = null;
            _Console      = null;
        }
Ejemplo n.º 18
0
        private void _ToOnline(StageMachine machine, IPeer peer)
        {
            var onlineStage = new OnlineStage(peer, _Core, _Serializer);

            onlineStage.DoneFromServerEvent += () =>
            {
                _ToTermination();
                if (_BreakEvent != null)
                {
                    _BreakEvent();
                }
            };

            machine.Push(onlineStage);
        }
Ejemplo n.º 19
0
        public User(ISoulBinder binder, IAccountFinder account_finder, IFishStageQueryer queryer, IGameRecorder game_record_handler, ITradeNotes trade_account)
        {
            _Machine = new StageMachine();

            _Binder = binder;
            _AccountFinder = account_finder;
            _FishStageQueryer = queryer;
            var locks = new[]
            {
                new StageLock
                {
                    KillCount = 200,
                    Stage = 3
                }
            };
            _StageTicketInspector = new StageTicketInspector(new StageGate(locks));

            _GameRecorder = game_record_handler;

            _TradeAccount = trade_account;
        }
Ejemplo n.º 20
0
 private User(ISoulBinder binder)
 {
     _Machine = new StageMachine();
     _Binder  = binder;
 }
Ejemplo n.º 21
0
 public Server()
 {
     _Machine = new StageMachine();
     _Updater = new Updater();
 }
Ejemplo n.º 22
0
        void IStage.Enter()
        {
            OnDoneEvent += OnDoneEvent;

            _StageMachine = _CreateStage();
        }
Ejemplo n.º 23
0
 public User(ISoulBinder binder, IStorage storage)
 {
     _Storage = storage;
     _Binder  = binder;
     _Machine = new StageMachine();
 }
Ejemplo n.º 24
0
 public User(ISoulBinder binder, IStorage storage)
 {
     this._Storage = storage;
     this._Binder  = binder;
     this._Machine = new StageMachine();
 }
Ejemplo n.º 25
0
 public PeerListener(Line Line)
 {
     m_Line    = Line;
     m_Machine = new StageMachine <Timestamp>();
 }
Ejemplo n.º 26
0
 protected override void _Launch()
 {
     _Machine = new StageMachine();
     _ToStart();
 }