LevelXML 4.2.0

dotnet add package LevelXML --version 4.2.0
                    
NuGet\Install-Package LevelXML -Version 4.2.0
                    
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="LevelXML" Version="4.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LevelXML" Version="4.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LevelXML" />
                    
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 LevelXML --version 4.2.0
                    
#r "nuget: LevelXML, 4.2.0"
                    
#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 LevelXML@4.2.0
                    
#: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=LevelXML&version=4.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LevelXML&version=4.2.0
                    
Install as a Cake Tool

Overview

This library has a class hierarchy representing every feature in a Happy Wheels level.
It allows you to import the LevelXML format (the format that the game's import and export boxes use in its level editor) into objects in the class hierarchy, and it allows you to export to the LevelXML format, so that you can paste the levels back into the game again.

Usage

  1. Add the package to your project (a "dotnet add package" command)
  2. Add a using LevelXML; line to the file that you want to use the library in
  3. Use any preexisting LevelXML as segments of the level you want to construct, using Level's constructor.

Example:

Level controlsVehicleLevel = new Level("./controlsVehicle.xml");
  1. Construct new Entities and modify them using their properties.

Example:

Vehicle controlsVehicle = (Vehicle)controlsVehicleLevel.Groups[0];
controlsVehicle.GrabbingPose = GrabbingPose.Hold;
Rectangle floor = new()
{
   Y = 5100,
   X = 0,
   Width = 5000,
   Height = 50
};
  1. Combine all your entities into one array, and construct a new Level with them. Then, use Level's ToXML() method to get the LevelXML representation of your entire level. It is important that no objects in this list reference any objects outside of the list, or otherwise the library will throw an exception when calling ToXML().

Example:

Level level = new(controlsVehicleLevel.Entities.Concat(new[] {floor}).ToArray());
Console.WriteLine(level.ToXML());
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • 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
4.2.0 196 12/6/2024
4.1.0 221 8/18/2024
4.0.2 174 8/6/2024
4.0.1 161 8/4/2024
4.0.0 151 8/4/2024
3.0.0 165 8/3/2024
2.3.1 153 8/2/2024
2.3.0 171 8/1/2024
2.2.3 190 7/21/2024
2.2.2 185 7/16/2024
2.2.1 167 7/16/2024
2.2.0 170 7/15/2024
2.1.4 196 7/10/2024
2.1.3 178 7/7/2024
2.1.2 188 7/7/2024
2.1.1 187 7/7/2024