9518a27357
+ Add type-safe container for states * Split registry Blocks into BlockTypes, BlockStates so the block types enumeration can be #included without too much penalty * Ensure Registry uses type-safe container
13 lines
261 B
C++
13 lines
261 B
C++
#pragma once
|
|
|
|
#include "ChunkDef.h"
|
|
#include "BlockState.h"
|
|
#include "Registries/Items.h"
|
|
|
|
namespace PaletteUpgrade
|
|
{
|
|
BlockState FromBlock(BLOCKTYPE Block, NIBBLETYPE Meta);
|
|
Item FromItem(short Item, short Damage);
|
|
std::pair<short, short> ToItem(Item ID);
|
|
}
|