示例#1
0
func (cm *ChunkManager) queue(w *game.World, cc coords.Chunk, priority int) {
	status := cm.chunks[cc]
	status.priority = priority
	if status.sent == false && status.data == nil {
		status.data = w.Chunk(cc)
	}
	cm.chunks[cc] = status
}