From 6a695f2abf59566d056f73d9cb7f2d2aff1e20e9 Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:26:09 +0700 Subject: [PATCH] fix backwards compat with some plugins --- Torch.API/ITorchBase.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Torch.API/ITorchBase.cs b/Torch.API/ITorchBase.cs index 52e9428..ba3939f 100644 --- a/Torch.API/ITorchBase.cs +++ b/Torch.API/ITorchBase.cs @@ -1,4 +1,5 @@ using System; +using System.ComponentModel; using System.Runtime.CompilerServices; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; @@ -140,6 +141,22 @@ namespace Torch.API event Action Initialized; TimeSpan ElapsedPlayTime { get; set; } + + #region Backwards compat + + /// + /// Path of the dedicated instance folder. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + new string InstancePath => ((ITorchBase)this).InstancePath; + + /// + /// Name of the dedicated instance. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + new string InstanceName => ((ITorchBase)this).InstanceName; + + #endregion } ///