Ejemplo n.º 1
0
        private void LoadTankConfigJson() {
            var task = new LoadTankConfigTask(
                PFileUtil.BuildPathFromUnix(cnf.TankFolder, cnf.TankConfigPath + ".json"),
                OnLoadTankConfigSuccess,
                OnLoadTankConfigFailure
            );
            if (!task.Run()) {
                return;
            }

            st.LoadingInProcess++;
        }
Ejemplo n.º 2
0
        private void LoadEnemyConfigJson(string path) {
            var task = new LoadEnemyConfigTask(
                PFileUtil.BuildPathFromUnix(cnf.EnemiesFolder, path + ".json"),
                result => OnLoadEnemyConfigSuccess(path, result),
                () => OnLoadEnemyConfigFailure(path)
            );
            if (!task.Run()) {
                return;
            }

            st.LoadingInProcess++;
        }