final fix + new config option to change service between Steam and EOS

This commit is contained in:
LTP
2021-02-12 12:05:16 +07:00
parent b372230eae
commit 169b543f7d
18 changed files with 251 additions and 135 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Torch.API;
namespace Torch
{
@@ -24,7 +25,11 @@ namespace Torch
string ChatColor { get; set; }
string TestPlugin { get; set; }
bool DisconnectOnRestart { get; set; }
int WindowWidth { get; set; }
int WindowHeight { get; set; }
int FontSize { get; set; }
UGCServiceType UgcServiceType { get; set; }
bool Save(string path = null);
void Save(string path = null);
}
}

View File

@@ -184,8 +184,8 @@
<Compile Include="Session\ITorchSessionManager.cs" />
<Compile Include="Session\TorchSessionState.cs" />
<Compile Include="TorchGameState.cs" />
<Compile Include="UGCServiceType.cs" />
<Compile Include="Utils\ColorUtils.cs" />
<Compile Include="Utils\ModItemUtils.cs" />
<Compile Include="Utils\StringUtils.cs" />
<Compile Include="WebAPI\JenkinsQuery.cs" />
<Compile Include="WebAPI\PluginQuery.cs" />

View File

@@ -0,0 +1,8 @@
namespace Torch.API
{
public enum UGCServiceType
{
Steam,
EOS
}
}

View File

@@ -1,16 +0,0 @@
using Sandbox.Engine.Networking;
using VRage.Game;
namespace Torch.Utils
{
public static class ModItemUtils
{
public static MyObjectBuilder_Checkpoint.ModItem Create(ulong modId)
{
return new MyObjectBuilder_Checkpoint.ModItem(modId, GetDefaultServiceName());
}
//because KEEEN!
public static string GetDefaultServiceName() => "Steam";
}
}