summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/StardewModdingAPI/Framework/ModHelper.cs (renamed from src/StardewModdingAPI/ModHelper.cs)5
-rw-r--r--src/StardewModdingAPI/LogInfo.cs44
-rw-r--r--src/StardewModdingAPI/StardewModdingAPI.csproj3
3 files changed, 3 insertions, 49 deletions
diff --git a/src/StardewModdingAPI/ModHelper.cs b/src/StardewModdingAPI/Framework/ModHelper.cs
index c20130cf..2b562b4f 100644
--- a/src/StardewModdingAPI/ModHelper.cs
+++ b/src/StardewModdingAPI/Framework/ModHelper.cs
@@ -4,11 +4,10 @@ using Newtonsoft.Json;
using StardewModdingAPI.Advanced;
using StardewModdingAPI.Framework.Reflection;
-namespace StardewModdingAPI
+namespace StardewModdingAPI.Framework
{
/// <summary>Provides simplified APIs for writing mods.</summary>
- [Obsolete("Use " + nameof(IModHelper) + " instead.")] // only direct mod access to this class is obsolete
- public class ModHelper : IModHelper
+ internal class ModHelper : IModHelper
{
/*********
** Properties
diff --git a/src/StardewModdingAPI/LogInfo.cs b/src/StardewModdingAPI/LogInfo.cs
deleted file mode 100644
index ffef7cef..00000000
--- a/src/StardewModdingAPI/LogInfo.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-
-namespace StardewModdingAPI
-{
- /// <summary>A message queued for log output.</summary>
- public struct LogInfo
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The message to log.</summary>
- public string Message { get; set; }
-
- /// <summary>The log date.</summary>
- public string LogDate { get; set; }
-
- /// <summary>The log time.</summary>
- public string LogTime { get; set; }
-
- /// <summary>The message color.</summary>
- public ConsoleColor Colour { get; set; }
-
- /// <summary>Whether the message should be printed to the console.</summary>
- internal bool PrintConsole { get; set; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="message">The message to log.</param>
- /// <param name="color">The message color.</param>
- public LogInfo(string message, ConsoleColor color = ConsoleColor.Gray)
- {
- if (string.IsNullOrEmpty(message))
- message = "[null]";
- this.Message = message;
- this.LogDate = DateTime.Now.ToString("yyyy-MM-dd");
- this.LogTime = DateTime.Now.ToString("HH:mm:ss");
- this.Colour = color;
- this.PrintConsole = true;
- }
- }
-}
diff --git a/src/StardewModdingAPI/StardewModdingAPI.csproj b/src/StardewModdingAPI/StardewModdingAPI.csproj
index cecfc831..d148e0c8 100644
--- a/src/StardewModdingAPI/StardewModdingAPI.csproj
+++ b/src/StardewModdingAPI/StardewModdingAPI.csproj
@@ -183,10 +183,9 @@
<Compile Include="Events\ItemStackChange.cs" />
<Compile Include="Log.cs" />
<Compile Include="Framework\Monitor.cs" />
- <Compile Include="LogInfo.cs" />
<Compile Include="Manifest.cs" />
<Compile Include="Mod.cs" />
- <Compile Include="ModHelper.cs" />
+ <Compile Include="Framework\ModHelper.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Framework\SGame.cs" />