diff --git a/src/doomstat.h b/src/doomstat.h index bde2bacc72890d47b61a6085a26c5cda33dcfad0..153354670cf54a115526aad6ae967f3b45882fa5 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.