예제 #1
0
        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
        }
예제 #2
0
        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();
        }
예제 #4
0
        public ScenesManager() : base()
        {
            SceneContainer container = new XmlManagement("scenes", typeof(SceneContainer)).openFile() as SceneContainer;

            mainList = container.scenes.ToArray();
        }