Skip to content

Commit

Permalink
Fix types and add target arrow class
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMKW committed Jun 28, 2024
1 parent 6aa07e2 commit 4482a41
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SMS/MapObj/MapObjBase.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public:
static f32 getJointTransZ(J3DJoint *);
static s32 getWaterID(THitActor *);
static void *getWaterPlane(THitActor *);
static void *getWaterPos(THitActor *);
static void *getWaterSpeed(THitActor *);
static TVec3f *getWaterPos(THitActor *);
static TVec3f *getWaterSpeed(THitActor *);
static void initPacketColor(J3DModel *, GXTevRegID, const GXColorS10 *);
static bool isCoin(THitActor *);
static bool isDemo();
Expand Down
22 changes: 22 additions & 0 deletions include/SMS/System/TargetArrow.hxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#pragma once

#include <JSystem/JDrama/JDRViewObj.hxx>

#include <SMS/M3DUtil/MActor.hxx>

class TTargetArrow : public JDrama::TViewObj {
public:
TTargetArrow(const char *name) : JDrama::TViewObj(name) {
mActor = nullptr;
mIsVisible = false;
}

void loadAfter() override;
void perform(u32, JDrama::TGraphics *) override;

void setPos(const TVec3f &pos);

u16 _0E;
MActor *mActor;
bool mIsVisible;
};

0 comments on commit 4482a41

Please sign in to comment.