plugin

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Join int32 = iota
	Quit
	Chat
	BlockBreak
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Enable()
	Disable()

	IsReloadeable() bool
	Name() string
}

type PluginManager

type PluginManager interface {
	GetPlugin(name string) Plugin
	GetCommandManager() cmd.CommandManager
	GetEntityCreator() ents.EntityCreator

	CallEvent(event interface{}, eventType int32)
	AddListener(listener func(event interface{}), eventType int32, plugin Plugin)
	RemoveListener(eventType int32, plugin Plugin)
}

type StructPlugin

type StructPlugin struct {
	Enable        func()
	Disable       func()
	IsReloadeable bool
	Name          string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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