Browse Source

Finally killed ModsaberModInfo

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
08ccc0ee76
2 changed files with 0 additions and 60 deletions
  1. +0
    -1
      IPA.Loader/IPA.Loader.csproj
  2. +0
    -59
      IPA.Loader/PluginInterfaces/BeatSaber/ModsaberModInfo.cs

+ 0
- 1
IPA.Loader/IPA.Loader.csproj View File

@ -83,7 +83,6 @@
<Compile Include="PluginInterfaces\BeatSaber\IBeatSaberPlugin.cs" /> <Compile Include="PluginInterfaces\BeatSaber\IBeatSaberPlugin.cs" />
<Compile Include="PluginInterfaces\BeatSaber\IDisablablePlugin.cs" /> <Compile Include="PluginInterfaces\BeatSaber\IDisablablePlugin.cs" />
<Compile Include="PluginInterfaces\BeatSaber\IEnhancedBeatSaberPlugin.cs" /> <Compile Include="PluginInterfaces\BeatSaber\IEnhancedBeatSaberPlugin.cs" />
<Compile Include="PluginInterfaces\BeatSaber\ModsaberModInfo.cs" />
<Compile Include="PluginInterfaces\IGenericEnhancedPlugin.cs" /> <Compile Include="PluginInterfaces\IGenericEnhancedPlugin.cs" />
<Compile Include="Config\IniFile.cs" /> <Compile Include="Config\IniFile.cs" />
<Compile Include="PluginInterfaces\IPA\IEnhancedPlugin.cs" /> <Compile Include="PluginInterfaces\IPA\IEnhancedPlugin.cs" />


+ 0
- 59
IPA.Loader/PluginInterfaces/BeatSaber/ModsaberModInfo.cs View File

@ -1,59 +0,0 @@
using System;
using Version = SemVer.Version;
// ReSharper disable CheckNamespace
namespace IPA
{
/// <summary>
/// A class to provide information about a mod on ModSaber.ML
/// </summary>
// ReSharper disable once IdentifierTypo
[Obsolete("This is unused, and has been since the manifest was introduced. All functionality is provided by the manifest.")]
public class ModsaberModInfo
{
/// <summary>
/// The name the mod uses on ModSaber as an identifier.
/// </summary>
public string InternalName
{
get => _internalName;
set
{
if (_internalName == null)
{
_internalName = value;
}
else
{
throw new Exception("Cannot change name one it has been set!");
}
}
}
private string _internalName;
/// <summary>
/// The version of the currently installed mod. Used to compare to the version on ModSaber. Should be a valid SemVer version.
/// </summary>
public string CurrentVersion
{
get => _currentVersion;
set
{
if (_currentVersion == null)
{
var version = new Version(value); // check for valid version
_currentVersion = value;
SemverVersion = version;
}
else
{
throw new Exception("Cannot change version one it has been set!");
}
}
}
private string _currentVersion;
internal Version SemverVersion;
}
}

Loading…
Cancel
Save