Documentation
¶
Index ¶
- Variables
- func AddEntity(name string, id string, args map[string]interface{}) error
- func GetBoolComponent(id string, name string) (bool, error)
- func GetInt64Component(id string, name string) (int64, error)
- func GetIntComponent(id string, name string) (int, error)
- func GetIntFromHashComponent(id string, name string, key string) (int, error)
- func GetStringComponent(id string, name string) (string, error)
- func GetStringFromHashComponent(id string, name string, key string) (string, error)
- func ParseCommand(sets []string, session session.Session, input string)
- func RegisterCommandSet(set *command_set.CommandSet)
- func RegisterController(controller session.Controller)
- func RegisterEntityType(entityType entity_type.EntityType)
- func RegisterLoadableDirectory(dir string)
- func RegisterSystem(system system.System)
- func RemoveEntity(id string)
- func SetBoolComponent(id string, name string, value bool)
- func SetInt64Component(id string, name string, value int64)
- func SetIntComponent(id string, name string, value int)
- func SetIntInHashComponent(id string, name, key string, value int)
- func SetStringComponent(id string, name, value string)
- func SetStringInHashComponent(id string, name, hash, value string)
- func WriteToConnection(id string, data string)
- func WriteToConnectionF(id string, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Plugin = world{ // contains filtered or unexported fields }
Functions ¶
func GetInt64Component ¶
GetInt64Component returns the value of an int64 component.
func GetIntComponent ¶
GetIntComponent returns the value of an int component.
func GetIntFromHashComponent ¶
GetIntFromHashComponent returns the value of an int value from a hash component.
func GetStringComponent ¶
GetStringComponent returns the value of a string component.
func GetStringFromHashComponent ¶
GetStringFromHashComponent returns the value of a string value from a hash component.
func RegisterCommandSet ¶
func RegisterCommandSet(set *command_set.CommandSet)
RegisterCommandSet registers a command set with the world.
func RegisterController ¶
func RegisterController(controller session.Controller)
RegisterController registers a controller with the world.
func RegisterEntityType ¶
func RegisterEntityType(entityType entity_type.EntityType)
RegisterEntityType registers an entity type with the world.
func RegisterLoadableDirectory ¶
func RegisterLoadableDirectory(dir string)
RegisterLoadableDirectory registers a directory to be loaded.
func RegisterSystem ¶
RegisterSystem registers a system with the world.
func RemoveEntity ¶
func RemoveEntity(id string)
func SetBoolComponent ¶
func SetInt64Component ¶
func SetIntComponent ¶
func SetIntInHashComponent ¶
func SetStringComponent ¶
func WriteToConnection ¶
func WriteToConnectionF ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.