22#ifndef HARVESTER_NPC_SERGEANT_DIALOGUE_H
23#define HARVESTER_NPC_SERGEANT_DIALOGUE_H
25#include "harvester/npc/dialogue_handler.h"
32 bool talkStateBlock =
false;
33 bool dialogueStateD2d50 =
false;
34 bool postApplicationBriefingCompleted =
false;
35 bool dialogueStateD2d58 =
false;
36 bool dialogueStateD2d5c =
false;
37 bool dialogueStateD2d60 =
false;
38 bool dialogueStateD2d64 =
false;
39 bool dialogueStateD2d68 =
false;
40 bool dialogueStateD2d6c =
false;
41 bool completedFirstTaskState =
false;
42 bool day5ExitLinePlayed =
false;
47 syncDialogueBool(s, _state.talkStateBlock);
48 syncDialogueBool(s, _state.dialogueStateD2d50);
49 syncDialogueBool(s, _state.postApplicationBriefingCompleted);
50 syncDialogueBool(s, _state.dialogueStateD2d58);
51 syncDialogueBool(s, _state.dialogueStateD2d5c);
52 syncDialogueBool(s, _state.dialogueStateD2d60);
53 syncDialogueBool(s, _state.dialogueStateD2d64);
54 syncDialogueBool(s, _state.dialogueStateD2d68);
55 syncDialogueBool(s, _state.dialogueStateD2d6c);
56 syncDialogueBool(s, _state.completedFirstTaskState);
57 syncDialogueBool(s, _state.day5ExitLinePlayed);
59 void migrateSharedState(DialogueSharedState &sharedState)
override {
60 if (sharedState.sergeantCompletedFirstTaskState == 0 && _state.completedFirstTaskState)
61 sharedState.sergeantCompletedFirstTaskState = 1;
64 const Common::String &usedItemName, DialogueSharedState &sharedState)
override;
68 Common::Error handleRemainsBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
69 Common::Error handleInviteBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
70 Common::Error handleBarberPoleBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
71 Common::Error handleBoltClothBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
72 Common::Error handleCompletedFirstTaskBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
73 Common::Error handleCompletedApplicationBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
74 Common::Error runIntroOrReminderBranch(DialogueRuntime &runtime, DialogueSharedState &sharedState);
76 SergeantRoomDialogueState _state;
Definition: serializer.h:80
Definition: dialogue_handler.h:99
Definition: sergeant_dialogue.h:29
Definition: sergeant_dialogue.h:31