Commit a58a73a3 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

dynamically add commands & signals

parent 35f3a254
......@@ -70,6 +70,8 @@ inline auto exposeEntity() {
bp::def(T::CLASS_NAME.c_str(), &internal::makeEntity1<T, Options>);
bp::def(T::CLASS_NAME.c_str(), &internal::makeEntity2<T, Options>);
if (!(Options & AddCommands)) obj.def("add_commands", &entity::addCommands);
if (!(Options & AddSignals)) obj.def("add_signals", &entity::addSignals);
return obj;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment