public static Grid Easy() { return(GridLoader.Load(@"...|752|81. ...|.4.|..6 2..|.83|..5 ----------- ..9|...|283 .8.|397|.4. 314|...|7.. ----------- 1..|43.|..7 4..|.7.|... .95|261|...")); }
public void UpdateSpawnerIDs() { m_spawnerIDsLabel.text = String.Empty; String path = Application.streamingAssetsPath + "/Maps/"; String path2 = m_mapList.selection + ".xml"; String p_fileName = Path.Combine(path, path2); Grid grid = GridLoader.Load(p_fileName); foreach (GridSlot gridSlot in grid.SlotIterator()) { foreach (Spawn spawn in gridSlot.SpawnObjects) { if (spawn.ObjectType == EObjectType.PARTY) { UILabel spawnerIDsLabel = m_spawnerIDsLabel; spawnerIDsLabel.text = spawnerIDsLabel.text + spawn.ID.ToString() + ";"; } } } m_spawnerIDsLabel.Update(); }
public RegularGrid GetGrid() { GridLoader loader = new GridLoader(); return(loader.Load(RSConfig.GridFile)); }