2using System.Collections.Generic;
5using Cysharp.Threading.Tasks;
18 return "Home,Dungeon,Town";
50 if (lang !=
"JP" && lang !=
"CN" && lang !=
"EN")
62 listOrg = listOrg.Where((
Net.
DownloadMeta m) => m.IsValidVersion()).ToList();
65 if (!
AllowedCat.Split(
',').Contains(m.cat.IsEmpty(
"Home")))
70 if (listOrg ==
null || listOrg.Count == 0)
81 if (item3.id == item2.
id && item3.version == item2.
version)
88 Debug.Log(list2.Count);
91 list2 = listOrg.Copy();
95 if (zone_User !=
null)
102 Debug.Log(fileInfo?.ToString() +
"/" +
item.name +
"/" +
item.path);
110 Debug.Log(
"invalid");
126 Msg.
Say(
"returnOverweight");
131 if (zone_User ==
null)
134 zone_User.path = m.
path;
135 zone_User.idUser = m.
id;
137 zone_User.name = m.
name;
139 Debug.Log(zone_User);
156 List<MapMetaData> list =
new List<MapMetaData>();
159 if (!(
item.Extension !=
".z"))
164 metaData.path =
item.FullName;
165 metaData.date =
item.LastWriteTime;
void MoveZone(string alias)
BackerContentConfig backer
static string ZoneSaveUser
static void TryWarnMod(Action action, bool warn=true)
int GetRaw(int offsetHours=0)
static LayerProgress StartAsync(string text, UniTask< bool > task, Action onCancel=null)
static List< FileInfo > listMaps
static MapMetaData GetMetaData(string pathZip)
static string SayNothingHappen()
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
static async UniTask< FileInfo > DownloadFile(DownloadMeta item, string path, string idLang)
static async UniTask< List< DownloadMeta > > GetFileList(string idLang)
static Spatial Create(string id, Spatial parent, bool register, int x=-99999, int y=-99999, int icon=0)
void LoadMap(MapMetaData m)
override bool CanUse(Chara c)
List< MapMetaData > ListSavedUserMap()
async UniTask< bool > UseMoongate()
override bool OnUse(Chara c)
virtual string AllowedCat
static bool IsImportValid(string path)