-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this patch, chunk properties were still prefixed with WORLD-, which no longer makes sense after #292. Moreover, blocks and biomes did not have CHUNK- as part of their name at all. After renaming, there were a lot of clashes with variables such as CHUNK-X which subsequently needed renaming, too.
- Loading branch information
Showing
4 changed files
with
180 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
*> --- Copybook: reference to a loaded chunk structure --- | ||
|
||
01 WORLD-CHUNK BASED. | ||
02 WORLD-CHUNK-DIRTY BINARY-CHAR UNSIGNED. | ||
02 WORLD-CHUNK-X BINARY-LONG. | ||
02 WORLD-CHUNK-Z BINARY-LONG. | ||
02 WORLD-SECTION OCCURS WORLD-SECTION-COUNT TIMES. | ||
03 WORLD-SECTION-NON-AIR BINARY-LONG UNSIGNED. | ||
78 CHUNK-SECTION-COUNT VALUE 24. | ||
|
||
01 CHUNK BASED. | ||
02 CHUNK-DIRTY BINARY-CHAR UNSIGNED. | ||
02 CHUNK-X BINARY-LONG. | ||
02 CHUNK-Z BINARY-LONG. | ||
02 CHUNK-SECTION OCCURS CHUNK-SECTION-COUNT TIMES. | ||
03 CHUNK-SECTION-NON-AIR BINARY-LONG UNSIGNED. | ||
*> block IDs (16x16x16) - X increases fastest, then Z, then Y | ||
03 WORLD-SECTION-BLOCKS. | ||
04 WORLD-BLOCK OCCURS 4096 TIMES. | ||
05 WORLD-BLOCK-ID BINARY-LONG UNSIGNED. | ||
03 CHUNK-SECTION-BLOCKS. | ||
04 CHUNK-BLOCK OCCURS 4096 TIMES. | ||
05 CHUNK-BLOCK-ID BINARY-LONG UNSIGNED. | ||
*> biome IDs (4x4x4) | ||
03 WORLD-SECTION-BIOMES. | ||
04 WORLD-BIOME OCCURS 64 TIMES. | ||
05 WORLD-BIOME-ID BINARY-LONG UNSIGNED. | ||
02 WORLD-BLOCK-ENTITY-COUNT BINARY-LONG UNSIGNED. | ||
03 CHUNK-SECTION-BIOMES. | ||
04 CHUNK-BIOME OCCURS 64 TIMES. | ||
05 CHUNK-BIOME-ID BINARY-LONG UNSIGNED. | ||
02 CHUNK-BLOCK-ENTITY-COUNT BINARY-LONG UNSIGNED. | ||
*> block entity IDs for each block | ||
02 WORLD-BLOCK-ENTITIES. | ||
02 CHUNK-BLOCK-ENTITIES. | ||
*> set to a value < 0 to indicate no entity (since 0 is a valid ID) | ||
*> TODO: support storing entity data, not just IDs | ||
03 WORLD-BLOCK-ENTITY-ID OCCURS 98304 TIMES BINARY-CHAR. | ||
03 CHUNK-BLOCK-ENTITY-ID OCCURS 98304 TIMES BINARY-CHAR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.