コード例 #1
0
        public static NavFlagCricle ReadNavFlagCricle(this ByteReader reader)
        {
            var data = new NavFlagCricle();

            data.Position = reader.ReadVector2();
            data.Radius   = reader.ReadFloat();
            data.Flags    = reader.ReadUInt32();
            return(data);
        }
コード例 #2
0
 public static void WriteNavFlagCricle(this ByteWriter writer, NavFlagCricle data)
 {
     if (data == null)
     {
         data = new NavFlagCricle();
     }
     writer.WriteVector2(data.Position);
     writer.WriteFloat(data.Radius);
     writer.WriteUInt32(data.Flags);
 }