예제 #1
0
        private void _ToSurvival()
        {
            var status = new ControlStatus(_Binder, _Player, _Map);

            status.StunEvent += _ToStun;
            _Machine.Push(status);
        }
예제 #2
0
    private void _ToVerify()
    {
        var stage = new Assets.ConnectStage(IPAddress, Port, Target.User.Remoting.ConnectProvider);

        stage.SuccessEvent += _ConnectSuccess;
        _Machine.Push(stage);
    }
예제 #3
0
    public void Verify()
    {
        var stage = new DisconnectStage(_User.Remoting.OnlineProvider);

        stage.DoneEvent += _ToConnect;

        _Machine.Push(stage);
    }
예제 #4
0
    private void _ToInput()
    {
        var stage = new AdsorptionWindowCreate();

        _Drawer          = stage;
        stage.DoneEvent += _ToWatingCompile;
        _Machine.Push(stage);
    }
예제 #5
0
    private void _ToDisconnect()
    {
        var stage = new DisconnectStage(_User.Remoting.OnlineProvider);

        stage.DoneEvent += _ToConnect;

        _Machine.Push(stage);
    }
예제 #6
0
        private void _ReadHead()
        {
            var readHead = new SocketHeadReader(_Peer);

            ISocketReader reader = readHead;

            reader.DoneEvent  += _ReadBody;
            reader.ErrorEvent += ErrorEvent;
            _Machine.Push(readHead);
            readHead.Read();
        }
예제 #7
0
        private void _ToGame(IMapFinder map)
        {
            var stage = new GameStage(_Wisdom.GetSoulBinder(), map, _Gate, _Actor, _Wisdom);

            stage.ExitEvent     += _ToDone;
            stage.TransmitEvent += (target) => { };
            _Machine.Push(stage);
        }
예제 #8
0
 public void ToSendString()
 {
     _SendMachine.Push(new SendStringStage(_Id, _Peer, _Viewer, _Command));
 }
예제 #9
0
        public void ToReceoveContinuousNumber()
        {
            var stage = new ReceiveContinuousNumberStage(_Id, _Peer, _Viewer);

            _ReceiveMachine.Push(stage);
        }