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.
using LevelXML;
line to the file that you want to use the library inLevel controlsVehicleLevel = new Level("./controlsVehicle.xml");
Vehicle controlsVehicle = (Vehicle)controlsVehicleLevel.Groups[0];
controlsVehicle.GrabbingPose = GrabbingPose.Hold;
Rectangle floor = new()
{
Y = 5100,
X = 0,
Width = 5000,
Height = 50
};
Level level = new(controlsVehicleLevel.Entities.Concat(new[] {floor}).ToArray());
Console.WriteLine(level.ToXML());