Esempio n. 1
0
        public override void ParseMisc(string content)
        {
            if (mLastDialogueAction != null)
            {
                if (mLastDialogueAction.DialogueText == "")
                {
                    mLastDialogueAction.DialogueText = content;
                }
                else
                {
                    mLastDialogueAction.DialogueText = $"{mLastDialogueAction.DialogueText}{Environment.NewLine}{content}";
                }
            }
            else
            {
                mLastDialogueAction = StageActionFactory.NewDialogueAction(mCurrentCharacterDevName, content);

                def.Actions.Add(mLastDialogueAction);
            }
        }
Esempio n. 2
0
        public override void ParseCue(string cueToken, string cueData)
        {
            if (mSettings.KnownInitGunks.Contains(cueToken))
            {
                int gunkAmount = int.Parse(cueData);

                def.Actions.Add(StageActionFactory.NewGunkInit(cueToken, gunkAmount));
                return;
            }

            if (mSettings.KnownIndexedGunks.Contains(cueToken))
            {
                int[] data = cueData.AsIntArray();

                def.Actions.Add(StageActionFactory.NewGunkIndices(cueToken, data));
                return;
            }

            if (mSettings.KnownSpeakerNames.Contains(cueToken))
            {
                mCurrentCharacterDevName = cueToken;

                mLastDialogueAction = StageActionFactory.NewDialogueAction(mCurrentCharacterDevName, "");

                def.Actions.Add(mLastDialogueAction);
                return;
            }

            switch (cueToken)
            {
            case "ACTION_NEW_PATIENT":
                ZLog.Warn("Need to handle ACTION_NEW_PATIENT");
                return;

            case "VO":
                def.Actions.Add(StageActionFactory.NewVOAction(cueData));
                return;
            }

            throw new InvalidOperationException($"[PHASE] Unknown cue token! token: {cueToken}, is this a speaker or surgery gunk?");
        }
Esempio n. 3
0
        public override void ParseMisc(string content)
        {
            var dialogue = StageActionFactory.NewDialogueAction(null, content);

            def.Actions.Add(dialogue);
        }
Esempio n. 4
0
        public override void ParseMisc(string content)
        {
            var dialogue = StageActionFactory.NewDialogueAction(mCurrentCharacterDevName, content);

            def.Actions.Add(dialogue);
        }