2using System.Collections.Generic;
5using Cysharp.Threading.Tasks;
18 return "Home,Dungeon,Town";
50 if (lang !=
"JP" && lang !=
"CN" && lang !=
"EN")
63 listOrg = listOrg.Where((
Net.
DownloadMeta m) => m.IsValidVersion()).ToList();
66 if (!
AllowedCat.Split(
',').Contains(m.cat.IsEmpty(
"Home")))
71 if (listOrg ==
null || listOrg.Count == 0)
82 if (item2.id ==
item.id && item2.version ==
item.version)
89 Debug.Log(list2.Count);
92 list2 = listOrg.Copy();
94 meta = list2.RandomItem();
96 if (zone_User !=
null)
102 Debug.Log(meta?.ToString() +
"/" + meta.
title + meta.
id +
"/" + meta.
path +
"/");
103 Debug.Log(fileInfo?.ToString() +
"/" + meta.
name +
"/" + meta.
path);
111 Debug.Log(
"invalid");
131 Msg.
Say(
"returnOverweight");
136 if (zone_User ==
null)
139 zone_User.path = m.
path;
140 zone_User.idUser = m.
id;
142 zone_User.name = m.
name;
144 Debug.Log(zone_User);
161 List<MapMetaData> list =
new List<MapMetaData>();
164 if (!(
item.Extension !=
".z"))
169 metaData.path =
item.FullName;
170 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)