summaryrefslogtreecommitdiff
path: root/src/f_ap/f_ap_game.cpp
blob: 7764527a7a04cb33697a077857fa1aa393ef44c4 (plain)
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
83
84
85
86
87
88
89
90
91
92
//
// Generated by dtk
// Translation Unit: f_ap_game.cpp
//

#include "f_ap/f_ap_game.h"
#include "f_op/f_op_scene_mng.h"
#include "f_op/f_op_overlap_mng.h"
#include "f_op/f_op_camera_mng.h"
#include "f_op/f_op_draw_tag.h"
#include "f_pc/f_pc_manager.h"
#include "m_Do/m_Do_main.h"
#include "SSystem/SComponent/c_counter.h"

fapGm_HIO_c g_HIO;

/* 8002306C-800231BC       .text __ct__11fapGm_HIO_cFv */
fapGm_HIO_c::fapGm_HIO_c() {
    field_0x05 = 1;

#if VERSION > VERSION_DEMO
    if (mDoMain::developmentMode) {
        mDisplayMeter = true;
        mDisplayFlag = 1;
    } else
#endif
    {
        mDisplayMeter = false;
        mDisplayFlag = 0;
    }

    field_0x09 = 1;
    field_0x0a = 1;
    mAspectRatio = 0.96f;
    field_0x10 = 0;
    field_0x11 = 0;
    field_0x12 = 8;
    field_0x13 = 8;
    field_0x14 = 10;
    field_0x15 = 0xc;
    field_0x16 = 10;
    field_0x17 = 8;
    field_0x18 = 8;
    field_0x19 = -1;
    field_0x1a = 0;
    field_0x1b = 1;
    field_0x1c = 0;
    mFbWidth = 0x280;
    mEfbHeight = 0x1e0;
    field_0x30 = 0;
    field_0x20.r = 0xff;
    field_0x20.g = 0xff;
    field_0x20.b = 0xff;
    field_0x20.a = 0xff;
    mTriggerThreshLo = 0.9f;
    mTriggerThreshHi = 0.6f;
    field_0x3c = JUtility::TColor(0xff, 0x96, 0x00, 0xff);
    field_0x40 = JUtility::TColor(0xff, 0x78, 0x00, 0xff);
    field_0x44 = JUtility::TColor(0x00, 0x00, 0x00, 0xff);
    field_0x48 = JUtility::TColor(0x00, 0x00, 0x00, 0xff);
    field_0x4c = 0;
    field_0x4e = 10;
    field_0x54 = 0x1b;
    field_0x50 = 0;
    field_0x52 = 0;
    field_0x56 = 0x82;
}

/* 800231BC-800231E4       .text fapGm_After__Fv */
void fapGm_After() {
    fopScnM_Management();
    fopOvlpM_Management();
    fopCamM_Management();
}

/* 800231E4-80023218       .text fapGm_Execute__Fv */
void fapGm_Execute() {
    fpcM_Management(0, fapGm_After);
    cCt_Counter(0);
}

/* 80023218-80023288       .text fapGm_Create__Fv */
void fapGm_Create() {
    fpcM_Init();
    fopScnM_Init();
    fopOvlpM_Init();
    fopCamM_Init();
    fopDwTg_CreateQueue();
    fopScnM_CreateReq(fpcNm_LOGO_SCENE_e, fpcNm_INVALID_e, 0, 0);

    g_HIO.mNo = mDoHIO_createChild("ゲームシステム", &g_HIO); // "Game System"
}