Skip to content

C# Wrapper #375

@Renari

Description

@Renari

Currently to call Beehave methods in C# you have to do something like this:

var action = GetNode("BeehaveTree").Call("get_running_action");

Currently to use beehave in a C# project requires calling GetNode("node").Call("xxx") with strings functions names. This is prone to causing runtime issues, for example if beehave changed a method this would still compile in C#.

One such example:
https://github.com/Portponky/better-terrain/blob/main/addons/better-terrain/BetterTerrain.cs

var action = GetNode<BeehaveTree>("BeehaveTree").getRunningAction();

This also heavily eases use within IDE, because through this wrapper we can use known type declarations instead of everything coming through as GodotObjects.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions