예제 #1
0
        public IncomingSubServerPeer(InitRequest initRequest, MasterApplication application)
            : base(initRequest.Protocol, initRequest.PhotonPeer)
        {
            this.application  = application;
            __unmanagedPeer__ = initRequest.PhotonPeer;

            this.ServerId = null;
        }
예제 #2
0
        public MasterClientPeer(InitRequest initRequest, MasterApplication application)
            : base(initRequest.Protocol, initRequest.PhotonPeer)
        {
            this.application = application;
            this.clientId    = Utils.NewGuidInt32();

            this.LoginData            = null;
            this.WorldServer          = null;
            this.CurrentState         = ClientPeerState.Connect;
            this.IsSafelyDisconnected = false;

            this.Application.MasterLobby.OnClientConnected(this);
#if MMO_DEBUG
            if (_logger.IsDebugEnabled)
            {
                _logger.DebugFormat("Client (Id={0}) Connected", clientId);
            }
#endif
        }