Skip to content

Commit

Permalink
Added remove method to variable container
Browse files Browse the repository at this point in the history
  • Loading branch information
exectails committed Jul 11, 2024
1 parent 6a51735 commit f8bf575
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Yggdrasil/Variables/VariableContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,17 @@ public bool Has(TIdent ident)
lock (_syncLock)
return _vars.ContainsKey(ident);
}

/// <summary>
/// Removes the variable with the given identifier. Returns false
/// if no matching variable was found.
/// </summary>
/// <param name="ident"></param>
/// <returns></returns>
public bool Remove(TIdent ident)
{
lock (_syncLock)
return _vars.Remove(ident);
}
}
}
2 changes: 1 addition & 1 deletion Yggdrasil/Yggdrasil.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>$(AssemblyName)</Title>
<Version>1.0.4</Version>
<Version>1.0.5</Version>
<Authors>exec</Authors>
<Description>Game server and emulation library.</Description>
<RepositoryUrl>https://github.com/exectails/Yggdrasil</RepositoryUrl>
Expand Down

0 comments on commit f8bf575

Please sign in to comment.