Batch #14498 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_21064 EffectActor::Contains: byte-identical Merged automatically: every function is byte-identical to the original.
34 lines
809 B
C++
34 lines
809 B
C++
#include "Contents/Effects/EffectActor.h"
|
|
#include "Contents/Effects/RagEffect.h"
|
|
|
|
// OFFSET: 0x00CADBE0
|
|
// FUNCTION: fn_21062
|
|
bool EffectActor::HasId(int id) const {
|
|
for (const CRagEffect* effect : this->state.effects) {
|
|
if (effect && effect->state.type == id) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00CADC40
|
|
// FUNCTION: fn_21064
|
|
bool EffectActor::Contains(const RagEffectState* effect) const {
|
|
if (this->state.effects.size() != 0) {
|
|
for (const CRagEffect* current : this->state.effects) {
|
|
if (current == reinterpret_cast<const CRagEffect*>(effect)) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// OFFSET: 0x00CADC20
|
|
// FUNCTION: fn_21063
|
|
bool EffectActor::EffectVisible() const {
|
|
return this->render.visible != 0 && this->render.enabled != 0;
|
|
}
|