scripts

package
v0.0.0-...-332bf77 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScriptTypeNone   ScriptType = "none"
	ScriptTypeCustom            = "custom"
	ScriptTypeItem              = "item"
	ScriptTypeRoom              = "rooom"
	ScriptTypeQuest             = "quest"
	ScriptTypeNPC               = "npc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Script

type Script struct {
	//ID          string `bson:"id,omitempty" json:"id"`
	*entities.Entity `bson:",inline"`

	Name        string     `bson:"name,omitempty" json:"name"`
	Description string     `bson:"description,omitempty" json:"description"`
	Code        string     `bson:"code,omitempty" json:"code"`
	Type        ScriptType `bson:"type,omitempty" json:"type"`
}

Script ...

type ScriptRunner

type ScriptRunner interface {
	Run(script Script, ctx interface{}) interface{}
}

ScriptRunner ...

type ScriptType

type ScriptType string

ScriptType type

type ScriptTypes

type ScriptTypes []ScriptType

ScriptTypes ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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