Merge pull request #41 from Zoryn4163/master

adds 'obsolete' tag to deprecated things. these things will need to be removed in the future. compatability should not be effected.
This commit is contained in:
Zoryn 2016-03-21 14:34:09 -04:00
commit 452b1dd184
3 changed files with 8 additions and 3 deletions

View File

@ -35,7 +35,7 @@ namespace StardewModdingAPI
public const int MinorVersion = 38;
public const int PatchVersion = 3;
public const int PatchVersion = 4;
public const string Build = "Alpha";

View File

@ -12,24 +12,28 @@ namespace StardewModdingAPI
/// The name of your mod.
/// NOTE: THIS IS DEPRECATED AND WILL BE REMOVED IN THE NEXT VERSION OF SMAPI
/// </summary>
[Obsolete]
public virtual string Name { get; set; }
/// <summary>
/// The name of the mod's authour.
/// NOTE: THIS IS DEPRECATED AND WILL BE REMOVED IN THE NEXT VERSION OF SMAPI
/// </summary>
[Obsolete]
public virtual string Authour { get; set; }
/// <summary>
/// The version of the mod.
/// NOTE: THIS IS DEPRECATED AND WILL BE REMOVED IN THE NEXT VERSION OF SMAPI
/// </summary>
[Obsolete]
public virtual string Version { get; set; }
/// <summary>
/// A description of the mod.
/// NOTE: THIS IS DEPRECATED AND WILL BE REMOVED IN THE NEXT VERSION OF SMAPI
/// </summary>
[Obsolete]
public virtual string Description { get; set; }

View File

@ -340,9 +340,10 @@ namespace StardewModdingAPI
/// <summary>
/// DEPRECATED. REMOVE
/// </summary>
[Obsolete]
public static void LoadMods_OldWay()
{
StardewModdingAPI.Log.Verbose("LOADING MODS (OLD WAY - DEPRECATED. ANY MODS LOADED THIS WAY NEED TO UPDATE)");
StardewModdingAPI.Log.Error("LOADING MODS (OLD WAY - DEPRECATED. ANY MODS LOADED THIS WAY NEED TO UPDATE)");
int loadedMods = 0;
foreach (string ModPath in _modPaths)
{
@ -377,7 +378,7 @@ namespace StardewModdingAPI
}
}
}
StardewModdingAPI.Log.Success("LOADED {0} MODS THAT NEED TO UPDATE", loadedMods);
StardewModdingAPI.Log.Error("LOADED {0} MODS THAT NEED TO UPDATE", loadedMods);
}