-
-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Labels
🌺 enhancementNew feature or requestNew feature or request🧪 unit-tests-requiredRelated to writing unit tests.Related to writing unit tests.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🌺 enhancementNew feature or requestNew feature or request🧪 unit-tests-requiredRelated to writing unit tests.Related to writing unit tests.