summaryrefslogblamecommitdiffstats
path: root/src/Block.hpp
blob: 78c9ccab0be5f9417109fec01e19e19a5c2db0d8 (plain) (tree)
1
2
3
4
5
6
7
8
9

            
              
                
 
                                                                                              
 
                 
 

                                

                            




                            


                                                       
#pragma once

struct Block {
	Block();

	Block(unsigned short id, unsigned char state, unsigned char light, unsigned char sky);

	~Block();

	unsigned short id : 13;
	unsigned char state : 4;
    unsigned char light : 4;
    unsigned char sky : 4;
};

struct BlockId {
    unsigned short id : 13;
    unsigned char state : 4;
};

bool operator==(const BlockId& lhs, const BlockId &rhs);