
fixed most of issues with world creating/loading fixed log window lags fixed some compiler warnings fixed empty log files creating fixed logging performance added better logging of load process
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Sandbox.Game.World;
|
|
using Torch.API.Managers;
|
|
|
|
namespace Torch.API.Session
|
|
{
|
|
/// <summary>
|
|
/// Represents the Torch code working with a single game session
|
|
/// </summary>
|
|
public interface ITorchSession
|
|
{
|
|
/// <summary>
|
|
/// The Torch instance this session is bound to
|
|
/// </summary>
|
|
ITorchBase Torch { get; }
|
|
|
|
/// <summary>
|
|
/// The Space Engineers game session this session is bound to.
|
|
/// </summary>
|
|
MySession KeenSession { get; }
|
|
|
|
/// <summary>
|
|
/// Currently running world
|
|
/// </summary>
|
|
IWorld World { get; }
|
|
|
|
/// <inheritdoc cref="IDependencyManager"/>
|
|
IDependencyManager Managers { get; }
|
|
|
|
/// <summary>
|
|
/// The current state of the session
|
|
/// </summary>
|
|
TorchSessionState State { get; }
|
|
|
|
/// <summary>
|
|
/// Event raised when the <see cref="State"/> changes.
|
|
/// </summary>
|
|
event TorchSessionStateChangedDel StateChanged;
|
|
}
|
|
}
|