Ejemplo n.º 1
0
        public static NavFlagCircle ReadNavFlagCircle(this ByteReader reader)
        {
            var data = new NavFlagCircle();

            data.Position = reader.ReadVector2();
            data.Radius   = reader.ReadFloat();
            data.Flags    = reader.ReadUInt32();
            return(data);
        }
Ejemplo n.º 2
0
 public static void WriteNavFlagCircle(this ByteWriter writer, NavFlagCircle data)
 {
     if (data == null)
     {
         data = new NavFlagCircle();
     }
     writer.WriteVector2(data.Position);
     writer.WriteFloat(data.Radius);
     writer.WriteUInt32(data.Flags);
 }