Exemplo n.º 1
0
    public void SendAIDetect(int zombieID, Types.PlayerType type)
    {
        NetworkPacket packet = new NetworkPacket(12);

        packet.WriteInt((int)Messages.ClientPackets.AI_DETECTED_PLAYER);
        packet.WriteInt(zombieID);
        packet.WriteInt((int)type);
        Send(packet.ToArray());
    }
Exemplo n.º 2
0
 public static PlayerType ToPlayerType(this Types.PlayerType playerType)
 {
     return((PlayerType)(int)playerType);
 }