Thanks Haplo,
MapComponent really handles my needs! I had to create a Saveable object to handle the custom information anexed to the pawns... Below how my code began...
MapComponent really handles my needs! I had to create a Saveable object to handle the custom information anexed to the pawns... Below how my code began...
Code Select
public class AnthillMapComponent : MapComponent
{
public List<AntQueenTick> antQueenData = new List<AntQueenTick>();
public override void ExposeData()
{
base.ExposeData();
Scribe_Collections.LookList(ref this.antQueenData, "AntQueen", LookMode.Deep);
}
}
public class AntQueenTick : Saveable
{
public int count;
public int nextTick;
public Pawn pawn;
public void ExposeData()
{
Scribe_References.LookReference(ref this.pawn, "pawn");
Scribe_Values.LookValue(ref this.count, "count");
Scribe_Values.LookValue(ref this.nextTick, "nextTick");
}
}