protected override void OnSerialize(NetBuffer buffer)
        {
            buffer.Write((ushort)bullets.Count);

            for (int i = 0; i < bullets.Count; i++)
            {
                NetworkBullet bullet = bullets[i];
                buffer.Write(bullet.Origin.X);
                buffer.Write(bullet.Origin.Y);
                buffer.Write(bullet.Origin.Z);
                buffer.Write(bullet.CameraYaw);
                buffer.Write(bullet.CameraPitch);
                buffer.Write((ushort)(Environment.TickCount - bullet.Ticks));
            }

            bullets.Clear();
        }
 public void EnqueueBullet(NetworkBullet bullet)
 {
     bullets.Add(bullet);
 }