dSv_light_drop_c ok

This commit is contained in:
unknown
2020-11-23 21:26:10 -05:00
parent d92f32f541
commit 2fceccbd08
12 changed files with 95 additions and 141 deletions
+48
View File
@@ -690,4 +690,52 @@ void dSv_player_collect_c::onCollectMirror(u8 param_1) {
bool dSv_player_collect_c::isCollectMirror(u8 param_1) const {
return this->mirror & (u8)(1 << param_1) ? true : false;
}
void dSv_player_wolf_c::init(void) {
for (int i = 0; i < 3; i++) {
this->unk0[i] = 0;
}
this->unk3 = 0;
}
void dSv_light_drop_c::init(void) {
for (int i = 0; i < 4; i++) {
this->unk0[i] = 0;
}
this->light_drop_get_flag = 0;
for (int i = 0; i < 3; i++) {
this->unk5[i] = 0;
}
}
void dSv_light_drop_c::setLightDropNum(u8 param_1,u8 param_2) {
if ((4 <= param_1) && (param_1 <= 6)) {
return;
}
this->unk0[param_1] = param_2;
}
u8 dSv_light_drop_c::getLightDropNum(u8 param_1) const {
if ((4 <= param_1) && (param_1 <= 6)) {
return 0;
}
return this->unk0[param_1];
}
void dSv_light_drop_c::onLightDropGetFlag(u8 param_1) {
if ((4 <= param_1) && (param_1 <= 6)) {
return;
}
this->light_drop_get_flag = this->light_drop_get_flag | (u8)(1 << param_1);
}
bool dSv_light_drop_c::isLightDropGetFlag(u8 param_1) const {
if ((4 <= param_1) && (param_1 <= 6)) {
return 0;
}
return this->light_drop_get_flag & (u8)(1 << param_1) ? true : false;
}