Chickensoft.GodotNodeInterfaces 1.0.0-godot4.2.0-beta.1

This is a prerelease version of Chickensoft.GodotNodeInterfaces.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Chickensoft.GodotNodeInterfaces --version 1.0.0-godot4.2.0-beta.1                
NuGet\Install-Package Chickensoft.GodotNodeInterfaces -Version 1.0.0-godot4.2.0-beta.1                
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="Chickensoft.GodotNodeInterfaces" Version="1.0.0-godot4.2.0-beta.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chickensoft.GodotNodeInterfaces --version 1.0.0-godot4.2.0-beta.1                
#r "nuget: Chickensoft.GodotNodeInterfaces, 1.0.0-godot4.2.0-beta.1"                
#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.
// Install Chickensoft.GodotNodeInterfaces as a Cake Addin
#addin nuget:?package=Chickensoft.GodotNodeInterfaces&version=1.0.0-godot4.2.0-beta.1&prerelease

// Install Chickensoft.GodotNodeInterfaces as a Cake Tool
#tool nuget:?package=Chickensoft.GodotNodeInterfaces&version=1.0.0-godot4.2.0-beta.1&prerelease                

GodotNodeInterfaces

Chickensoft Badge Discord Read the docs

Godot node interfaces and adapters.


<p align="center"> <img alt="Chickensoft.GodotNodeInterfaces" src="Chickensoft.GodotNodeInterfaces/icon.png" width="200"> </p>

🤔 What...why?

In a perfect world, there are cases where mocking Godot nodes for testing makes a lot of sense:

  • You are a TDD cultist.
  • You want to unit-test a Godot node script.
  • You don't want to instantiate the corresponding scene for a node script. Why? Because instantiating a scene also instantiates any children and their scripts, and so on. Just instantiating scripts and adding them to the scene causes test coverage to be collected, and it ends up covering far more of the app than the actual system-under-test (the node script you were trying to test), which makes it hard to tell which scripts are still un-tested.

GodotSharp doesn't expose interfaces for Godot nodes, making it very expensive or difficult to mock them.

If you're still confused, this probably isn't for you. It's one of those "you'll know if you ever want/need this" type of things. This is really just for those completionists who like writing tests and getting 100% code coverage.

💁 Getting Help

Is this package broken? Encountering obscure C# build problems? We'll be happy to help you in the Chickensoft Discord server.

💪 Contributing

This project contains a very hastily written console generator program that uses reflection (yep!) to find all the types in GodotSharp that are or extend the Godot Node class, and then generates interfaces, adapters, and an adapter factory.

The actual package is left empty — we generate the project in CI/CD so that we can keep this package up-to-date with renovatebot and automatically release a new version whenever a new GodotSharp package drops.

🐞 Debugging

A VSCode launch profile is provided that allows you to debug the generator program. This can be great when trying to figure out why it's generating invalid code.

Important: You must setup a GODOT environment variable for the launch configurations above. If you haven't done so already, please see the Chickensoft Setup Docs.

🏚 Renovatebot

This repository includes a renovate.json configuration for use with Renovatebot to help keep it up-to-date.

Renovatebot Pull Request

Unlike Dependabot, Renovatebot is able to combine all dependency updates into a single pull request — a must-have for Godot C# repositories where each sub-project needs the same Godot.NET.Sdk versions. If dependency version bumps were split across multiple repositories, the builds would fail in CI.

The easiest way to add Renovatebot to your repository is to install it from the GitHub Marketplace. Note that you have to grant it access to each organization and repository you want it to monitor.

The included renovate.json includes a few configuration options to limit how often Renovatebot can open pull requests as well as regex's to filter out some poorly versioned dependencies to prevent invalid dependency version updates.

If your project is setup to require approvals before pull requests can be merged and you wish to take advantage of Renovatebot's auto-merge feature, you can install the Renovate Approve bot to automatically approve the Renovate dependency PR's. If you need two approvals, you can install the identical Renovate Approve 2 bot. See this for more information.


🐣 Package generated from a 🐤 Chickensoft Template — https://chickensoft.games

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Chickensoft.GodotNodeInterfaces:

