public DialogManager(ShowDialogResponseHandler showDialogResponse) : base() { DialogContainer container = new XmlManagement("dialogues", typeof(DialogContainer)).openFile() as DialogContainer; //read the xml mainList = container.dialogues.ToArray(); this.showDialogResponse = showDialogResponse; //set the event listner }
public ScenesManager(string xmlFileName) : base() { //load the xml file this.xmlFileName = xmlFileName; if (string.IsNullOrEmpty(xmlFileName)) { throw new Exception("The xml file name needed to be seted"); } SceneContainer container = new XmlManagement(xmlFileName, typeof(SceneContainer)).openFile() as SceneContainer; mainList = container.scenes.ToArray(); }
public CharacterManager() : base() { CharacterContainer container = new XmlManagement("characters", typeof(CharacterContainer)).openFile() as CharacterContainer; mainList = container.characters.ToArray(); }
public ScenesManager() : base() { SceneContainer container = new XmlManagement("scenes", typeof(SceneContainer)).openFile() as SceneContainer; mainList = container.scenes.ToArray(); }