Split Dispatcher interface and use it across application

This commit is contained in:
ErickSkrauch
2020-04-20 14:29:33 +03:00
parent f58b980948
commit 2ea4c55d37
5 changed files with 22 additions and 27 deletions

View File

@@ -7,6 +7,7 @@ import (
"sync"
"github.com/elyby/chrly/api/mojang"
"github.com/elyby/chrly/dispatcher"
)
type broadcastResult struct {
@@ -72,7 +73,7 @@ type TexturesProvider interface {
}
type Emitter interface {
Emit(name string, args ...interface{})
dispatcher.Emitter
}
type Provider struct {