예제 #1
0
        public void updateData()
        {
            int frames = hours * 60; // hours to minutes

            frames += minutes;
            frames *= 60; // minutes to seconds
            frames += seconds;
            frames *= 60; // seconds to frames
            saveData.save32bitInt(gameIndex, frames);
            saveData.save32bitInt(saveInfoIndex, frames);
        }
        public void updateData()
        {
            Int32 baseIndex = characterIndexes[(int)characterID];

            saveData.save32bitInt(baseIndex, exp);
            saveData.save16bitInt(baseIndex + hpOffset, hp);
            saveData.save16bitInt(baseIndex + mpOffset, mp);
            saveData.save16bitInt(baseIndex + spOffset, sp);
            saveData.save16bitInt(baseIndex + dexpOffset, dexp);
            saveData.save8bitInt(baseIndex + lvlOffset, lvl);
            saveData.save8bitInt(baseIndex + dlvlOffset, dlvl);
            saveData.save8bitUint(baseIndex + weaponOffset, (uint)weapon);
            saveData.save8bitUint(baseIndex + helmetOffset, (uint)helmet);
            saveData.save8bitUint(baseIndex + chestOffset, (uint)chest);
            saveData.save8bitUint(baseIndex + bootsOffset, (uint)boots);
            saveData.save8bitUint(baseIndex + accessoryOffset, (uint)accessory);
            foreach (Addition addition in additions)
            {
                saveData.save8bitInt(addition.index, addition.hits);
            }
            if (characterID == CharacterID.Dart)
            {
                saveData.save8bitInt(dartSaveInfoIndex, lvl);
                saveData.save8bitInt(dartSaveInfoIndex + dartSaveInfoDLvlOffset, dlvl);
                saveData.save16bitInt(dartSaveInfoIndex + dartSaveInfoHPOffset, hp);
                saveData.save16bitInt(dartSaveInfoIndex + dartSaveInfoMaxHPOffset, dartMaxHp);
            }
        }
 public void updateData()
 {
     saveData.save32bitInt(party1saveInfoIndex, (int)party1);
     saveData.save32bitInt(party1gameIndex, (int)party1);
     saveData.save32bitInt(party2saveInfoIndex, (int)party2);
     saveData.save32bitInt(party2gameIndex, (int)party2);
     saveData.save32bitInt(party3saveInfoIndex, (int)party3);
     saveData.save32bitInt(party3gameIndex, (int)party3);
 }