Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateLuaDefinitionFile(L *lua.LState, filename string) error
- func NewLuaVM() *lua.LState
- func RegisterAllProtobufMessages(L *lua.LState)
- func RegisterProtobufMessage(L *lua.LState, msgType string, msg proto.Message)
- func RegisterProtobufMessageType(L *lua.LState)
- func RegisterProtobufMessagesFromPackage(L *lua.LState, pkg string)
- type MalManiFest
- type Plugin
Constants ¶
View Source
const ( LuaScript = "lua" TCLScript = "tcl" CNAScript = "cna" GoPlugin = "go" )
Variables ¶
View Source
var (
MalType = "lua"
)
Functions ¶
func GenerateLuaDefinitionFile ¶
generateLuaDefinitionFile 生成 Lua 函数定义和 Protobuf class 定义文件
func RegisterAllProtobufMessages ¶
RegisterAllProtobufMessages 注册 implantpb 和 clientpb 中的所有 Protobuf Message
func RegisterProtobufMessage ¶
RegisterProtobufMessage 注册 Protobuf message 类型到 Lua
func RegisterProtobufMessageType ¶
// 注册 Protobuf Message 的类型和方法
func RegisterProtobufMessagesFromPackage ¶
RegisterProtobufMessagesFromPackage 注册指定包中所有的 Protobuf Message
Types ¶
type MalManiFest ¶
type MalManiFest struct {
Name string `json:"name" yaml:"name"`
Type string `json:"type" yaml:"type"` // lua, tcl
Author string `json:"author" yaml:"author"`
Version string `json:"version" yaml:"version"`
EntryFile string `json:"entry" yaml:"entry"`
DependModule []string `json:"depend_module" yaml:"depend_modules"`
DependArmory []string `json:"depend_armory" yaml:"depend_armory"`
}
Click to show internal directories.
Click to hide internal directories.