summaryrefslogtreecommitdiff
path: root/src/d/d_level_se.cpp
blob: 823621a0a345ecb3444862f03e6e4b5d0a8182c0 (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
//
// Generated by dtk
// Translation Unit: d_level_se.cpp
//

#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_level_se.h"
#include "f_op/f_op_kankyo.h"
#include "f_op/f_op_kankyo_mng.h"
#include "m_Do/m_Do_audio.h"

/* 80199308-801993CC       .text dLevelSe_Execute__FP10dLevelSe_c */
static BOOL dLevelSe_Execute(dLevelSe_c* i_this) {
    s32 soundId = i_this->mParam;

    if (i_this->mFlag & 0x08) {
    } else if (i_this->mFlag & 0x01) {
        mDoAud_seStart(soundId, &i_this->mPos, i_this->field_0xf8);
    } else if (i_this->mFlag & 0x04) {
        mDoAud_seStart(soundId, &i_this->mPos, i_this->field_0xf8, i_this->mReverb);
    } else {
        mDoAud_seStart(soundId, &i_this->mPos);
    }

    return TRUE;
}

/* 801993CC-801993D4       .text dLevelSe_IsDelete__FP10dLevelSe_c */
static BOOL dLevelSe_IsDelete(dLevelSe_c*) {
    return TRUE;
}

/* 801993D4-80199404       .text dLevelSe_Delete__FP10dLevelSe_c */
static BOOL dLevelSe_Delete(dLevelSe_c* i_this) {
    mDoAud_seDeleteObject(&i_this->mPos);
    return TRUE;
}

/* 80199404-8019940C       .text dLevelSe_Create__FP12kankyo_class */
static cPhs_State dLevelSe_Create(kankyo_class*) {
    return cPhs_COMPLEATE_e;
}

static kankyo_method_class l_dLevelSe_Method = {
    (process_method_func)dLevelSe_Create,
    (process_method_func)dLevelSe_Delete,
    (process_method_func)dLevelSe_Execute,
    (process_method_func)dLevelSe_IsDelete,
};

kankyo_process_profile_definition g_profile_LEVEL_SE = {
    /* Layer ID      */ fpcLy_CURRENT_e,
    /* List ID       */ 0x0002,
    /* List Prio     */ fpcPi_CURRENT_e,
    /* Proc Name     */ fpcNm_LEVEL_SE_e,
    /* Proc SubMtd   */ &g_fpcLf_Method.base,
    /* Size          */ sizeof(dLevelSe_c),
    /* Size Other    */ 0,
    /* Parameters    */ 0,
    /* Leaf SubMtd   */ &g_fopKy_Method,
    /* Draw Prio     */ fpcDwPi_LEVEL_SE_e,
    /* Kankyo SubMtd */ &l_dLevelSe_Method,
};