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); }
public void ReadData(MyData.Reader reader) { Start = reader.Float("start"); End = reader.Float("end"); Slope = reader.Float("slope"); }
public void ReadData(MyData.Reader reader) { Exp = reader.Float("exp"); Scale = reader.Float("scale"); Offset = reader.Float("offset"); }
//Serialization stuff: public void ReadData(MyData.Reader reader) { NOctaves = reader.Int("nOctaves"); StartScale = reader.Float("startScale"); Persistence = reader.Float("persistence"); }