public void WriteData(MyData.Writer writer) { writer.Structure(Tiles, "tiles"); writer.UInt64(nextID, "nextID"); writer.Structure(Groups, "groups"); writer.Collection <Unit, HashSet <Unit> >(units, "units", (wr, unit, name) => Unit.Write(wr, name, unit)); }
public void WriteData(MyData.Writer writer) { writer.String(Name, "name"); writer.Int(Size, "size"); writer.String(Seed, "seed"); writer.Structure(Biome, "biome"); writer.Structure(Deposits, "deposits"); writer.Structure(Rooms, "rooms"); writer.Structure(CA, "ca"); writer.Structure(PlayerChars, "playerChars"); }
public static void Write(Group g, string name, MyData.Writer writer) { writer.UInt((uint)g.MyType, name + "_type"); writer.Structure(g, name + "_value"); }
public void WriteData(MyData.Writer writer) { writer.Structure(Noise, "noise"); writer.Float(Exponent, "exponent"); writer.Float(Threshold, "threshold"); }
public static void Write(MyData.Writer writer, Job job, string name) { writer.Int((int)job.ThisType, name + "_Type"); writer.Structure(job, name + "_Value"); }
public void WriteData(MyData.Writer writer) { writer.Structure(Noise, "noise"); }
public static void Write(MyData.Writer writer, string name, Unit u) { writer.UInt((uint)u.MyType, name + "_Type"); writer.Structure(u, name + "_Value"); }