add player package with key client-side player functionality, update protocol codecs, and refactor metadata definitions and slot usage

This commit is contained in:
2025-08-23 16:19:45 +08:00
parent cff9d4a809
commit 4528bdc86a
32 changed files with 2613 additions and 468 deletions

19
pkg/game/world/event.go Normal file
View File

@ -0,0 +1,19 @@
package world
import "git.konjactw.dev/patyhank/minego/pkg/bot"
type EntityRemoveEvent struct {
Entity bot.Entity
}
func (e EntityRemoveEvent) EventID() string {
return "world:entity_remove"
}
type EntityAddEvent struct {
EntityID int32
}
func (e EntityAddEvent) EventID() string {
return "world:entity_add"
}