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 ...
Click to show internal directories.
Click to hide internal directories.