Lua: Fix Slavable & Automatable inheritance
This allows to cast VCAs into Slavables.
This commit is contained in:
parent
2a310e5f79
commit
ade3ea190c
@ -979,6 +979,8 @@ LuaBindings::common (lua_State* L)
|
|||||||
.deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
|
.deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
|
||||||
.addCast<Route> ("to_route")
|
.addCast<Route> ("to_route")
|
||||||
.addCast<VCA> ("to_vca")
|
.addCast<VCA> ("to_vca")
|
||||||
|
.addCast<Slavable> ("to_slavable")
|
||||||
|
.addCast<Automatable> ("to_automatable")
|
||||||
.addFunction ("is_auditioner", &Stripable::is_auditioner)
|
.addFunction ("is_auditioner", &Stripable::is_auditioner)
|
||||||
.addFunction ("is_private_route", &Stripable::is_private_route)
|
.addFunction ("is_private_route", &Stripable::is_private_route)
|
||||||
.addFunction ("is_master", &Stripable::is_master)
|
.addFunction ("is_master", &Stripable::is_master)
|
||||||
@ -1037,8 +1039,6 @@ LuaBindings::common (lua_State* L)
|
|||||||
|
|
||||||
.deriveWSPtrClass <Route, Stripable> ("Route")
|
.deriveWSPtrClass <Route, Stripable> ("Route")
|
||||||
.addCast<Track> ("to_track")
|
.addCast<Track> ("to_track")
|
||||||
.addCast<Automatable> ("to_automatable")
|
|
||||||
.addCast<Slavable> ("to_slavable")
|
|
||||||
.addFunction ("set_name", &Route::set_name)
|
.addFunction ("set_name", &Route::set_name)
|
||||||
.addFunction ("comment", &Route::comment)
|
.addFunction ("comment", &Route::comment)
|
||||||
.addFunction ("active", &Route::active)
|
.addFunction ("active", &Route::active)
|
||||||
|
Loading…
Reference in New Issue
Block a user