CrossPrimitives.GodotAdapterGenerator 1.1.0.2

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

CrossPrimitives.GodotAdapterGenerator

This package generates the necessary code to convert between CrossPrimitives types and Godot's built-in types. It internally uses Unsafe.As<,>, assuming that the structures have an identical memory layout to Godot's built-in types. This ensures high performance with zero allocations and no data copying.

Additionally, this package generates aliases for CrossPrimitives types to avoid name conflicts with Godot's built-in types. This is useful when you want to use both CrossPrimitives and Godot types in the same file without ambiguity.

global using CpVector2 = CrossPrimitives.Vector2;
global using CpVector2i = CrossPrimitives.Vector2i;
global using CpVector3 = CrossPrimitives.Vector3;
global using CpVector3i = CrossPrimitives.Vector3i;
global using CpVector4 = CrossPrimitives.Vector4;
global using CpVector4i = CrossPrimitives.Vector4i;
global using CpColor = CrossPrimitives.Color;
...
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.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
1.1.0.2 90 4/26/2025
1.1.0.1 99 4/26/2025
1.1.0 80 4/26/2025