Skip to content
简体中文

Installation ​

Choose a runtime ​

NeedNuGet package
Lifecycle, events, state, resources, and coroutinesGeWuYou.GFramework.Core
Requests, notifications, and streamsGeWuYou.GFramework.Cqrs
Configuration, content packs, mods, saves, scenes, and UIGeWuYou.GFramework.Game
Use Game features in GodotGeWuYou.GFramework.Godot
Run ECS systems on ArchGeWuYou.GFramework.Ecs.Arch
Add Harmony method patches to code modsGeWuYou.GFramework.Game.Harmony
bash
dotnet add package GeWuYou.GFramework.Core

Game brings in Core, and Godot brings in Game. A project that defines contracts can reference the relevant .Abstractions package directly. The GeWuYou.GFramework metapackage bundles the Core, Game, and CQRS runtimes.

Requirements ​

Runtime packages target net8.0, net9.0, and net10.0. Check the target frameworks and dependencies of the NuGet version you choose. To build the repository or run its examples, use .NET SDK 10.0.403 or a newer patch in the same feature band, as specified in global.json. The Godot examples use Godot .NET 4.7.2.

Source generation ​

Add the .SourceGenerators package for the feature you use. The generator guide lists the entry points for enums, configuration, CQRS, and Godot.

NuGet consumers can set <EnableGFrameworkGlobalUsings>true</EnableGFrameworkGlobalUsings> in the project properties to enable package-provided global imports. Exclude a namespace with a GFrameworkExcludedUsing item.

Next, run the minimal example.

Apache License 2.0