wip(feat): bait package for hooks

pull/21/head
TorchedSammy 2021-03-26 01:12:55 -04:00
parent c5fa238156
commit aea035fe41
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package bait
import (
"github.com/chuckpreslar/emission"
"github.com/yuin/gopher-lua"
)
type Bait struct{}
func New() Bait {
return Bait{}
}
func (b *Bait) Loader(L *lua.LState) int {
var exports = map[string]lua.LGFunction{}
mod := L.SetFuncs(L.NewTable(), exports)
L.Push(mod)
return 1
}