War3Net.Build
6.0.1
dotnet add package War3Net.Build --version 6.0.1
NuGet\Install-Package War3Net.Build -Version 6.0.1
<PackageReference Include="War3Net.Build" Version="6.0.1" />
<PackageVersion Include="War3Net.Build" Version="6.0.1" />
<PackageReference Include="War3Net.Build" />
paket add War3Net.Build --version 6.0.1
#r "nuget: War3Net.Build, 6.0.1"
#:package War3Net.Build@6.0.1
#addin nuget:?package=War3Net.Build&version=6.0.1
#tool nuget:?package=War3Net.Build&version=6.0.1
War3Net.Build
About
War3Net.Build is a library for generating complete Warcraft III map scripts (JASS) from map data and compiling C# source code to Lua for use in Warcraft III maps. It is part of the War3Net modding library.
Key features
- Generate complete JASS map scripts from
Mapobjects - Compile C# code to war3map.lua using CSharpLua
- Render GUI triggers to JASS code
- Customizable script generation with virtual methods for extensibility
- Build MPQ archives with all map assets
How to Use
Generate a JASS map script
using War3Net.Build;
// Load or create your map
var map = Map.Open("path/to/map.w3x");
// Create the script builder and configure it
var scriptBuilder = new MapScriptBuilder();
scriptBuilder.SetDefaultOptionsForMap(map);
// Generate the JASS script
string jassScript = scriptBuilder.Build(map);
Generate a map script for CSharpLua (Lua output)
using War3Net.Build;
var map = Map.Open("path/to/map.w3x");
var scriptBuilder = new MapScriptBuilder();
scriptBuilder.SetDefaultOptionsForCSharpLua(lobbyMusic: "Sound\\Music\\mp3Music\\War3IntroX.mp3");
string jassScript = scriptBuilder.Build(map);
Render a trigger to JASS
using System.IO;
using War3Net.Build;
using War3Net.Build.Script;
using War3Net.CodeAnalysis;
var writer = new IndentedTextWriter(new StringWriter());
var triggerData = TriggerData.Default;
var variables = map.Triggers.Variables;
var renderer = new TriggerRenderer(writer, triggerData, variables);
renderer.RenderTrigger(triggerDefinition);
Main Types
The main types provided by this library are:
War3Net.Build.MapScriptBuilder- Generates complete JASS map scripts from Map objects with customizable outputWar3Net.Build.TriggerRenderer- Renders individual trigger definitions into JASS codeWar3Net.Build.TriggerRendererContext- Context for trigger rendering operationsWar3Net.Build.TrigFunctionIdentifierBuilder- Helper for building unique trigger function identifiersWar3Net.Build.BuildResult- Result of a build operation with success status and diagnosticsWar3Net.Build.CompileResult- Result of a compilation operation
Related Packages
- War3Net.Build.Core - Parsers and serializers for war3map files
- War3Net.CodeAnalysis.Jass - Parse and render JASS source files
- War3Net.CodeAnalysis.Transpilers - Transpile JASS to C# or Lua
- War3Net.IO.Mpq - Read and write MPQ archives
Feedback and contributing
War3Net.Build is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Disclaimer
This README was generated with the assistance of AI and may contain inaccuracies. Please verify the information and consult the source code for authoritative details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. 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. 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. |
-
net5.0
- War3Net.Build.Core (>= 6.0.1)
- War3Net.CodeAnalysis.Transpilers (>= 6.0.1)
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 |
|---|---|---|
| 6.0.1 | 100 | 2/1/2026 |
| 6.0.0 | 107 | 1/25/2026 |
| 5.8.2 | 743 | 9/27/2025 |
| 5.8.1 | 167 | 9/12/2025 |
| 5.8.0 | 170 | 9/6/2025 |
| 5.7.1 | 6,298 | 1/19/2023 |
| 5.7.0 | 511 | 1/8/2023 |
| 5.6.1 | 517 | 1/7/2023 |
| 5.6.0.1 | 524 | 12/28/2022 |
| 5.6.0 | 504 | 12/20/2022 |
| 5.5.7 | 1,754 | 12/14/2022 |
| 5.5.6 | 669 | 11/30/2022 |
| 5.5.5 | 503 | 11/13/2022 |
| 5.5.3 | 578 | 10/29/2022 |
| 5.5.2 | 562 | 10/25/2022 |
| 5.5.0 | 1,340 | 8/20/2022 |
| 5.4.5 | 877 | 5/27/2022 |
| 5.4.2 | 1,578 | 4/24/2022 |
| 5.4.1 | 889 | 2/13/2022 |
| 5.4.0 | 809 | 2/13/2022 |