public override void ExposeData() { base.ExposeData(); Tools.Look(ref grid, "pheromones", new object[0]); Scribe_Values.Look(ref mapSizeX, "mapx"); Scribe_Values.Look(ref mapSizeZ, "mapz"); if (mapSizeX == 0 || mapSizeZ == 0) { mapSizeX = (int)Math.Sqrt(grid.Length); mapSizeZ = mapSizeX; } }