Repository Stars
chickensoft-games/GameDemo
The Chickensoft Game Demo — a fully tested, third-person 3D game built with Godot and C#. Now with saving and loading!
chickensoft-games/AutoInject
Node-based dependency injection for C# Godot scripts at build-time, including utilities for automatic node-binding, additional lifecycle hooks, and .net-inspired notification callbacks.
Version Downloads Last updated
2.2.30 231 11/13/2024
2.2.29 323 10/30/2024
2.2.28 344 10/13/2024
2.2.27 149 10/9/2024
2.2.26 121 10/4/2024
2.2.25 236 9/25/2024
2.2.24 261 9/18/2024
2.2.23 236 9/10/2024
2.2.22 639 8/16/2024
2.2.21 142 8/15/2024
2.2.20-godot4.3.0-rc.3 78 8/14/2024
2.2.19-godot4.3.0-rc.3 65 8/14/2024
2.2.18-godot4.3.0-rc.3 81 8/13/2024
2.2.17-godot4.3.0-rc.3 71 8/8/2024
2.2.16-godot4.3.0-rc.3 69 8/8/2024
2.2.15-godot4.3.0-rc.2 46 8/2/2024
2.2.14-godot4.3.0-rc.2 49 8/1/2024
2.2.13-godot4.3.0-rc.1 56 8/1/2024
2.2.12-godot4.3.0-rc.1 79 7/25/2024
2.2.11-godot4.3.0-beta.3 78 7/10/2024
2.2.10-godot4.3.0-beta.3 54 7/9/2024
2.2.9-godot4.3.0-beta.2 78 6/20/2024
2.2.8-godot4.3.0-beta.1 67 6/20/2024
2.2.7-godot4.3.0-beta.1 65 6/12/2024
2.2.6-godot4.3.0-beta.1 52 6/11/2024
2.2.5-godot4.3.0-beta.1 73 5/31/2024
2.2.4 819 5/30/2024
2.2.3 245 5/16/2024
2.2.2 137 5/15/2024
2.2.1 169 5/11/2024
2.2.0 385 5/11/2024
2.1.44 111 5/8/2024
2.1.43 150 4/30/2024
2.1.42 163 4/17/2024
2.1.41 133 4/17/2024
2.1.40-godot4.2.2-rc.3.1 66 4/12/2024
2.1.39-godot4.2.2-rc.3.1 56 4/11/2024
2.1.38-godot4.2.2-rc.3.1 58 4/10/2024
2.1.37-godot4.2.2-rc.3 61 4/9/2024
2.1.36-godot4.2.2-rc.2 71 3/20/2024
2.1.35-godot4.2.2-rc.2 57 3/19/2024
2.1.34-godot4.2.2-rc.2 62 3/14/2024
2.1.33-godot4.2.2-rc.2 62 3/13/2024
2.1.32-godot4.2.2-rc.1 52 3/12/2024
2.1.31-godot4.2.2-rc.1 63 3/3/2024
2.1.30-godot4.2.2-rc.1 61 3/2/2024
2.1.29-godot4.2.2-rc.1 63 2/29/2024
2.1.28-godot4.2.2-rc.1 67 2/14/2024
2.1.27-godot4.2.2-rc.1 65 2/14/2024
2.1.26-godot4.2.2-rc.1 63 2/13/2024
2.1.25-godot4.2.2-rc.1 65 2/8/2024
2.1.24-godot4.2.2-rc.1 63 2/6/2024
2.1.23-godot4.2.2-rc.1 64 2/2/2024
2.1.22-godot4.2.2-rc.1 69 1/26/2024
2.1.21-godot4.2.2-rc.1 53 1/26/2024
2.1.20 366 1/23/2024
2.1.19 134 1/10/2024
2.1.18 941 12/20/2023
2.1.17 142 12/18/2023
2.1.16 166 12/16/2023
2.1.15 151 12/13/2023
2.1.14 149 12/12/2023
2.1.13-godot4.2.1-rc.1 83 12/8/2023
2.1.12-godot4.2.1-rc.1 73 12/7/2023
2.1.11 162 12/4/2023
2.1.10 182 11/30/2023
2.1.9 141 11/30/2023
2.1.8-godot4.2.0-rc.2 81 11/26/2023
2.1.7-godot4.2.0-rc.2 65 11/26/2023
2.1.6-godot4.2.0-rc.2 67 11/25/2023
2.1.5-godot4.2.0-rc.1 77 11/22/2023
2.1.4-godot4.2.0-rc.1 81 11/17/2023
2.1.3-godot4.2.0-beta.6 65 11/14/2023
2.1.2-godot4.2.0-beta.6 60 11/14/2023
2.1.1-godot4.2.0-beta.6 68 11/13/2023
2.1.0-godot4.2.0-beta.5 511 11/9/2023
2.0.0-godot4.2.0-beta.5 109 11/8/2023
1.8.10-godot4.2.0-beta.5 67 11/7/2023
1.8.9-godot4.2.0-beta.5 74 11/6/2023
1.8.8-godot4.2.0-beta.4 73 11/3/2023
1.8.7-godot4.2.0-beta.4 67 10/31/2023
1.8.6-godot4.2.0-beta.3 74 10/27/2023
1.8.5-godot4.2.0-beta.3 66 10/24/2023
1.8.4-godot4.2.0-beta.2 70 10/20/2023
1.8.3-godot4.2.0-beta.2 93 10/20/2023
1.8.2-godot4.2.0-beta.2 65 10/19/2023
1.8.1-godot4.2.0-beta.2 67 10/19/2023
1.8.0-godot4.2.0-beta.1 109 10/17/2023
1.7.0-godot4.2.0-beta.1 79 10/17/2023
1.6.0-godot4.2.0-beta.1 73 10/17/2023
1.5.0-godot4.2.0-beta.1 74 10/17/2023
1.4.0-godot4.2.0-beta.1 80 10/17/2023
1.3.0-godot4.2.0-beta.1 74 10/17/2023
1.2.0-godot4.2.0-beta.1 79 10/15/2023
1.1.1-godot4.2.0-beta.1 76 10/15/2023
1.1.0-godot4.2.0-beta.1 80 10/15/2023
1.0.1-godot4.2.0-beta.1 81 10/15/2023
1.0.0-godot4.2.0-beta.1 76 10/15/2023

Chickensoft.GodotNodeInterfaces release.