From ea4e8cbfe198b6983b379dfd2fdbc8535a8f76e5 Mon Sep 17 00:00:00 2001 From: Maru <priceisrightfan1988@gmail.com> Date: Fri, 6 Sep 2024 06:49:09 +0000 Subject: [PATCH] Replace doomstat.h --- src/doomstat.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/doomstat.h b/src/doomstat.h index bde2bacc72..153354670c 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -291,6 +291,23 @@ typedef struct char value[256]; // 255 usable characters. If this seriously isn't enough then wtf. } customoption_t; +// rr +extern struct maplighting +{ + UINT8 contrast; + SINT8 backlight; + boolean directional; + angle_t angle; +} maplighting; + +typedef struct +{ + UINT8 light_contrast; ///< Range of wall lighting. 0 is no lighting. + SINT8 sprite_backlight; ///< Subtract from wall lighting for sprites only. + boolean use_light_angle; ///< When false, wall lighting is evenly distributed. When true, wall lighting is directional. + angle_t light_angle; ///< Angle of directional wall lighting. +} mapheader_lighting_t; + /** Map header information. */ typedef struct @@ -361,6 +378,11 @@ typedef struct SINT8 musforcereset; ///< Force resetmusic (-1 for default; 0 for force off; 1 for force on) + // rr + //fixed_t darkness; ///< Pohbee darkness multiplier + //fixed_t mobj_scale; ///< Defines the size all object calculations are relative to + mapheader_lighting_t lighting; ///< Wall and sprite lighting + // Lua stuff. // (This is not ifdeffed so the map header structure can stay identical, just in case.) UINT8 numCustomOptions; ///< Internal. For Lua custom value support. -- GitLab