GBX.NET 0.3.0

A completely open source GBX file interaction library for .NET.

Install-Package GBX.NET -Version 0.3.0
dotnet add package GBX.NET --version 0.3.0
<PackageReference Include="GBX.NET" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GBX.NET --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

To parse a GBX with a known type:

var gbx = GameBox.Parse<CGameCtnChallenge>("MyMap.Map.Gbx");
// Node data is available in gbx.MainNode

To parse a GBX with an unknown type:

var gbx = GameBox.Parse("MyMap.Map.Gbx");

if (gbx is GameBox<CGameCtnChallenge> gbxMap)
{
    // Node data is available in gbxMap.MainNode
}
else if (gbx is GameBox<CGameCtnReplayRecord> gbxReplay)
{
    // Node data is available in gbxReplay.MainNode
}

To parse a GBX with a known type:

var gbx = GameBox.Parse<CGameCtnChallenge>("MyMap.Map.Gbx");
// Node data is available in gbx.MainNode

To parse a GBX with an unknown type:

var gbx = GameBox.Parse("MyMap.Map.Gbx");

if (gbx is GameBox<CGameCtnChallenge> gbxMap)
{
    // Node data is available in gbxMap.MainNode
}
else if (gbx is GameBox<CGameCtnReplayRecord> gbxReplay)
{
    // Node data is available in gbxReplay.MainNode
}

Release Notes

Tons of changes, major ones:
- CGameCtnBlockInfoClassic (EDClassic.Gbx) parsing added
- Introduced embed reading in CGameCtnChallenge
- Merged Block.cs with CGameCtnBlock.cs
- Added RaceValidateGhost to CGameCtnChallengeParameters
- Added more implicit operators to data types used in GBX
- Added a new Collection class to distinguish types of collection storage in Meta.
- Slightly simplified header access (full system will be coming soon)
- Improved node debug views using DebuggerTypeProxy
- Enhanced the documentation

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GBX.NET:

Package Downloads
GBX.NET.Json
A wrapper for better JSON serialization of GBX, useful for comparing data.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.3.0 50 10/13/2020
0.2.1 47 9/19/2020
0.2.0 156 9/19/2020
0.1.0 103 9/11/2020