2using System.Collections.Generic;
34 public List<MapPath>
paths =
new List<MapPath>();
43 public static Dictionary<string, PartialMap>
CacheMap =
new Dictionary<string, PartialMap>();
53 if (
item.paths.Count == 0)
58 string[] array = (tag.IsEmpty() ? null : tag.Split(
','));
59 List<MapPath> list =
new List<MapPath>();
62 if (path2.
tag.IsEmpty() || (array !=
null && array.Contains(tag)))
71 string path = list.RandomItem().path;
72 Debug.Log(
"Loading PartialMap:" + path);
74 if (partialMap ==
null)
83 partialMap.procedural =
true;
84 partialMap.ruinChance = ruin;
98 foreach (
string text
in files)
100 if (text.EndsWith(
"mp"))
102 DirectoryInfo directory =
new FileInfo(text).Directory;
103 string tag = ((directory.Parent.Name !=
item.id) ?
"" : directory.Name);
bool enableMapPieceEditor
static string MapPieceSave
static Dictionary< string, PartialMap > CacheMap
static MapPiece _Instance
PartialMap GetMap(Type type, string tag, float ruin)
static PartialMap Load(string path=null)