HeimerNET.Lor.DeckCodes
1.0.3
.NET 5.0
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
Install-Package HeimerNET.Lor.DeckCodes -Version 1.0.3
dotnet add package HeimerNET.Lor.DeckCodes --version 1.0.3
<PackageReference Include="HeimerNET.Lor.DeckCodes" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HeimerNET.Lor.DeckCodes --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HeimerNET.Lor.DeckCodes, 1.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install HeimerNET.Lor.DeckCodes as a Cake Addin
#addin nuget:?package=HeimerNET.Lor.DeckCodes&version=1.0.3
// Install HeimerNET.Lor.DeckCodes as a Cake Tool
#tool nuget:?package=HeimerNET.Lor.DeckCodes&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HeimerNET.Lor.DeckCodes
This is a C# implementation of the C# library RiotGames/LoRDeckCodes. The library is faster and use less memory.
How to use
var deck1 = new List<DeckCard>()
{
new("01DE002", 4),
new("02BW003", 2),
new("02BW010", 3),
...
}
string code = LorDeckEncoder.GetCodeFromDeck(deck1);
List<DeckCard> deck2 = LorDeckEncoder.GetDeckFromCode("SomeCode");
You can also use your own class, all you have to do is implement 2 interface
IDeckCard
- to get deck from code
IReadOnlyDeckCard
- to get the code from the deck
class MyCard : IDeckCard, IReadOnlyDeckCard { ... }
List<MyCard> deck = LorDeckEncoder.GetDeckFromCode<MyCard>("SomeCode");
string code = LorDeckEncoder.GetCodeFromDeck(deck);
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
Test GitHub Actions