コード例 #1
0
        public override void OnRead(RiftClient From)
        {
            Realm Rm = Program.AcctMgr.GetRealm((int)RealmId);
            if (Rm != null)
                From.Rm = Rm;

            if (From.Rm == null)
            {
                Log.Error("WorldSelectRequest", "Realm null : " + From.GetIp);
                From.Disconnect();
                return;
            }

            LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();
            From.SendSerialized(Rp);
        }
コード例 #2
0
        public override void OnRead(RiftClient From)
        {
            Realm Rm = CharacterMgr.Instance.GetRealm((int)RealmId);

            if (Rm != null)
                From.Realm = Rm;

            if (From.Realm == null)
            {
                Log.Error("LobbyWorldSelectRequest", "Invalid RealmId=" + RealmId);
                From.Disconnect();
            }
            else
            {
                LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();
                From.SendSerialized(Rp);
            }
        }
コード例 #3
0
        public override void OnRead(RiftClient From)
        {
            Realm Rm = Program.AcctMgr.GetRealm((int)RealmId);

            if (Rm != null)
            {
                From.Rm = Rm;
            }

            if (From.Rm == null)
            {
                Log.Error("WorldSelectRequest", "Realm null : " + From.GetIp);
                From.Disconnect();
                return;
            }

            LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();

            From.SendSerialized(Rp);
        }
コード例 #4
0
        public override void OnRead(RiftClient From)
        {
            Realm Rm = CharacterMgr.Instance.GetRealm((int)RealmId);

            if (Rm != null)
            {
                From.Realm = Rm;
            }

            if (From.Realm == null)
            {
                Log.Error("LobbyWorldSelectRequest", "Invalid RealmId=" + RealmId);
                From.Disconnect();
            }
            else
            {
                LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();
                From.SendSerialized(Rp);
            }
        }