Exemplo n.º 1
0
        public void SendLogInInfoToPlayer(NetPeer netConnection, string playerName, Faction[] factions)
        {
            LoginPacket   packet = new LoginPacket(playerName, factions);
            NetDataWriter msg    = new NetDataWriter();

            packet.Encode(msg);
            SendMessageToConnection(netConnection, msg);
        }
Exemplo n.º 2
0
 public void SendPacket(LoginPacket packet)
 {
     if (Block)
     {
         return;
     }
     packet.Connection = this;
     byte[] buf = packet.Encode();
     _session.SendPacket(buf);
 }
 public void SendPacket(LoginPacket packet)
 {
     SendPacket(packet.Encode());
 }