public void WriteData(MyData.Writer writer) { writer.Int(NRooms, "nRooms"); writer.Int(RoomSpacing, "roomSpacing"); writer.Int(MinCirclesPerRoom, "minCirclesPerRoom"); writer.Int(MaxCirclesPerRoom, "maxCirclesPerRoom"); writer.Float(CirclePosVariance, "circlePosVariance"); writer.Float(CircleMinRadius, "circleMinRadius"); writer.Float(CircleMaxRadius, "circleMaxRadius"); }
public void WriteData(MyData.Writer writer) { writer.Int(Level, "level"); writer.Collection(ExitedUnitIDs, "exitedUnitIDs", (MyData.Writer wr, ulong val, string name) => wr.UInt64(val, name)); }
public void WriteData(MyData.Writer writer) { writer.Int(MoveToPos_MaxDist, "moveToPos_MaxDist"); writer.Bool(AcceptJob_Mining, "acceptJob_Mining"); writer.Bool(AcceptJob_Build, "acceptJob_Build"); writer.Float(SleepWhen_EnergyBelow, "sleepWhen_EnergyBelow"); writer.Float(SleepWhen_HealthBelow, "sleepWhen_HealthBelow"); writer.Bool(GrowingUpIsEmergency, "growingUpIsEmergency"); }
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"); }
//Serialization stuff: public void WriteData(MyData.Writer writer) { writer.Int(NIterations, "nIterations"); writer.Float(TileVariation, "tileVariation"); KeyframeSerializer kfs = new KeyframeSerializer(); writer.Collection( TileChangeChances.keys, "tileChangeChances", (MyData.Writer w, Keyframe k, string name) => { kfs.Kf = k; w.Structure(kfs, name); }); }
public virtual void WriteData(MyData.Writer writer) { writer.UInt64(ID, "id"); writer.Int(TurnPriority, "turnPriority"); writer.Collection(UnitsByID, "units", (MyData.Writer w, ulong outVal, string name) => w.UInt64(outVal, name)); writer.Collection(AlliesByID, "allies", (MyData.Writer w, ulong outVal, string name) => w.UInt64(outVal, name)); writer.Collection(EnemiesByID, "enemies", (MyData.Writer w, ulong outVal, string name) => w.UInt64(outVal, name)); }
public void WriteData(MyData.Writer writer) { writer.String(Name.Value, "name"); writer.Int((int)Gender.Value, "gender"); writer.Int(AppearanceIndex.Value, "appearanceIndex"); }
public void WriteData(MyData.Writer writer) { writer.Int(turnPriority_Player, "turnPriority_Player"); writer.Int(turnPriority_Monster, "turnPriority_Monster"); }
public void WriteData(MyData.Writer writer) { writer.Int(defaultMaxEnemyDistSqr, "maxEnemyDistSqr"); writer.Float(enemyDistHeuristicMax, "enemyDistHeuristicMax"); }
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.Int(NStartingChars, "nStartingChars"); writer.Float(StartingStatAbilities, "startingStatAbilities"); }