Maple2.File.Parser 2.0.23

dotnet add package Maple2.File.Parser --version 2.0.23
NuGet\Install-Package Maple2.File.Parser -Version 2.0.23
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="Maple2.File.Parser" Version="2.0.23" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Maple2.File.Parser --version 2.0.23
#r "nuget: Maple2.File.Parser, 2.0.23"
#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.
// Install Maple2.File.Parser as a Cake Addin
#addin nuget:?package=Maple2.File.Parser&version=2.0.23

// Install Maple2.File.Parser as a Cake Tool
#tool nuget:?package=Maple2.File.Parser&version=2.0.23

Maple2.File

Strongly typed MapleStory2 m2d file parsing

xblock Parsing Example:

using var reader = new M2dReader(EXPORTED_PATH);
var index = new FlatTypeIndex(reader);
var parser = new XBlockParser(reader, index);
parser.Include(typeof(ISpawnPoint));
parser.Include(typeof(IMS2TriggerObject));
parser.Include(typeof(IPortal));
...

var results = new Dictionary<string, MapEntityMetadata>();
parser.Parse((xblock, entities) => {
    var metadata = new MapEntityMetadata();
    foreach (IMapEntity entity in entities) {
        switch (entity) {
            case ISpawnPointPC spawnPoint:
                ...
            case ISpawnPointNPC npcSpawnPoint:
                ...
            default:
                ...
        }
    }
    results[xblock] = metadata;
});

xblock Parallel Parsing Example:

using var reader = new M2dReader(EXPORTED_PATH);
var index = new FlatTypeIndex(reader);
var parser = new XBlockParser(reader, index);

var results = new Dictionary<string, MapEntityMetadata>();
parser.Parallel().ForAll(map => {
    var metadata = new MapEntityMetadata();
    foreach (IMapEntity entity in map.entities) {
        switch (entity) {
            case ISpawnPointPC spawnPoint:
                ...
            case ISpawnPointNPC npcSpawnPoint:
                ...
            default:
                ...
        }
    }
    results[map.xblock] = metadata;
});

xml Parsing Example:

using var reader = new M2dReader(XML_PATH);

// LOCALE: "TW", "TH", "NA", "CN", "JP", "KR"
// ENV:    "Dev", "Qa", "DevStage", "Stage", "Live"
Filter.Load(reader, LOCALE, ENV);
var parser = new ItemParser(reader);

foreach ((int id, string name, ItemData data) in parser.Parse()) {
    // Extract fields from ItemData that are needed.
}

xblock CliExplorer Example:

using var reader = new M2dReader(EXPORTED_PATH);
var index = new FlatTypeIndex(reader);
index.CliExplorer();
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Maple2.File.Parser:

Repository Stars
AlanMorel/MapleServer2
MapleStory 2 Emulator
Version Downloads Last updated
2.0.23 251 9/8/2023
2.0.22 146 9/1/2023
2.0.21 137 8/27/2023
2.0.20 194 8/6/2023
2.0.19 157 7/2/2023
2.0.18 177 4/8/2023
2.0.17 232 3/2/2023
2.0.16 257 2/23/2023
2.0.15 306 12/10/2022
2.0.14 359 11/14/2022
2.0.13 324 11/11/2022
2.0.12 343 11/7/2022
2.0.11 312 11/7/2022
2.0.10 428 7/30/2022
2.0.9 415 7/10/2022
2.0.8 1,614 7/5/2022
2.0.7 414 6/29/2022
2.0.6 526 6/12/2022
2.0.5 412 5/7/2022
2.0.4 397 5/1/2022
2.0.2 405 4/30/2022
2.0.1 409 4/23/2022
2.0.0 2,344 12/31/2021
1.0.6 1,955 7/31/2021