2021-12-05 17:54:36 +00:00
|
|
|
#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>();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
if (missionComponent == nullptr) {
|
|
|
|
return;
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
missionComponent->ForceProgressTaskType(969, 1, 1, false);
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|