示例#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);
        }
示例#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);
 }