summaryrefslogtreecommitdiff
path: root/src/f_op/f_op_view.cpp
blob: 77fe4281ee1078d1980bf8db94dfed693050e812 (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
/**
 * f_op_view.cpp
 * View Process Framework
 */

#include "f_op/f_op_view.h"
#include "f_pc/f_pc_manager.h"

BOOL fopVw_Draw(view_class* i_this) {
    return fpcLf_DrawMethod(i_this->sub_method, i_this);
}

BOOL fopVw_Execute(view_class* i_this) {
    return fpcMtd_Execute(&i_this->sub_method->base, i_this);
}

BOOL fopVw_IsDelete(void* i_this) {
    view_class* _this = (view_class*)i_this;
    return fpcMtd_IsDelete(&_this->sub_method->base, _this);
}

BOOL fopVw_Delete(view_class* i_this) {
    return fpcMtd_Delete(&i_this->sub_method->base, i_this);
}

cPhs_State fopVw_Create(void* i_this) {
    view_class* _this = (view_class*)i_this;

    view_process_profile_definition* pProf =
        (view_process_profile_definition*)fpcM_GetProfile(_this);
    _this->sub_method = pProf->sub_method;
    _this->field_0xc4 = pProf->unk28;

    return fpcMtd_Create(&_this->sub_method->base, _this);
}

leafdraw_method_class g_fopVw_Method = {
    (process_method_func)fopVw_Create,
    (process_method_func)fopVw_Delete,
    (process_method_func)fopVw_Execute,
    (process_method_func)fopVw_IsDelete,
    (process_method_func)fopVw_Draw,
};