Skip to content

Commit

Permalink
Expose set_program in Sandbox for testing and manual instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Sep 11, 2024
1 parent 1ca559f commit a296080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ String Sandbox::_to_string() const {
void Sandbox::_bind_methods() {
// Methods.
ClassDB::bind_method(D_METHOD("get_functions"), &Sandbox::get_functions);
ClassDB::bind_method(D_METHOD("set_program", "program"), &Sandbox::set_program);
{
MethodInfo mi;
mi.arguments.push_back(PropertyInfo(Variant::STRING, "function"));
Expand Down

0 comments on commit a296080

Please sign in to comment.