Example #1
0
		public Dialogue Copy()
		{
			Dialogue ret = new Dialogue();
			ret.sLatestEditIteration = this.sLatestEditIteration;
			for (int i = 0; i < this.lxDialogueLines.Count; i++)
			{
				ret.lxDialogueLines.Add(this.lxDialogueLines[i].Copy());
			}
			return ret;
		}
Example #2
0
		public static Dialogue Read(BinaryReader br)
		{
			Dialogue ret = new Dialogue();
			if (DialogueGod.iLoadedIteration >= 1)
			{
				ret.sLatestEditIteration = br.ReadString();
			}
			int iCount = br.ReadInt32();
			for (int i = 0; i < iCount; i++)
			{
				ret.lxDialogueLines.Add(DialogueLine.Read(br));
			}
			return ret;
		}
Example #3
0
 public void SetDialogue(string sDialogueToBegin)
 {
     this.xQuery = null;
     if (sDialogueToBegin == "")
     {
         this.xCurrentDialogue = DialogueSystem.xEmptyDialogue;
     }
     else
     {
         DialogueGod xOverride = Program.GetTheGame().xDialogueGod_Override;
         DialogueGod xDefault = Program.GetTheGame().xDialogueGod_Default;
         if (xOverride != null && xOverride.dsxDialogueCollections.ContainsKey(this.sCurrentSet) && xOverride.dsxDialogueCollections[this.sCurrentSet].dsxDialogues.ContainsKey(sDialogueToBegin))
         {
             this.xCurrentDialogue = xOverride.dsxDialogueCollections[this.sCurrentSet].dsxDialogues[sDialogueToBegin];
         }
         else
         {
             this.xCurrentDialogue = xDefault.dsxDialogueCollections[this.sCurrentSet].dsxDialogues[sDialogueToBegin];
         }
     }
     this.InitializeCurrentDialogue();
 }
Example #4
0
 public void SetCustomLineDialogue(string sLine)
 {
     this.xQuery = null;
     this.xCurrentDialogue = DialogueSystem.xEmptyDialogue;
     this.xCurrentDialogue = new Dialogue();
     this.xCurrentDialogue.lxDialogueLines.Add(new DialogueLine());
     this.xCurrentDialogue.lxDialogueLines[0].sUnparsedFullLine = sLine;
     this.InitializeCurrentDialogue();
 }