simple ecs system

This commit is contained in:
Tnze
2022-05-23 10:04:01 +08:00
parent a5dd70d1ea
commit d2f7db9d0d
9 changed files with 239 additions and 110 deletions

32
server/dimension/world.go Normal file
View File

@ -0,0 +1,32 @@
package dimension
import (
"github.com/Tnze/go-mc/server"
)
type World struct {
}
func (w *World) Init(g *server.Game) {
//TODO implement me
panic("implement me")
}
func (w *World) Info() server.LevelInfo {
//TODO implement me
panic("implement me")
}
func (w *World) PlayerJoin(p *server.Player) {
//TODO implement me
panic("implement me")
}
func (w *World) PlayerQuit(p *server.Player) {
//TODO implement me
panic("implement me")
}
func (w *World) register() {
}