Skip to content

package console

import "kaiju/systems/console"

Variables

ErrCommandNotFound

errors.New("the command with the given key does not exist")

Functions

UnlinkHost

func UnlinkHost(host *engine.Host)

Types

Console

struct

type Console struct {
    // Has unexported fields.
}

For

func For(host *engine.Host) *Console

Console.AddCommand

func (c *Console) AddCommand(key, description string, fn ConsoleFunc)

Console.Data

func (c *Console) Data(key string) ConsoleData

Console.DeleteData

func (c *Console) DeleteData(key string)

Console.ExecCommand

func (c *Console) ExecCommand(key, arg string) (string, error)

Console.HasData

func (c *Console) HasData(key string) bool

Console.Host

func (c *Console) Host() *engine.Host

Console.IsActive

func (c *Console) IsActive() bool

Console.SetData

func (c *Console) SetData(key string, data ConsoleData)

Console.SetUIGroup

func (c *Console) SetUIGroup(group *ui.Group)

Console.Write

func (c *Console) Write(message string)

ConsoleData

interface

type ConsoleData interface{}

ConsoleFunc

func

type ConsoleFunc func(*engine.Host, string) string