Beispiel #1
0
        public void SendTag(TeamPlayerId teamPlayerId, int damage)
        {
            var signature = PacketPacker.Tag(teamPlayerId, damage);

            TransmitSignature(signature);
            Log.Add(Log.Severity.Information, "Shot {0} tags as player {1}.", damage, teamPlayerId);
        }
Beispiel #2
0
        public void SendRequestJoinGame(byte gameId, int preferredTeamNumber)
        {
            var taggerId = new RandomId();
            var packet   = PacketPacker.RequestJoinGame(gameId, taggerId, preferredTeamNumber);

            TransmitPacket(packet);
            Log.Add(Log.Severity.Information,
                    "Sending request to join game 0x{0:X2} with tagger ID 0x{1:X2}. Requesting team {2}", gameId, taggerId,
                    preferredTeamNumber);
        }
Beispiel #3
0
        public void SendTextMessage(string message)
        {
            var packet = PacketPacker.TextMessage(message);

            TransmitPacket(packet);
        }