Browse Source

Fix groups stealing Ids

tags/v1.0.1
NGnius (Graham) 4 years ago
parent
commit
500cb9b716
2 changed files with 27 additions and 3 deletions
  1. +1
    -1
      GamecraftModdingAPI/GamecraftModdingAPI.csproj
  2. +26
    -2
      GamecraftModdingAPI/Utility/ApiExclusiveGroups.cs

+ 1
- 1
GamecraftModdingAPI/GamecraftModdingAPI.csproj View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Authors>Exmods</Authors>
<PackageLicenseExpression>GNU General Public Licence 3+</PackageLicenseExpression>
<PackageProjectUrl>https://git.exmods.org/modtainers/GamecraftModdingAPI</PackageProjectUrl>


+ 26
- 2
GamecraftModdingAPI/Utility/ApiExclusiveGroups.cs View File

@@ -10,10 +10,34 @@ namespace GamecraftModdingAPI.Utility
{
public static class ApiExclusiveGroups
{
public static readonly ExclusiveGroup eventsExclusiveGroup = new ExclusiveGroup("GamecraftModdingAPI EventGroup");
private static ExclusiveGroup _eventsExclusiveGroup = null;

public static ExclusiveGroup eventsExclusiveGroup
{
get
{
if (_eventsExclusiveGroup == null)
{
_eventsExclusiveGroup = new ExclusiveGroup("GamecraftModdingAPI EventGroup");
}
return _eventsExclusiveGroup;
}
}

public static uint eventID;

public static readonly ExclusiveGroup versionGroup = new ExclusiveGroup("GamecraftModdingAPI VersionGroup");
private static ExclusiveGroup _versionGroup = null;

public static ExclusiveGroup versionGroup
{
get
{
if (_versionGroup == null)
{
_versionGroup = new ExclusiveGroup("GamecraftModdingAPI VersionGroup");
}
return _versionGroup;
}
}
}
}

Loading…
Cancel
Save