final fix + new config option to change service between Steam and EOS
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
@@ -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" />
|
||||
|
8
Torch.API/UGCServiceType.cs
Normal file
8
Torch.API/UGCServiceType.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Torch.API
|
||||
{
|
||||
public enum UGCServiceType
|
||||
{
|
||||
Steam,
|
||||
EOS
|
||||
}
|
||||
}
|
@@ -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";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user