RobSimulatorGroup / gobot

Go, robot go!
GNU Lesser General Public License v3.0
16 stars 2 forks source link

Test type of NodePath #29

Closed Wuqiqi123 closed 1 year ago

Wuqiqi123 commented 1 year ago

auto type = gobot::Type::get_by_name("NodePath"); auto var2 = type.create();

The piece of code show creating a NodePath type and using this type to create a new instance(call constructor of NodePath, and using policy CtorAsObject).

Even though, rttr support call contructor with parameter, but we always using non-parameter constructor because we don't want to memorize parameter counts and type of contructor.