DarkflameServer/dScripts/AmScrollReaderServer.cpp

15 lines
451 B
C++
Raw Permalink Normal View History

#include "AmScrollReaderServer.h"
#include "MissionComponent.h"
2022-07-28 13:39:57 +00:00
void AmScrollReaderServer::OnMessageBoxResponse(Entity* self, Entity* sender, int32_t button, const std::u16string& identifier, const std::u16string& userData) {
if (identifier == u"story_end") {
auto* missionComponent = sender->GetComponent<MissionComponent>();
2022-07-28 13:39:57 +00:00
if (missionComponent == nullptr) {
return;
}
2022-07-28 13:39:57 +00:00
missionComponent->ForceProgressTaskType(969, 1, 1, false);
}
}