示例#1
0
 public void LoadDefinitionsAndMods()
 {
     if (_resources == null || Checkpoint == null || Checkpoint.Mods == null)
     {
         return;
     }
     _resources.LoadDefinitionsAndMods(DataPath.ModsPath, Checkpoint.Mods.ToArray());
 }
示例#2
0
        public void LoadDefinitionsAndMods()
        {
            if (_resources == null || Checkpoint == null || Checkpoint.Mods == null)
            {
                return;
            }

            var cancelToken = new MyWorkshop.CancelToken();

            SpaceEngineersWorkshop.GetModItems(Checkpoint.Mods, cancelToken);

            _resources.LoadDefinitionsAndMods(DataPath.ModsPath, Checkpoint.Mods);
        }
示例#3
0
        public void LoadDefinitionsAndMods()
        {
            if (_resources == null || Checkpoint == null || Checkpoint.Mods == null)
            {
                return;
            }

            var modList = Checkpoint.Mods.ToArray();

            for (int i = 0; i < modList.Length; i++)
            {
                modList[i].FriendlyName = modList[i].Name;
            }

            _resources.LoadDefinitionsAndMods(DataPath.ModsPath, modList);
        }