Maple.Models.Templates.Runtime 0.2.1

dotnet add package Maple.Models.Templates.Runtime --version 0.2.1
                    
NuGet\Install-Package Maple.Models.Templates.Runtime -Version 0.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Maple.Models.Templates.Runtime" Version="0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Maple.Models.Templates.Runtime" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Maple.Models.Templates.Runtime" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Maple.Models.Templates.Runtime --version 0.2.1
                    
#r "nuget: Maple.Models.Templates.Runtime, 0.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Maple.Models.Templates.Runtime@0.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Maple.Models.Templates.Runtime&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Maple.Models.Templates.Runtime&version=0.2.1
                    
Install as a Cake Tool

Maple.Models

.NET C# Build Status codecov License

MapleStory model types: immutable DTOs and catalog records, plus mutable runtime state for persistence and editors. Cross-platform, trimmable and AOT/NativeAOT compatible.

⭐ Please star this project if you like it. ⭐

Example | Example Catalogue | Public API Reference

Packages

Package NuGet Description
Maple.Models Nuget Immutable DTOs and catalog record types: templates, server snapshots, and shared value objects
Maple.Models.Runtime Nuget Mutable runtime state: character/account snapshots, inventories, item slots, quest and skill records, and AOT-safe JSON serialization

All packages are cross-platform, trimmable and AOT/NativeAOT compatible.

Example

// Create a color from a raw WZ ARGB value (e.g. from item data)
var color = ArgbColor.FromInt32(-16777216); // 0xFF000000 = opaque black
Console.WriteLine(color.ToHexString()); // #FF000000

// Build the base attribute stats contributed by an equip
var stats = new CharacterBaseStats(STR: 10, DEX: 5, INT: 0, LUK: 3);
Console.WriteLine($"STR: {stats.STR}  DEX: {stats.DEX}"); // STR: 10  DEX: 5

For more examples see Example Catalogue.

Benchmarks

Benchmarks.

Detailed Benchmarks

Comparison Benchmarks
TestBench Benchmark Results
Results will be populated here after running benchmarks locally.

Example Catalogue

The following examples are available in ReadMeTest.cs.

Example - Empty

// Create a color from a raw WZ ARGB value (e.g. from item data)
var color = ArgbColor.FromInt32(-16777216); // 0xFF000000 = opaque black
Console.WriteLine(color.ToHexString()); // #FF000000

// Build the base attribute stats contributed by an equip
var stats = new CharacterBaseStats(STR: 10, DEX: 5, INT: 0, LUK: 3);
Console.WriteLine($"STR: {stats.STR}  DEX: {stats.DEX}"); // STR: 10  DEX: 5

Public API Reference

See docs/PublicApi.md for the full generated public API surface.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.2.1 89 4/2/2026
0.2.0 81 4/1/2026