Exemplo n.º 1
0
        private void loadData()
        {
            int      frames       = saveData.load32bitInt(gameIndex);
            TimeSpan gameTimeSpan = TimeSpan.FromSeconds(frames / 60);

            hours   = Convert.ToInt32(Math.Floor(gameTimeSpan.TotalHours));
            minutes = gameTimeSpan.Minutes;
            seconds = gameTimeSpan.Seconds;
        }
        private void loadData()
        {
            Int32 baseIndex = characterIndexes[(int)characterID];

            exp       = saveData.load32bitInt(baseIndex);
            hp        = saveData.load16bitInt(baseIndex + hpOffset);
            mp        = saveData.load16bitInt(baseIndex + mpOffset);
            sp        = saveData.load16bitInt(baseIndex + spOffset);
            dexp      = saveData.load16bitInt(baseIndex + dexpOffset);
            lvl       = saveData.load8bitInt(baseIndex + lvlOffset);
            dlvl      = saveData.load8bitInt(baseIndex + dlvlOffset);
            weapon    = (InventoryItem)saveData.load8bitUint(baseIndex + weaponOffset);
            helmet    = (InventoryItem)saveData.load8bitUint(baseIndex + helmetOffset);
            chest     = (InventoryItem)saveData.load8bitUint(baseIndex + chestOffset);
            boots     = (InventoryItem)saveData.load8bitUint(baseIndex + bootsOffset);
            accessory = (InventoryItem)saveData.load8bitUint(baseIndex + accessoryOffset);
            switch (characterID)
            {
            case CharacterID.Dart:
                populateAdditions <Dart_Additions>();
                break;

            case CharacterID.Lavitz:
                populateAdditions <Lavitz_Additions>();
                break;

            case CharacterID.Rose:
                populateAdditions <Rose_Additions>();
                break;

            case CharacterID.Haschel:
                populateAdditions <Haschel_Additions>();
                break;

            case CharacterID.Albert:
                populateAdditions <Albert_Additions>();
                break;

            case CharacterID.Meru:
                populateAdditions <Meru_Additions>();
                break;

            case CharacterID.Kongol:
                populateAdditions <Kongol_Additions>();
                break;

            default:
                break;
            }
            if (characterID == CharacterID.Dart)
            {
                dartMaxHp = saveData.load16bitInt(dartSaveInfoIndex + dartSaveInfoMaxHPOffset);
            }
        }
 private void loadData()
 {
     party1 = (CharacterID)saveData.load32bitInt(party1gameIndex);
     party2 = (CharacterID)saveData.load32bitInt(party2gameIndex);
     party3 = (CharacterID)saveData.load32bitInt(party3gameIndex);
 }