Files
Torch/Torch.API/ITorchBase.cs
Alexander Qvist-Hellum 1251b945bc Added async /save command for admins+ and server console.
Redesigned TorchBase.SaveGameAsync to take a callback function for error/success handling. Also removed local host checks as we are hosting a dedicated server.
2017-07-06 16:18:10 +02:00

43 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Torch.API.Managers;
using VRage.Game.ModAPI;
namespace Torch.API
{
public interface ITorchBase
{
event Action SessionLoading;
event Action SessionLoaded;
event Action SessionUnloading;
event Action SessionUnloaded;
ITorchConfig Config { get; }
IMultiplayerManager Multiplayer { get; }
IPluginManager Plugins { get; }
Version TorchVersion { get; }
void Invoke(Action action);
void InvokeBlocking(Action action);
Task InvokeAsync(Action action);
string[] RunArgs { get; set; }
bool IsOnGameThread();
void Start();
void Stop();
void Save(long callerId);
void Init();
T GetManager<T>() where T : class, IManager;
}
public interface ITorchServer : ITorchBase
{
string InstancePath { get; }
}
public interface ITorchClient : ITorchBase
{
}
}