Atomic.CodeGen
2.1.6
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Atomic.CodeGen --version 2.1.6
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Atomic.CodeGen --version 2.1.6
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Atomic.CodeGen&version=2.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Atomic.CodeGen --version 2.1.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Atomic.CodeGen
Code generator for Atomic Entity Framework. Generates extension methods from C# attribute definitions.
Installation
dotnet tool install -g Atomic.CodeGen
Quick Start
# Initialize configuration
atomic-codegen init
# Generate code
atomic-codegen generate
Commands
| Command | Description |
|---|---|
wizard |
Interactive setup wizard |
init |
Initialize configuration |
generate |
Generate Entity API files |
scan |
Scan definitions (dry run) |
rename |
Rename tags, values, or behaviours |
configure |
Edit configuration |
ide |
IDE integration help |
Example
Define your entity structure:
[EntityAPI]
public static partial class CharacterAPI
{
enum Tags { Player, Enemy, Dead }
class Values { int Health; float Speed; }
}
Run atomic-codegen generate to create extension methods:
entity.IsPlayer(); // Check tag
entity.GetHealth(); // Get value
entity.SetHealth(100); // Set value
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.