Assorted bug fixes, remove dead Torch.Launcher project

This commit is contained in:
John Gross
2017-06-29 12:02:36 -07:00
parent 4b4a069adb
commit c220f899a3
43 changed files with 289 additions and 867 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Text;
using System.Threading.Tasks;
//Needed so Torch can set the instance here without exposing anything bad to mods or creating a circular dependency.
[assembly: InternalsVisibleTo("Torch")]
namespace Torch.API.ModAPI
{
/// <summary>
/// Entry point for mods to access Torch.
/// </summary>
public static class TorchAPI
{
internal static ITorchBase Instance;
}
}

View File

@@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Torch.API.ModAPI
{
/* TODO: this without causing a circular dependency
public static class TorchAPIGateway
{
public static Version Version => TorchBase.Instance.TorchVersion;
public static IMultiplayer Multiplayer => TorchBase.Instance.Multiplayer;
public static IPluginManager Plugins => TorchBase.Instance.Plugins;
}*/
}