progress: Finished the chunk-level ui for the visualization
This commit is contained in:
1 parent
f941bf87f0
commit
e82ad34de5
3 files changed
+131
-26
No files matched your search
@@ -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"`
|
||||
|
||||
Reference in new issue
Block a user