void Start() { PLogger.StartLogging(true); ArchManager = new PArchManager(); ArchManager.Read(); UserManager = new PUserManager(); UserManager.Read(); #region 初始化地图库 string MapDirectory = PPath.GetPath("Data\\Maps"); string[] MapFileNames = Directory.GetFiles(MapDirectory, "*.xml"); MapList = new List <PMap>(); foreach (string MapFileName in MapFileNames) { MapList.Add(new PMap(MapFileName)); } #endregion }