mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits. It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir). color4dir is like colorfacedir, but you get 64 colors instead of only 8.
This commit is contained in:
parent
b5e7280708
commit
1d04903c19
15 changed files with 299 additions and 28 deletions
|
@ -58,7 +58,7 @@ enum ContentParamType2
|
|||
CPT2_FULL,
|
||||
// Flowing liquid properties
|
||||
CPT2_FLOWINGLIQUID,
|
||||
// Direction for chests and furnaces and such
|
||||
// Direction for chests and furnaces and such (with axis rotation)
|
||||
CPT2_FACEDIR,
|
||||
// Direction for signs, torches and such
|
||||
CPT2_WALLMOUNTED,
|
||||
|
@ -78,6 +78,10 @@ enum ContentParamType2
|
|||
CPT2_GLASSLIKE_LIQUID_LEVEL,
|
||||
// 3 bits of palette index, then degrotate
|
||||
CPT2_COLORED_DEGROTATE,
|
||||
// Simplified direction for chests and furnaces and such (4 directions)
|
||||
CPT2_4DIR,
|
||||
// 6 bits of palette index, then 4dir
|
||||
CPT2_COLORED_4DIR,
|
||||
};
|
||||
|
||||
enum LiquidType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue