Files
go-mc/bot/world/world.go
2020-09-19 15:59:03 -07:00

16 lines
282 B
Go

package world
import (
"sync"
"github.com/Tnze/go-mc/bot/world/entity"
)
// World record all of the things in the world where player at
type World struct {
entityLock sync.RWMutex
Entities map[int32]*entity.Entity
chunkLock sync.RWMutex
Chunks map[ChunkLoc]*Chunk
}