Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_kankyo_data.h
Go to the documentation of this file.
1#ifndef D_KANKYO_D_KANKYO_DATA_H
2#define D_KANKYO_D_KANKYO_DATA_H
3
4#include "dolphin/types.h"
5
10};
11
12// Invented name; Used as u8 `darkLv` in dKydata_darkworldInfo_c.
14 FARON = 0,
15 ELDIN = 1,
17 TEST = 5, // Only used with nonexistent test stages
18 UNCLEARABLE = 6, // Default. Palace of Twilight stages use this
19 ALWAYS_DARK = 8, // Unused. Forces Twilight
20};
21
23public:
24 /* 0x0 */ const char* stageName;
25 /* 0x4 */ u8 darkLv;
26}; // Size: 0x8
27
29public:
30 /* 0x0 */ const char* stageName;
31 /* 0x4 */ u8 size;
32}; // Size: 0x8
33
34// Invented name; adjust as needed in the future.
35// Notes (needs more investigation):
36// startTime and endTime are in the range 0 to 360, which is the same as the current time of day.
37// l_time_attribute and l_time_attribute_boss are arrays of `dKyd_lightSchedjule` with their times
38// set up such that the current time of day will fall in the range of one dKyd_lightSchedjule. For
39// example, if the current time is 110.0f (7:20 AM), then the dKyd_lightSchedjule {105.0f, 135.0f,
40// 1, 2} would be selected. If the time was 105.0f, we would use light 1. If the time was 135.0f, we
41// would use light 2. Since 110.0f is closer to 105.0f than 135.0f, we get a blend of lights 1 and 2
42// which is mostly 1. Blending the lights over time is how we get a smooth day-night transition.
49
51 /* 0x0 */ BLOOM_CLEAR,
52 /* 0x1 */ BLOOM_SOFT
53};
54
55#define BLOOMINFO_MAX 64
57public:
58 /* 0x0 */ u8 mType;
59 /* 0x1 */ u8 mThreshold;
60 /* 0x2 */ u8 mBlurAmount;
61 /* 0x3 */ u8 mDensity;
62 /* 0x4 */ u8 mColorR;
63 /* 0x5 */ u8 mColorG;
64 /* 0x6 */ u8 mColorB;
65 /* 0x7 */ u8 mOrigDensity; // ?
70}; // Size: 0xC
71
72void* dKyd_dmpalet_getp();
74void* dKyd_dmenvr_getp();
75void* dKyd_dmvrbox_getp();
84
85#endif /* D_KANKYO_D_KANKYO_DATA_H */
Definition d_kankyo_data.h:22
const char * stageName
Definition d_kankyo_data.h:24
u8 darkLv
Definition d_kankyo_data.h:25
Definition d_kankyo_data.h:28
const char * stageName
Definition d_kankyo_data.h:30
u8 size
Definition d_kankyo_data.h:31
Definition d_kankyo_data.h:56
u8 mBlurAmount
Definition d_kankyo_data.h:60
u8 mSaturateSubtractG
Definition d_kankyo_data.h:67
u8 mOrigDensity
Definition d_kankyo_data.h:65
u8 mColorR
Definition d_kankyo_data.h:62
u8 mType
Definition d_kankyo_data.h:58
u8 mThreshold
Definition d_kankyo_data.h:59
u8 mColorG
Definition d_kankyo_data.h:63
u8 mSaturateSubtractR
Definition d_kankyo_data.h:66
u8 mSaturateSubtractB
Definition d_kankyo_data.h:68
u8 mDensity
Definition d_kankyo_data.h:61
u8 mSaturateSubtractA
Definition d_kankyo_data.h:69
u8 mColorB
Definition d_kankyo_data.h:64
dKydata_lightsizeInfo_c * dKyd_light_size_tbl_getp()
Definition d_kankyo_data.cpp:830
void * dKyd_dmpselect_getp()
Definition d_kankyo_data.cpp:717
dKyd_lightSchejule * dKyd_schejule_boss_getp()
Definition d_kankyo_data.cpp:797
dkydata_bloomInfo_info_class * dKyd_BloomInf_tbl_getp(int)
Definition d_kankyo_data.cpp:840
dKyd_DARKLV
Definition d_kankyo_data.h:13
@ LANAYRU
Definition d_kankyo_data.h:16
@ ELDIN
Definition d_kankyo_data.h:15
@ ALWAYS_DARK
Definition d_kankyo_data.h:19
@ TEST
Definition d_kankyo_data.h:17
@ UNCLEARABLE
Definition d_kankyo_data.h:18
@ FARON
Definition d_kankyo_data.h:14
dKydata_lightsizeInfo_c * dKyd_light_tw_size_tbl_getp()
Definition d_kankyo_data.cpp:835
dKydata_darkworldInfo_c * dKyd_darkworld_tbl_getp()
Definition d_kankyo_data.cpp:825
void * dKyd_maple_col_getp()
Definition d_kankyo_data.cpp:820
void dKyd_xfog_table_set(u8)
Definition d_kankyo_data.cpp:812
dKyd_lightSchejule * dKyd_schejule_getp()
Definition d_kankyo_data.cpp:792
void * dKyd_dmpalet_getp()
Definition d_kankyo_data.cpp:699
BloomType
Definition d_kankyo_data.h:50
@ BLOOM_CLEAR
Definition d_kankyo_data.h:51
@ BLOOM_SOFT
Definition d_kankyo_data.h:52
void * dKyd_dmenvr_getp()
Definition d_kankyo_data.cpp:741
void * dKyd_dmvrbox_getp()
Definition d_kankyo_data.cpp:787
Definition d_kankyo_data.h:6
u8 r
Definition d_kankyo_data.h:7
u8 g
Definition d_kankyo_data.h:8
u8 b
Definition d_kankyo_data.h:9
Definition d_kankyo_data.h:43
float startTime
Definition d_kankyo_data.h:44
u8 startTimeLight
Definition d_kankyo_data.h:46
u8 endTimeLight
Definition d_kankyo_data.h:47
float endTime
Definition d_kankyo_data.h:45
unsigned char u8
Definition types.h:8