Documentation ¶
Index ¶
- type EventManager
- func (m *EventManager) AddCommand(c *command.Command)
- func (m *EventManager) AddEventHandler(event_type string, handler reflect.Value)
- func (m *EventManager) AddEventType(event_type string)
- func (m *EventManager) EnableBasicHandlers()
- func (m *EventManager) GetCommandTree() *packet.OutgoingPacket
- func (m *EventManager) HandleCommand(command string, player *player.Player)
- func (m *EventManager) HandleEvent(event_type string, params ...interface{}) bool
- func (m *EventManager) HandleTabComplete(player *player.Player, id int32, command string)
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)
Click to show internal directories.
Click to hide internal directories.