adjust the range and freespace comments in content_mapnode.h

This commit is contained in:
darkrose 2015-05-01 19:05:08 +10:00
parent 752d4da1c7
commit 9b47c8af4c
1 changed files with 44 additions and 48 deletions

View File

@ -43,58 +43,54 @@ MapNode mapnode_translate_to_internal(MapNode n_from, u8 version);
/*
Node content type IDs
Ranges:
Range: 0x0 - 0xFFF
*/
// 0x000...0x07f (0...127): param2 is fully usable
// 126 and 127 are reserved.
// Use these sparingly, only when the extra space in param2 might be needed.
// Add a space when there is unused space between numbers.
#define CONTENT_STONE 0
// FREE 1
#define CONTENT_WATER 2
#define CONTENT_TORCH_LEGACY 3
#define CONTENT_GLASSLIGHT 4
#define CONTENT_CHAIR 5
// FREE 6
#define CONTENT_TORCH 7
#define CONTENT_TABLE 8
#define CONTENT_WATERSOURCE 9
// FREE 10-12
#define CONTENT_SAFE 13
#define CONTENT_SIGN_WALL 14
#define CONTENT_CHEST 15
#define CONTENT_FURNACE 16
#define CONTENT_LOCKABLE_CHEST 17
#define CONTENT_SIGN 18
#define CONTENT_SIGN_UD 19
#define CONTENT_LOCKABLE_FURNACE 20
#define CONTENT_FENCE 21
#define CONTENT_LOCKABLE_SIGN_WALL 22
#define CONTENT_LOCKABLE_SIGN 23
#define CONTENT_LOCKABLE_SIGN_UD 24
#define CONTENT_CREATIVE_CHEST 25
#define CONTENT_FURNACE_ACTIVE 26
#define CONTENT_LOCKABLE_FURNACE_ACTIVE 27
#define CONTENT_STEEL_FENCE 28
#define CONTENT_STEEL_BARS 29
#define CONTENT_RAIL 30
#define CONTENT_STONE 0x000
// FREE 0x001
#define CONTENT_WATER 0x002
#define CONTENT_TORCH_LEGACY 0x003
#define CONTENT_GLASSLIGHT 0x004
#define CONTENT_CHAIR 0x005
// FREE 0x006
#define CONTENT_TORCH 0x007
#define CONTENT_TABLE 0x008
#define CONTENT_WATERSOURCE 0x009
// FREE 0x00A-0x00C
#define CONTENT_SAFE 0x00D
#define CONTENT_SIGN_WALL 0x00E
#define CONTENT_CHEST 0x00F
#define CONTENT_FURNACE 0x010
#define CONTENT_LOCKABLE_CHEST 0x011
#define CONTENT_SIGN 0x012
#define CONTENT_SIGN_UD 0x013
#define CONTENT_LOCKABLE_FURNACE 0x014
#define CONTENT_FENCE 0x015
#define CONTENT_LOCKABLE_SIGN_WALL 0x016
#define CONTENT_LOCKABLE_SIGN 0x017
#define CONTENT_LOCKABLE_SIGN_UD 0x018
#define CONTENT_CREATIVE_CHEST 0x019
#define CONTENT_FURNACE_ACTIVE 0x01A
#define CONTENT_LOCKABLE_FURNACE_ACTIVE 0x01B
#define CONTENT_STEEL_FENCE 0x01C
#define CONTENT_STEEL_BARS 0x01D
#define CONTENT_RAIL 0x01E
// deprecated, just here for backwards compat
#define CONTENT_LADDER_LEGACY 31
#define CONTENT_LAVA 32
#define CONTENT_LAVASOURCE 33
#define CONTENT_LADDER_WALL 34
#define CONTENT_LADDER_FLOOR 35
#define CONTENT_LADDER_ROOF 36
#define CONTENT_LADDER_LEGACY 0x01F
#define CONTENT_LAVA 0x020
#define CONTENT_LAVASOURCE 0x021
#define CONTENT_LADDER_WALL 0x022
#define CONTENT_LADDER_FLOOR 0x023
#define CONTENT_LADDER_ROOF 0x024
// walls
#define CONTENT_ROUGHSTONE_WALL 37
#define CONTENT_MOSSYCOBBLE_WALL 38
#define CONTENT_SANDSTONE_WALL 39
#define CONTENT_STONE_WALL 40
#define CONTENT_COBBLE_WALL 41
// FREE 42-124
// 0x800...0xfff (2048...4095): higher 4 bytes of param2 are not usable
#define CONTENT_ROUGHSTONE_WALL 0x025
#define CONTENT_MOSSYCOBBLE_WALL 0x026
#define CONTENT_SANDSTONE_WALL 0x027
#define CONTENT_STONE_WALL 0x028
#define CONTENT_COBBLE_WALL 0x029
// FREE 2A-0x7C
// 0x7D-0x7F reserved values, air, ignore, etc
// FREE 0x80-0x7FF
#define CONTENT_GRASS 0x800
#define CONTENT_TREE 0x801
#define CONTENT_LEAVES 0x802