public void CreateMap() { Map map = new Map(this); if (!map.Load()) return; SMain.Envir.MapList.Add(map); for (int i = 0; i < SafeZones.Count; i++) if (SafeZones[i].StartPoint) SMain.Envir.StartPoints.Add(SafeZones[i]); }
public void CreateMap() { for (int j = 0; j < SMain.Envir.NPCInfoList.Count; j++) { if (SMain.Envir.NPCInfoList[j].MapIndex != Index) continue; NPCs.Add(SMain.Envir.NPCInfoList[j]); } Map map = new Map(this); if (!map.Load()) return; SMain.Envir.MapList.Add(map); for (int i = 0; i < SafeZones.Count; i++) if (SafeZones[i].StartPoint) SMain.Envir.StartPoints.Add(SafeZones[i]); }
public void CreateInstance() { if (Instance.MapList.Count == 0) return; Map map = new Map(this); if (!map.Load()) return; SMain.Envir.MapList.Add(map); Instance.AddMap(map); }