interpreter

package
v0.0.0-...-7e2f938 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PARAM_TYPE_INT      = 0x01
	PARAM_TYPE_STRING   = 0x02
	PARAM_TYPE_CARD     = 0x04
	PARAM_TYPE_GROUP    = 0x08
	PARAM_TYPE_EFFECT   = 0x10
	PARAM_TYPE_FUNCTION = 0x20
	PARAM_TYPE_BOOLEAN  = 0x40
	PARAM_TYPE_INDEX    = 0x80

	COROUTINE_FINISH = 1
	COROUTINE_YIELD  = 2
	COROUTINE_ERROR  = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interpreter

type Interpreter struct {
	PDuel        interfaces.Duel
	MsgBuf       [64]byte // TODO: char[64]
	LuaState     *lua.LState
	CurrentState *lua.LState
	Params       paramList
	Resumes      paramList
	Coroutines   coroutineMap
	NoAction     int32
	CallDepth    int32
}

Jump to

Keyboard shortcuts

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