예제 #1
0
 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));
 }
예제 #2
0
            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");
            }
예제 #3
0
 public static void Write(Group g, string name, MyData.Writer writer)
 {
     writer.UInt((uint)g.MyType, name + "_type");
     writer.Structure(g, name + "_value");
 }
예제 #4
0
 public void WriteData(MyData.Writer writer)
 {
     writer.Structure(Noise, "noise");
     writer.Float(Exponent, "exponent");
     writer.Float(Threshold, "threshold");
 }
예제 #5
0
 public static void Write(MyData.Writer writer, Job job, string name)
 {
     writer.Int((int)job.ThisType, name + "_Type");
     writer.Structure(job, name + "_Value");
 }
예제 #6
0
 public void WriteData(MyData.Writer writer)
 {
     writer.Structure(Noise, "noise");
 }
예제 #7
0
파일: Unit.cs 프로젝트: heyx3/EscapeTheMine
 public static void Write(MyData.Writer writer, string name, Unit u)
 {
     writer.UInt((uint)u.MyType, name + "_Type");
     writer.Structure(u, name + "_Value");
 }