1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#ifndef TMAINTASK_H
#define TMAINTASK_H
#include "pso/forward.h"
#include "pso/macros.h"
#include "pso/TObject.h"
#define X_OR_Y_CHILD(flags, old_flags, one_prefix, zero_prefix, suffix) \
if (flags != old_flags) { \
TMainTask *child; \
u32 bit = 1; \
FOREACH_NODE_NODECL_MULTI_ITER(TMainTask, main_task.down(), child, bit <<= 1) { \
if (flags & bit) { \
child->one_prefix##_##suffix(); \
} else { \
child->zero_prefix##_##suffix(); \
} \
} \
old_flags = flags; \
}
#define SET_OR_CLEAR_CHILD_FLAGS(flags, old_flags, flag_bit) \
X_OR_Y_CHILD(flags, old_flags, set_flag, clear_flag, flag_bit)
#define DISALLOW_OR_ALLOW_CHILD(flags, old_flags, flag_name) \
X_OR_Y_CHILD(flags, old_flags, allow, disallow, flag_name)
#define o(var, name) extern const char *var##_name;
TL_OBJECTS
#undef o
#define o(var, name) extern TObject *var;
TL_OBJECTS
#undef o
class TMainTask : public TObject {
public:
u32 task_flags;
u32 mbr_0x20;
u32 mbr_0x24;
public:
TMainTask();
void render_screen_overlay();
void some_empty_func();
void tl_toggle_flag_3();
void tl_clear_flag_3();
void tl_delete_children();
void tl_02_toggle_flag_3();
void tl_02_clear_flag_3();
void empty_render_screen_overlay_func();
void run_tl_camera_tasks();
void unused_render_func();
void render_objects();
void render_ui();
void render_particle_effects();
void render_effects();
void render_geometry();
void func_80228bbc();
void func_80228c44(s32 arg0);
void func_80228dbc();
void render_clipout_and_fade();
void init_main_task();
virtual ~TMainTask();
virtual void run_task();
virtual void render();
virtual void render_shadows();
private:
void set_task_flags(u32 flags) {
this->task_flags |= flags;
}
void clear_task_flags(u32 flags) {
this->task_flags &= ~flags;
}
u32 get_task_flags(u32 flags) {
return this->task_flags & flags;
};
};
#endif
|