mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user