Add async session save method, random tweaks

This commit is contained in:
John Gross
2017-02-06 01:22:35 -08:00
parent d5159dc72a
commit ff3cdfd099
6 changed files with 45 additions and 18 deletions

View File

@@ -13,8 +13,7 @@ namespace Torch.API
event Action<IChatItem> MessageReceived;
Dictionary<ulong, IPlayer> Players { get; }
List<IChatItem> Chat { get; }
void SendMessage(string message);
void SendMessage(string message, long playerId, string author = "Server", string font = MyFontEnum.Blue);
void SendMessage(string message, string author = "Server", long playerId = 0, string font = MyFontEnum.Blue);
void KickPlayer(ulong id);
void BanPlayer(ulong id, bool banned = true);
IMyPlayer GetPlayerBySteamId(ulong id);

View File

@@ -27,6 +27,7 @@ namespace Torch.API
public interface ITorchServer : ITorchBase
{
bool IsRunning { get; }
string InstancePath { get; }
}
public interface ITorchClient : ITorchBase