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
<PackageReference Include="CrossPrimitives.GodotAdapterGenerator" Version="1.1.0.2" />
<PackageVersion Include="CrossPrimitives.GodotAdapterGenerator" Version="1.1.0.2" />
<PackageReference Include="CrossPrimitives.GodotAdapterGenerator" />
paket add CrossPrimitives.GodotAdapterGenerator --version 1.1.0.2
#r "nuget: CrossPrimitives.GodotAdapterGenerator, 1.1.0.2"
#:package CrossPrimitives.GodotAdapterGenerator@1.1.0.2
#addin nuget:?package=CrossPrimitives.GodotAdapterGenerator&version=1.1.0.2
#tool nuget:?package=CrossPrimitives.GodotAdapterGenerator&version=1.1.0.2
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;
...
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.