Ejemplo n.º 1
0
        private SaveGamePage(SaveGameContainer container, Builder builder) : base(builder.GetObject("savegameFrame").Handle)
        {
            builder.Autoconnect(this);
            container.Load();
            this.container = container;
            switch (container.type)
            {
            case GameType.RAC:
                saveGameData = GameItems.RacOneItems;
                break;

            case GameType.GC:
                saveGameData = GameItems.RacTwoItems;
                break;

            case GameType.UYA:
                saveGameData = GameItems.RacThreeItems;
                break;

            case GameType.DL:
                saveGameData = GameItems.RacDeadlockedItems;
                break;

            case GameType.TOD:
                saveGameData = GameItems.RacToolsItems;
                break;

            case GameType.QFB:
                saveGameData = GameItems.RacQuestBootyItems;
                break;

            case GameType.ACIT:
                saveGameData = GameItems.RacCrackTimeItems;
                break;

            case GameType.NEXUS:
                saveGameData = GameItems.RacNexusItems;
                break;

            default:
                saveGameData = new Dictionary <string, List <SaveGameItem> >();
                break;
            }

            LoadValues();
            ConstructWidgets();

            ShowAll();
        }
 public override void ReadValue(SaveGameContainer container)
 {
     value = container.ReadByte(position);
 }
 public override void WriteValue(SaveGameContainer container)
 {
     container.WriteInt(position, value);
 }
 public abstract void WriteValue(SaveGameContainer container);
 public abstract void ReadValue(SaveGameContainer container);
Ejemplo n.º 6
0
 public SaveGamePage(SaveGameContainer container) : this(container, new Builder("MainWindow.glade"))
 {
 }
Ejemplo n.º 7
0
 private void LoadSaveGame(SaveGameContainer container)
 {
     notebook.AppendPage(new SaveGamePage(container), new Label(System.IO.Path.GetFileName(container.path)));
     notebook.CurrentPage = notebook.NPages - 1;
 }