GBX.NET
0.10.1
See the version list below for details.
dotnet add package GBX.NET --version 0.10.1
NuGet\Install-Package GBX.NET -Version 0.10.1
<PackageReference Include="GBX.NET" Version="0.10.1" />
paket add GBX.NET --version 0.10.1
#r "nuget: GBX.NET, 0.10.1"
// Install GBX.NET as a Cake Addin
#addin nuget:?package=GBX.NET&version=0.10.1
// Install GBX.NET as a Cake Tool
#tool nuget:?package=GBX.NET&version=0.10.1
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 (method 1):
var gbx = GameBox.Parse("MyMap.Map.Gbx");
if (gbx is GameBox<CGameCtnChallenge> gbxMap)
{
var map = gbxMap.MainNode;
// Node data is available in map
}
else if (gbx is GameBox<CGameCtnReplayRecord> gbxReplay)
{
var replay = gbxReplay.MainNode;
// Node data is available in replay
}
To parse a GBX with an unknown type (method 2):
var gbx = GameBox.Parse("MyMap.Map.Gbx");
if (gbx.TryNode(out CGameCtnChallenge map))
{
// Node data is available in map
}
else if (gbx.TryNode(out CGameCtnReplayRecord replay))
{
// Node data is available in replay
}
To save changes of the parsed GBX file:
var gbx = GameBox.Parse("MyMap.Map.Gbx");
if (gbx is GameBox<CGameCtnChallenge> gbxMap)
{
// Do changes with CGameCtnChallenge
gbxMap.Save("MyMap.Map.Gbx"); // Can be also a new file
}
else if (gbx is GameBox<CGameCtnGhost> gbxGhost)
{
// Do changes with CGameCtnGhost
gbxGhost.Save("MyGhost.Ghost.Gbx"); // Can be also a new file
}
gbx.Save(); // will throw an error
// GameBox with unspecified/unknown type can't be currently written back
To save any supported Node
to a GBX file:
var gbxReplay = GameBox.Parse<CGameCtnReplayRecord>("MyReplay.Replay.Gbx");
CGameCtnReplayRecord replay = gbxReplay.MainNode;
foreach (CGameCtnGhost ghost in replay.Ghosts)
{
var gbxGhost = new GameBox<CGameCtnGhost>(ghost); // Create a GameBox<T> with the Node object
gbxGhost.Save("MyExtractedGhost.Ghost.Gbx"); // Save the new GameBox object to a GBX file
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- System.IO.Compression (>= 4.3.0)
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- No dependencies.
NuGet packages (7)
Showing the top 5 NuGet packages that depend on GBX.NET:
Package | Downloads |
---|---|
GBX.NET.LZO
An LZO compression plugin for GBX.NET to allow de/serialization of compressed Gbx bodies. This official implementation uses minilzo 2.06. |
|
GBX.NET.Json
A wrapper for better JSON serialization of GBX.NET nodes, useful for comparing data. |
|
GBX.NET.Imaging
Provides extensions for image handling in GBX.NET (GDI+, Windows only). |
|
GBX.NET.PAK
A PAK file parser using the GBX.NET features. |
|
GBX.NET.ZLib
Support for zlib compressed parts of Gbx, integrated with GBX.NET. This official implementation uses ZlibDotNet. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2.0.0-rc1 | 82 | 4/23/2024 | |
2.0.0-beta2 | 58 | 4/21/2024 | |
2.0.0-beta1 | 91 | 4/20/2024 | |
2.0.0-alpha3 | 42 | 4/18/2024 | |
2.0.0-alpha2 | 92 | 4/14/2024 | |
2.0.0-alpha1 | 86 | 4/12/2024 | |
1.2.6 | 335 | 2/19/2024 | |
1.2.5 | 404 | 12/31/2023 | |
1.2.4 | 373 | 11/26/2023 | |
1.2.3 | 235 | 11/24/2023 | |
1.2.2 | 543 | 7/8/2023 | |
1.2.1 | 633 | 6/7/2023 | |
1.2.0 | 806 | 5/4/2023 | |
1.2.0-beta2 | 101 | 4/30/2023 | |
1.2.0-beta1 | 94 | 4/25/2023 | |
1.1.3 | 504 | 2/1/2023 | |
1.1.2 | 300 | 1/21/2023 | |
1.1.1 | 478 | 12/30/2022 | |
1.1.0 | 1,259 | 12/11/2022 | |
1.1.0-alpha2 | 185 | 11/11/2022 | |
1.1.0-alpha1 | 107 | 10/25/2022 | |
1.0.1 | 740 | 9/10/2022 | |
1.0.0 | 419 | 9/9/2022 | |
0.16.6 | 451 | 8/24/2022 | |
0.16.5 | 462 | 8/21/2022 | |
0.16.4 | 457 | 8/19/2022 | |
0.16.3 | 465 | 8/18/2022 | |
0.16.2 | 730 | 8/11/2022 | |
0.16.1 | 477 | 7/21/2022 | |
0.16.0 | 1,248 | 7/16/2022 | |
0.15.1 | 543 | 4/4/2022 | |
0.15.0 | 959 | 2/23/2022 | |
0.15.0-rc2 | 130 | 2/19/2022 | |
0.15.0-rc | 165 | 2/1/2022 | |
0.14.3 | 350 | 12/19/2021 | |
0.11.0 | 571 | 6/25/2021 | |
0.8.0 | 428 | 1/29/2021 |
Fixed triangle writing, added IsReadOnly to CGameCtnMediaTrack.