summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphAnimator
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2021-05-02 10:13:14 -0700
committerGitHub <noreply@github.com>2021-05-02 13:13:14 -0400
commit2f4904dae297e5d3f4df99fd6c34e61c124a230f (patch)
treedde5cb1d3e7733b57b66d89462b4cf4fd0bbc707 /include/JSystem/J3DGraphAnimator
parenta9c78b5b0bc85f45e4ed5a3e9f1ddc12c8c47308 (diff)
move d_a_itembase_static / d_a_item_static / Z2StatusMgr (#123)
* move d_a_itembase_static * move d_a_item_static * moved Z2StatusMgr * clang * fixes * clang? * move d_save * move d_meter2_info * some d_meter2_info fixes * move most d_a_player * move d_bg_s stuff * move c_cc_s stuff * move d_cc stuff * move d_attention / d_event / d_stage
Diffstat (limited to 'include/JSystem/J3DGraphAnimator')
-rw-r--r--include/JSystem/J3DGraphAnimator/J3DAnimation.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphAnimator/J3DAnimation.h b/include/JSystem/J3DGraphAnimator/J3DAnimation.h
index d3b740a15d..184cd1a2d7 100644
--- a/include/JSystem/J3DGraphAnimator/J3DAnimation.h
+++ b/include/JSystem/J3DGraphAnimator/J3DAnimation.h
@@ -3,4 +3,35 @@
#include "dolphin/types.h"
+#pragma pack(push, 1)
+class J3DFrameCtrl {
+public:
+ void init(s16);
+ void checkPass(f32);
+ void update();
+ ~J3DFrameCtrl();
+
+ float getRate() { return mRate; }
+ void setAttribute(u8 pAttr) { mAttribute = pAttr; }
+ void setEnd(s16 pEnd) { mEnd = pEnd; }
+ void setRate(float pRate) { mRate = pRate; }
+ void setStart(s16 pStart) {
+ mStart = pStart;
+ mFrame = pStart;
+ }
+ void setFrame(float pFrame) { mFrame = pFrame; }
+ void setLoop(s16 pLoop) { mLoop = pLoop; }
+
+private:
+ void* vtable;
+ u8 mAttribute;
+ bool mState;
+ s16 mStart;
+ s16 mEnd;
+ s16 mLoop;
+ float mRate;
+ float mFrame;
+};
+#pragma pack(pop)
+
#endif /* J3DANIMATION_H */