Batch #1394 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_19588 NavigationManager::GetCurrentTarget: logic confirmed by peer review - fn_19590 NavigationManager::GetSavedTarget: logic confirmed by peer review Reviewed-by: ragnarok-clanker
33 lines
794 B
C++
33 lines
794 B
C++
#include "Contents/NavigationManager.h"
|
|
|
|
// OFFSET: 0x00B96980
|
|
// FUNCTION: fn_19588
|
|
NavigationTarget NavigationManager::GetCurrentTarget() const {
|
|
return this->currentTarget;
|
|
}
|
|
|
|
// OFFSET: 0x00B96AE0
|
|
// FUNCTION: fn_19590
|
|
NavigationTarget NavigationManager::GetSavedTarget() const {
|
|
return this->savedTarget;
|
|
}
|
|
|
|
// OFFSET: 0x00B971D0
|
|
// FUNCTION: fn_19597
|
|
int NavigationManager::GetCurrentTargetType() const {
|
|
return this->currentTarget.type;
|
|
}
|
|
|
|
// OFFSET: 0x00BA0AE0
|
|
// FUNCTION: fn_19635
|
|
int NavigationManager::SaveCurrentTarget() {
|
|
const int type = this->currentTarget.type;
|
|
if (type == 6) {
|
|
return -92;
|
|
}
|
|
if ((type != 1 && type != 2 && type != 3 && type != 0) || !this->currentTarget.object) {
|
|
return -97;
|
|
}
|
|
this->savedTarget = this->currentTarget;
|
|
return 0;
|
|
}
|