PluginMessage event

This commit is contained in:
JunDao
2019-05-19 11:32:31 +08:00
parent 4653cab5e1
commit 7e8118e21f
8 changed files with 94 additions and 27 deletions

View File

@ -5,10 +5,11 @@ import (
)
type eventBroker struct {
GameStart func() error
ChatMsg func(msg chat.Message, pos byte) error
Disconnect func(reason chat.Message) error
HealthChange func() error
Die func() error
SoundPlay func(name string, category int, x, y, z float64, volume, pitch float32) error
GameStart func() error
ChatMsg func(msg chat.Message, pos byte) error
Disconnect func(reason chat.Message) error
HealthChange func() error
Die func() error
SoundPlay func(name string, category int, x, y, z float64, volume, pitch float32) error
PluginMessage func(channel string, data []byte) error
}