define hooks

This commit is contained in:
2026-04-22 19:52:13 +02:00
parent 06992010db
commit 6f891dcb9c
+13
View File
@@ -60,6 +60,19 @@ void init_lua(RDSEncoder* _enc) {
lua_registertotable(L, "get_writing_program", lua_get_rds_writing_program);
lua_setglobal(L, "dp");
lua_newtable(L);
lua_newtable(L);
lua_setfield(L, -2, "on_init");
lua_newtable(L);
lua_setfield(L, -2, "on_start");
lua_newtable(L);
lua_setfield(L, -2, "on_state");
lua_newtable(L);
lua_setfield(L, -2, "tick");
lua_newtable(L);
lua_setfield(L, -2, "rt_transmission");
lua_setfield(L, -1, "hooks");
lua_newtable(L);
lua_newtable(L);