Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions data/file_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113306,23 +113306,23 @@ Player/EquipmentInfo.o:
label:
- _ZN13EquipmentInfoC1EPKN2al9LiveActorE
- _ZN13EquipmentInfoC2EPKN2al9LiveActorE
status: NotDecompiled
status: Matching
- offset: 0x3f967c
size: 16
label: _ZN13EquipmentInfo12onNoCapThrowEv
status: NotDecompiled
status: Matching
- offset: 0x3f968c
size: 20
label: _ZN13EquipmentInfo11onForceDashEif
status: NotDecompiled
status: Matching
- offset: 0x3f96a0
size: 12
label: _ZNK13EquipmentInfo12isNoCapThrowEv
status: NotDecompiled
status: Matching
- offset: 0x3f96ac
size: 12
label: _ZNK13EquipmentInfo11isForceDashEv
status: NotDecompiled
status: Matching
Player/HackCap.o:
'.text':
- offset: 0x3f96b8
Expand Down
26 changes: 26 additions & 0 deletions src/Player/EquipmentInfo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "Player/EquipmentInfo.h"

EquipmentInfo::EquipmentInfo(const al::LiveActor* actor) {
mActor = actor;
_8 = 0;
_c = 0;
_10 = 0.0f;
}

void EquipmentInfo::onNoCapThrow() {
_8 |= 1;
}

void EquipmentInfo::onForceDash(s32 param_1, f32 param_2) {
_8 |= 2;
_c = param_1;
_10 = param_2;
}

bool EquipmentInfo::isNoCapThrow() const {
return (_8 & 1) != 0;
}

bool EquipmentInfo::isForceDash() const {
return (_8 & 2) != 0;
}
25 changes: 25 additions & 0 deletions src/Player/EquipmentInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pragma once

#include <basis/seadTypes.h>

namespace al {
class LiveActor;
} // namespace al

class EquipmentInfo {
public:
EquipmentInfo(const al::LiveActor* actor);

void onNoCapThrow();
void onForceDash(s32, f32);
bool isNoCapThrow() const;
bool isForceDash() const;

private:
const al::LiveActor* mActor;
u32 _8;
s32 _c;
f32 _10;
};

static_assert(sizeof(EquipmentInfo) == 0x18);
Loading