mirror of
https://github.com/zeldaret/tp
synced 2026-08-04 01:03:47 -04:00
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
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -1,6 +1,24 @@
|
||||
#ifndef JUTFONT_H
|
||||
#define JUTFONT_H
|
||||
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
namespace JUtility {
|
||||
|
||||
struct TColor : _GXColor {
|
||||
TColor() { set(-1); }
|
||||
|
||||
TColor(u32 raw) { *(u32*)&r = raw; }
|
||||
|
||||
void set(u32 col) { *(u32*)&r = col; }
|
||||
|
||||
u32 toUInt32() const { return *(u32*)&r; }
|
||||
|
||||
operator u32() const { return toUInt32(); }
|
||||
void operator=(const TColor& rhs) { ((_GXColor*)this)->operator=(rhs); }
|
||||
};
|
||||
|
||||
} // namespace JUtility
|
||||
|
||||
#endif /* JUTFONT_H */
|
||||
|
||||
Reference in New Issue
Block a user