GodotLayersSourceGenerator 1.1.1

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

GodotLayersSourceGenerator

Source generator that will emit Godot layer names as constant values for use in masks using a Source Generator.

image

Will generate code so you can grab these layers statically and typed using C# code.

using Godot;

var myMask1 = LayerNames.Render2D.ImLayer1Mask;
var myMask2 = LayerNames.Render2D.ImLayer2Mask;

Installation

  1. Grab the Source Generator from nuget.
  2. Add the project.godot as an additional file to your .csproj project file. Like this snippet:
<ItemGroup>
  <AdditionalFiles Include="project.godot" />
</ItemGroup>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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
1.1.1 257 2/11/2024
1.1.0 199 2/11/2024
1.0.1 279 10/15/2023
1.0.0 152 10/15/2023