Esempio n. 1
0
        public override void ReadData(MyData.Reader reader)
        {
            base.ReadData(reader);

            SleepingUnitsByID.Clear();
            reader.Collection("sleepingUnits",
                              (MyData.Reader r, ref ulong outVal, string name) =>
                              { outVal = r.UInt64(name); },
                              (capacity) => SleepingUnitsByID);
        }
Esempio n. 2
0
 public void ReadData(MyData.Reader reader)
 {
     Start = reader.Float("start");
     End   = reader.Float("end");
     Slope = reader.Float("slope");
 }
Esempio n. 3
0
 public void ReadData(MyData.Reader reader)
 {
     Exp    = reader.Float("exp");
     Scale  = reader.Float("scale");
     Offset = reader.Float("offset");
 }
Esempio n. 4
0
 //Serialization stuff:
 public void ReadData(MyData.Reader reader)
 {
     NOctaves    = reader.Int("nOctaves");
     StartScale  = reader.Float("startScale");
     Persistence = reader.Float("persistence");
 }