progress: Finished the chunk-level ui for the visualization

This commit is contained in:
Nicholas Novak
2023-10-29 19:32:23 -07:00
parent f941bf87f0
commit e82ad34de5
3 changed files with 131 additions and 26 deletions

View File

@@ -36,10 +36,14 @@ type ChunkPos struct {
Z int `json:"z"`
}
func (cp *ChunkPos) ToFileName() string {
func (cp ChunkPos) ToFileName() string {
return fmt.Sprintf("p.%d.%d.chunk", cp.X, cp.Z)
}
func (cp ChunkPos) StringCoords() string {
return fmt.Sprintf("%d, %d", cp.X, cp.Z)
}
type ChunkSection struct {
// The count of full blocks in the chunk
BlockCount uint `json:"block_count"`