Esempio n. 1
0
 public static new List<Task> GetTasks(Data data)
 {
     List<Task> tasks = new List<Task>();
     foreach (var key in data.Assets[SNOGroup.SkillKit].Keys)
     {
         Asset asset = new Asset(SNOGroup.SkillKit, -1, "");
         if (data.Assets[SNOGroup.SkillKit].TryGetValue(key, out asset))
         {
             tasks.Add(new Task(() => AddHelperValue(asset)));
         }
     }
     return tasks;
 }
Esempio n. 2
0
        static MPQStorage()
        {
            Initialized = false;

            if (!Directory.Exists(MpqRoot))
            {
                Logger.Error("MPQ root folder does not exist: {0}.", MpqRoot);
                return;
            }

            Logger.Info("Initializing MPQ storage..");
            MPQList = FileHelpers.GetFilesByExtensionRecursive(MpqRoot, ".mpq");

            Data = new Data();
            if (Data.Loaded)
            {
                Data.Init();
                Initialized = true;
            }
        }
Esempio n. 3
0
 public static new List<Task> GetTasks(Data data)
 {
     return new List<Task>();
 }