mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
Minor refactor
This commit is contained in:
parent
2055cff0be
commit
551b230b94
10 changed files with 30 additions and 22 deletions
|
|
@ -19,11 +19,11 @@ struct voxel {
|
|||
blockid_t id;
|
||||
uint8_t states;
|
||||
|
||||
inline uint8_t rotation() {
|
||||
inline uint8_t rotation() const {
|
||||
return states & BLOCK_ROT_MASK;
|
||||
}
|
||||
|
||||
inline int8_t variant() {
|
||||
inline int8_t variant() const {
|
||||
return (states & BLOCK_VARIANT_MASK) >> 4;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue