Versions in this module Expand all Collapse all v1 v1.0.3 Nov 28, 2024 Changes in this version + const CallerID + const TriggerID + type Builtin struct + Fnc BuiltinFunc + NeedsNamePref bool + NeedsPosOff bool + ReadEvenMore bool + ReadMore bool + type BuiltinFunc func(r *Runtime) (int, error) + type ErrNoFunc struct + Func string + func (e *ErrNoFunc) Error() string + type Error struct + Err error + Func string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Func struct + func (f *Func) Call(caller, trigger Object, args ...interface{}) (gerr error) + func (f *Func) CallBuiltin(code int) (int, error) + func (f *Func) Def() *asm.FuncDef + func (f *Func) Name() string + type ObjID int + type Object interface + GetNoxScriptVal func(ind int) int32 + NoxScriptID func() ObjID + SetNoxScriptVal func(ind int, val int32) + type Runtime struct + func LoadScript(rd io.Reader) (*Runtime, error) + func NewRuntime() *Runtime + func (r *Runtime) AddString(s string) int + func (r *Runtime) BuiltinNamePref() string + func (r *Runtime) BuiltinPosOff() image.Point + func (r *Runtime) CallByName(name string, caller, trigger Object, args ...interface{}) error + func (r *Runtime) CallByPrefix(pref string, caller, trigger Object, args ...interface{}) error + func (r *Runtime) CallFirst(isSwitchToSolo bool) error + func (r *Runtime) FuncByInd(i int) *Func + func (r *Runtime) FuncByName(name string) *Func + func (r *Runtime) FuncByPref(pref string) []*Func + func (r *Runtime) GetCaller() Object + func (r *Runtime) GetString(i int) string + func (r *Runtime) GetTrigger() Object + func (r *Runtime) IndexByName(name string) int + func (r *Runtime) LoadScript(sc *asm.Script) error + func (r *Runtime) PanicsCompilerEnabled() bool + func (r *Runtime) PopBool() bool + func (r *Runtime) PopFloat32() float32 + func (r *Runtime) PopInt() int + func (r *Runtime) PopInt32() int32 + func (r *Runtime) PopObjectID() ObjID + func (r *Runtime) PopString() string + func (r *Runtime) PopUint32() uint32 + func (r *Runtime) PushBool(v bool) + func (r *Runtime) PushFloat32(v float32) + func (r *Runtime) PushInt(v int) + func (r *Runtime) PushInt32(v int32) + func (r *Runtime) PushObject(v Object) + func (r *Runtime) PushObjectID(v ObjID) + func (r *Runtime) PushString(s string) + func (r *Runtime) PushUint32(v uint32) + func (r *Runtime) ReadScript(rd io.Reader) error + func (r *Runtime) RegisterBuiltin(code int, b *Builtin) + func (r *Runtime) Reset() + func (r *Runtime) StackAt(i int) uint32