Exemplo n.º 1
0
        public static void Broadcast(GunAnimationType animType)
        {
            if (Main.netMode != 1)
            {
                throw new ModLibsException("Not a client.");
            }

            var packet = new GunAnimationPacket(Main.myPlayer, animType);

            SimplePacket.SendToServer(packet);
        }