node

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() model.Module

GetModule 获取模块实例

Types

type Bounds

type Bounds struct {
	Left   int
	Top    int
	Right  int
	Bottom int
}

Bounds 边界

type NodeModule

type NodeModule struct {
	// contains filtered or unexported fields
}

func New

func New() *NodeModule

func (*NodeModule) Inject

func (m *NodeModule) Inject(state *lua.LState)

func (*NodeModule) IsAvailable

func (m *NodeModule) IsAvailable() bool

IsAvailable 返回模块是否可用

func (*NodeModule) Name

func (m *NodeModule) Name() string

Name 返回模块名称

func (*NodeModule) Register

func (m *NodeModule) Register(engine model.Engine) error

Register 向引擎注册模块的方法

func (*NodeModule) WrapNodeTable

func (m *NodeModule) WrapNodeTable(L *lua.LState, table *lua.LTable)

WrapNodeTable 包装节点表,添加节点方法

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

Selector 选择器结构体

type SelectorCondition

type SelectorCondition struct {
	// contains filtered or unexported fields
}

SelectorCondition 选择器条件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL