Start work on lua based plugin system
Some checks failed
/ docker (push) Has been cancelled

This commit is contained in:
Melody Becker 2025-06-02 17:40:53 +02:00
parent bf0aaaca8f
commit 94106bb82f
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
8 changed files with 430 additions and 1 deletions

12
plugins/api.go Normal file
View file

@ -0,0 +1,12 @@
package plugins
import lua "github.com/yuin/gopher-lua"
// TODO: Decide on the API made available to plugins
// Everything has to be a function, assume no internal state
// since the used lua state may vary between calls
type linstromApi struct{}
func insertLinstromApiIntoState(l *lua.LState) error {
panic("not implemented")
}