interface/voxel: VoxelInstance constructor

This commit is contained in:
Perttu Ahola 2014-10-12 14:49:09 +03:00
parent 0f83215a29
commit 1bae4309cc

View File

@ -91,6 +91,9 @@ namespace interface
{
uint32_t data;
VoxelInstance(){}
VoxelInstance(VoxelTypeId id): data(id){}
VoxelTypeId getId(){return data & 0x001fffff; }
uint8_t getMSB(){return (data>>24) & 0xff; }
};