Fix groups stealing Ids

This commit is contained in:
NGnius (Graham) 2020-05-16 12:53:58 -04:00
parent 782e00e3dd
commit 500cb9b716
2 changed files with 27 additions and 3 deletions

View file

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

View file

@ -10,10 +10,34 @@ namespace GamecraftModdingAPI.Utility
{ {
public static class ApiExclusiveGroups 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 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;
}
}
} }
} }