コード例 #1
0
        public void SendToGame(int gameId, GSPacketIn pkg)
        {
            GSPacketIn wrapper = new GSPacketIn(2, gameId);

            wrapper.WritePacket(pkg);
            this.SendTCP(wrapper);
        }
コード例 #2
0
        public void SendPacketToPlayer(int playerId, GSPacketIn pkg)
        {
            GSPacketIn p = new GSPacketIn((byte)eFightPackageType.SEND_TO_USER, playerId);

            p.WritePacket(pkg);
            SendTCP(p);
        }
コード例 #3
0
        public void SendToGame(int gameId, GSPacketIn pkg)
        {
            GSPacketIn gSPacketIn = new GSPacketIn(2, gameId);

            gSPacketIn.WritePacket(pkg);
            this.SendTCP(gSPacketIn);
        }
コード例 #4
0
        public void SendToGame(int gameId, GSPacketIn pkg)
        {
            GSPacketIn wrapper = new GSPacketIn((int)eFightPackageType.SEND_TO_GAME, gameId);

            wrapper.WritePacket(pkg);
            SendTCP(wrapper);
        }
コード例 #5
0
        public void SendPacketToPlayer(int playerId, GSPacketIn pkg)
        {
            GSPacketIn gSPacketIn = new GSPacketIn(32, playerId);

            gSPacketIn.WritePacket(pkg);
            this.SendTCP(gSPacketIn);
        }
コード例 #6
0
        public void SendToGameAllPlayer(int gameId, IGamePlayer except, GSPacketIn content)
        {
            GSPacketIn pkg = new GSPacketIn(71, gameId);

            pkg.Parameter1 = ((except != null) ? except.GamePlayerId : -1);
            pkg.WritePacket(content);
            this.SendTCP(pkg);
        }
コード例 #7
0
        public void SendPacketToPlayer(int playerId, GSPacketIn pkg, int gameId)
        {
            GSPacketIn p = new GSPacketIn(32, playerId);

            p.Parameter1 = gameId;
            p.WritePacket(pkg);
            this.SendTCP(p);
        }
コード例 #8
0
        public void SendToRoom(int roomId, GSPacketIn pkg, IGamePlayer except)
        {
            GSPacketIn p = new GSPacketIn((byte)eFightPackageType.SEND_TO_ROOM, roomId);

            if (except != null)
            {
                p.Parameter1 = except.PlayerCharacter.ID;
                p.Parameter2 = except.GamePlayerId;
            }
            else
            {
                p.Parameter1 = 0;
                p.Parameter2 = 0;
            }
            p.WritePacket(pkg);
            SendTCP(p);
        }
コード例 #9
0
        public void SendToRoom(int roomId, GSPacketIn pkg, IGamePlayer except)
        {
            GSPacketIn p = new GSPacketIn(67, roomId);

            if (except != null)
            {
                p.Parameter1 = except.PlayerCharacter.ID;
                p.Parameter2 = except.GamePlayerId;
            }
            else
            {
                p.Parameter1 = 0;
                p.Parameter2 = 0;
            }
            p.WritePacket(pkg);
            this.SendTCP(p);
        }