NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
animation.hpp
1
#pragma once
2
#include <types.h>
3
#include <game/mLib/m_2d/frame_ctrl.hpp>
4
#include <game/mLib/m_2d/layout.hpp>
5
#include <game/mLib/m_2d/resource.hpp>
6
#include <nw4r/lyt.h>
7
#include <nw4r/ut.h>
8
9
namespace
m2d {
10
11
/// @unofficial
12
struct
GroupAnimTransform_s
{
13
nw4r::lyt::Group
*mpGroup;
14
nw4r::lyt::AnimTransform
*mpAnimTransform;
15
};
16
17
class
AnmResV2_c {
18
public
:
19
AnmResV2_c() {}
20
virtual
~AnmResV2_c() {}
21
22
bool
create(
const
char
*name,
m2d::ResAccIf_c
*resAcc,
m2d::Layout_c
*layout,
bool
useOverride);
23
bool
remove();
24
GroupAnimTransform_s
*getGroupAnimTransform(
const
char
*name);
25
void
setAnmEnable(
nw4r::lyt::Group
*group,
bool
enable);
26
void
updateFrame(
nw4r::lyt::Group
*group,
float
frame);
27
nw4r::lyt::AnimationLink
*findAnmLink(
nw4r::lyt::Pane
*pane,
bool
recursive);
28
void
setAnmFrame(
nw4r::lyt::Pane
*pane,
float
frame);
29
30
nw4r::lyt::AnimResource
mAnimResource;
31
GroupAnimTransform_s
*mGroupAnim;
32
int
mGroupNum;
33
};
34
35
class
AnmGroupBase_c {
36
public
:
37
enum
FLAG_e {
38
FLAG_ENABLED = BIT_FLAG(0),
39
};
40
41
AnmGroupBase_c() {}
42
43
bool
create(
AnmResV2_c
*anmRes,
const
char
*name);
44
void
setAnmEnable(
bool
enable);
45
void
updateFrame();
46
47
FrameCtrl_c
*mpFrameCtrl;
48
AnmResV2_c
*mpAnmRes;
49
GroupAnimTransform_s
*mpGroupAnim;
50
u8 mFlags;
51
};
52
53
class
AnmGroup_c
:
public
AnmGroupBase_c {
54
public
:
55
};
56
57
}
// namespace m2d
m2d::AnmGroup_c
Definition
animation.hpp:53
m2d::AnmResV2_c
Definition
animation.hpp:17
m2d::FrameCtrl_c
Definition
frame_ctrl.hpp:7
m2d::Layout_c
Definition
layout.hpp:7
m2d::ResAccIf_c
Definition
resource.hpp:6
nw4r::lyt::AnimResource
Definition
lyt_animation.h:126
nw4r::lyt::AnimTransform
Definition
lyt_animation.h:83
nw4r::lyt::AnimationLink
Definition
lyt_types.h:92
nw4r::lyt::Group
Definition
lyt_group.h:54
nw4r::lyt::Pane
Definition
lyt_pane.h:77
m2d::GroupAnimTransform_s
Definition
animation.hpp:12
include
game
mLib
m_2d
animation.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2