event

package
v0.0.0-...-2a33acd Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventManager

type EventManager struct {
	// contains filtered or unexported fields
}

func NewEventManager

func NewEventManager(world_manager *world.WorldManager) *EventManager

func (*EventManager) AddCommand

func (m *EventManager) AddCommand(c *command.Command)

func (*EventManager) AddEventHandler

func (m *EventManager) AddEventHandler(event_type string, handler reflect.Value)

func (*EventManager) AddEventType

func (m *EventManager) AddEventType(event_type string)

func (*EventManager) EnableBasicHandlers

func (m *EventManager) EnableBasicHandlers()

func (*EventManager) GetCommandTree

func (m *EventManager) GetCommandTree() *packet.OutgoingPacket

func (*EventManager) HandleCommand

func (m *EventManager) HandleCommand(command string, player *player.Player)

func (*EventManager) HandleEvent

func (m *EventManager) HandleEvent(event_type string, params ...interface{}) bool

The params passed into this function should match the params of the functions added in AddEventHandler

func (*EventManager) HandleTabComplete

func (m *EventManager) HandleTabComplete(player *player.Player, id int32, command string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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