예제 #1
0
파일: Data.cs 프로젝트: spegelref/ScoobyRom
        void GetChosenTables(SelectedChoice choice, out IList <Table2D> list2D, out IList <Table3D> list3D)
        {
            list2D = null;
            list3D = null;
            switch (choice)
            {
            case SelectedChoice.All:
                list2D = this.List2DSorted();
                list3D = this.List3DSorted();
                break;

            case SelectedChoice.Selected:
                list2D = this.List2DSelectedSorted();
                list3D = this.List3DSelectedSorted();
                break;

            case SelectedChoice.Annotated:
                list2D = this.List2DAnnotatedSorted();
                list3D = this.List3DAnnotatedSorted();
                break;

            default:
                throw new ArgumentOutOfRangeException("choice", "unknown");
            }
        }
예제 #2
0
파일: Data.cs 프로젝트: spegelref/ScoobyRom
        public void SaveAsRomRaiderXml(string path, SelectedChoice choice)
        {
            IList <Table2D> list2D;
            IList <Table3D> list3D;

            GetChosenTables(choice, out list2D, out list3D);
            DataFile.RomRaiderEcuDefXml.WriteRRXmlFile(path, romMetadata.XElement, list2D, list3D);
        }
예제 #3
0
    Gtk.ResponseType DisplaySelectDataDialog(out SelectedChoice choice)
    {
        var dialog   = new SelectDataDialog(data);
        var response = (Gtk.ResponseType)dialog.Run();

        choice = dialog.Choice;
        dialog.Destroy();
        return(response);
    }
예제 #4
0
파일: Data.cs 프로젝트: spegelref/ScoobyRom
        public void SaveAsTunerProXdf(string path, SelectedChoice choice)
        {
            IList <Table2D> list2D;
            IList <Table3D> list3D;

            GetChosenTables(choice, out list2D, out list3D);

            var categories = GetCategoriesDictionary(GetCategoriesForExport(list2D, list3D));

            DataFile.TunerProXdf.WriteXdfFile(path, romMetadata, categories, list2D, list3D);
        }
예제 #5
0
    /**
     * receives the user selected option from the Modular Panel. Always regarding the current GameObject.
     * Possible outcomes:
     *
     * 10 = SPAWN ENEMEY
     * 11 = GAMEOVER
     * 0 = Get next Dialogue with id=0
     * 1 = Get next Dialogue with id=1
     * 2 = Get next Dialogue with id=2
     * 3 = Get next Dialogue with id=3
     * 4 = ...
     **/
    public void triggerResponse(SelectedChoice choice)
    {
        switch (choice)
        {
        case SelectedChoice.ChoiceOne:
            startNewEvent(eventProcessor.currentGameEvent.getResponseKeyOne());
            break;

        case SelectedChoice.ChoiceTwo:
            startNewEvent(eventProcessor.currentGameEvent.getResponseKeyTwo());
            break;

        case SelectedChoice.ChoiceThree:
            startNewEvent(eventProcessor.currentGameEvent.getResponseKeyThree());
            break;

        default:
            Debug.LogError("No possible Choice Selected");
            break;
        }
    }
예제 #6
0
 Gtk.ResponseType DisplaySelectDataDialog(out SelectedChoice choice)
 {
     var dialog = new SelectDataDialog (data);
     var response = (Gtk.ResponseType)dialog.Run ();
     choice = dialog.Choice;
     dialog.Destroy ();
     return response;
 }
예제 #7
0
 void GetChosenTables(SelectedChoice choice, out IList<Table2D> list2D, out IList<Table3D> list3D)
 {
     list2D = null;
     list3D = null;
     switch (choice) {
     case SelectedChoice.All:
         list2D = this.List2DSorted ();
         list3D = this.List3DSorted ();
         break;
     case SelectedChoice.Selected:
         list2D = this.List2DSelectedSorted ();
         list3D = this.List3DSelectedSorted ();
         break;
     case SelectedChoice.Annotated:
         list2D = this.List2DAnnotatedSorted ();
         list3D = this.List3DAnnotatedSorted ();
         break;
     default:
         throw new ArgumentOutOfRangeException ("choice", "unknown");
     }
 }
예제 #8
0
        public void SaveAsTunerProXdf(string path, SelectedChoice choice)
        {
            IList<Table2D> list2D;
            IList<Table3D> list3D;
            GetChosenTables (choice, out list2D, out list3D);

            var categories = GetCategoriesDictionary (GetCategoriesForExport (list2D, list3D));
            DataFile.TunerProXdf.WriteXdfFile (path, romMetadata, categories, list2D, list3D);
        }
예제 #9
0
 public void SaveAsRomRaiderXml(string path, SelectedChoice choice)
 {
     IList<Table2D> list2D;
     IList<Table3D> list3D;
     GetChosenTables (choice, out list2D, out list3D);
     DataFile.RomRaiderEcuDefXml.WriteRRXmlFile (path, romMetadata.XElement, list2D, list3D);
 }