RecursiveAI.OneGame.Control 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RecursiveAI.OneGame.Control --version 1.0.0
                    
NuGet\Install-Package RecursiveAI.OneGame.Control -Version 1.0.0
                    
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="RecursiveAI.OneGame.Control" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecursiveAI.OneGame.Control" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OneGame.Control" />
                    
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 RecursiveAI.OneGame.Control --version 1.0.0
                    
#r "nuget: RecursiveAI.OneGame.Control, 1.0.0"
                    
#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 RecursiveAI.OneGame.Control@1.0.0
                    
#: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=RecursiveAI.OneGame.Control&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OneGame.Control&version=1.0.0
                    
Install as a Cake Tool

onegame

A C#-native game engine with no editor: a game is plain C# plus text assets. Entities, sync, rendering and UI are generated or enforced at build time by Roslyn source generators and analyzers, everything is NativeAOT- and trim-clean, and a command line, a C# test API and a live-control protocol (MCP) let you build, run, inspect, capture and replay games from a terminal.

It runs on Windows, Linux (X11 and Wayland, the Steam Deck), macOS, Android, iOS and the web (WebGPU). Clients and servers run the same stack, so state syncs between processes, with prediction, authority transfer and drift detection built in.

Getting started

Games are built against a checkout of this repository. The RecursiveAI.OneGame.* packages on nuget.org carry the engine libraries and analyzers, but a game's build (build/Game.targets, the onegame command, exports) currently comes from the checkout, so start there:

git clone https://github.com/recursive-ai-oss/onegame
cd onegame
dotnet build OneGame.slnx
dotnet run --project src/OneGame.Cli -- new mygame --dir ../mygame --engine .
cd ../mygame
dotnet run --project ../onegame/src/OneGame.Cli -- run --headless --frames 60 --json

Publishing the command once (dotnet publish src/OneGame.Cli -c Release -r linux-x64, or win-x64/osx-arm64) and putting it on your PATH lets you type onegame new, onegame test, onegame export and so on; set ONEGAME_ROOT to the checkout when the command lives elsewhere.

Then read, in order:

  • docs/driving-a-game.md: making a game, scenarios, replays, captures and live control.
  • docs/ui-guide.md: screens, styling and the component kit.
  • docs/exporting.md: Windows, Linux, macOS, Android, iOS, web and dedicated-server builds.
  • docs/devices.md: checking a build on real phones, tablets, the Steam Deck and gamepads.
  • docs/interfaces/: the written contracts between engine areas.

Samples

  • samples/solitaire: a UI-heavy card game.
  • samples/bricks: a real-time brick-breaker with levels in YAML, power-ups and a high-score table.
  • samples/lanterns: a networked 3D game on two island servers and a master, with players moving between servers and trades settled through the master.

Each sample has scenarios (onegame test --json in its folder) and a README.

Build and test the engine

Requires the .NET SDK pinned in global.json.

dotnet build OneGame.slnx
dotnet test --solution OneGame.slnx

Build output goes to artifacts/ at the repository root; set ONEGAME_ARTIFACTS to put it elsewhere. Shaders are compiled during the build by RecursiveAI.OneShader.Build, and audio decoding and mixing come from RecursiveAI.OneAudio; both restore from nuget.org. Native AOT publishing on Linux needs clang and zlib1g-dev.

Layout

  • src/: the engine, one project per area, the OneGame.Generators analyzers and source generators, and the onegame command in OneGame.Cli.
  • tests/: one test project per area, plus OneGame.AotSmoke, a native-AOT app that touches every runtime assembly.
  • samples/: the sample games.
  • build/: the MSBuild targets games import.
  • tools/: CI and device scripts.
  • docs/: documentation.

Build rules

  • Only our code ships: projects under src/ and samples/ may reference the one* family of libraries and nothing else, and the build fails otherwise (build/PackageGuard.targets). Test and tool projects may use any package.
  • Warnings are errors, nullable is on, builds are deterministic, and every shipping project is checked by the AOT and trim analyzers.

License

Licensed under either of MIT (LICENSE-MIT) or Apache-2.0 (LICENSE-APACHE), at your option. Copyright (c) Recursive AI, LLC.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on RecursiveAI.OneGame.Control:

Package Downloads
RecursiveAI.OneGame.Testing

The C# test API: in-process clusters, scenarios, recordings and captures.

RecursiveAI.OneGame.Live

Development-build tools of a running game: live control over MCP, scenario runs, captures and replays. Release builds do not reference this project.

RecursiveAI.OneGame.Server.Live

Live control of a running game server over the same MCP surface as a development game: plugin and scope operations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.9.0 0 10/28/2026
1.8.0 0 10/28/2026
1.7.0 0 10/28/2026
1.6.1 0 10/28/2026
1.6.0 0 10/27/2026
1.5.2 0 10/27/2026
1.5.1 42 10/27/2026
1.5.0 52 10/27/2026
1.4.0 45 10/27/2026
1.3.0 45 10/27/2026
1.2.0 48 10/27/2026
1.1.2 44 10/27/2026
1.1.1 55 10/26/2026
1.1.0 50 10/26/2026
1.0.0 52 10/26/2026