Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoBridgeModule ¶
type GoBridgeModule struct {
// contains filtered or unexported fields
}
GoBridgeModule gobridge 模块
func NewGoBridgeModule ¶
func NewGoBridgeModule(engine model.Engine) *GoBridgeModule
NewGoBridgeModule 创建 gobridge 模块实例
func (*GoBridgeModule) CallLuaCallback ¶
func (m *GoBridgeModule) CallLuaCallback(funcName string, args ...interface{}) ([]interface{}, error)
CallLuaCallback 从 Go 代码调用已注册的 Lua 回调函数 参数: funcName (string) - 函数名称
args (...interface{}) - 传递给 Lua 函数的参数
返回值: ([]interface{}, error) - Lua 函数的返回值和错误
func (*GoBridgeModule) IsAvailable ¶
func (m *GoBridgeModule) IsAvailable() bool
IsAvailable 返回模块是否可用
Click to show internal directories.
Click to hide internal directories.