private bool LoadGamerProfile_Version_1(string[] profileList)
{
int index = 1;
playerMoney = Convert.ToInt32(profileList[index]); index += 1;
playerLastChacterIndex = Convert.ToInt32(profileList[index]); index += 1;
defBuyItemId = Convert.ToInt32(profileList[index]); index += 1;
characterData = new PlayerChacterData[IGamerProfile.gameCharacter.characterDataList.Length];
for (int i = 0; i < characterData.Length; i++)
{
characterData[i] = new PlayerChacterData();
characterData[i].isactive = Convert.ToInt32(profileList[index]) == 1; index += 1;
characterData[i].level = Convert.ToInt32(profileList[index]); index += 1;
characterData[i].activeMoney = Convert.ToInt32(profileList[index]); index += 1;
}
characterData[0].isactive = true;
mapData = new MapData[4];
for (int i = 0; i < mapData.Length; i++)
{
mapData[i] = new MapData();
mapData[i].isActive = Convert.ToInt32(profileList[index]) == 1; index += 1;
mapData[i].activeMoney = Convert.ToInt32(profileList[index]); index += 1;
}
mapData[0].isActive = true;
levelProcess = new int[IGamerProfile.gameLevel.mapData.Length];
for (int i = 0; i < levelProcess.Length; i++)
{
levelProcess[i] = Convert.ToInt32(profileList[index]); index += 1;
}
for (int i = 0; i < equipCount.Length; i++)
{
equipCount[i] = Convert.ToInt32(profileList[index]); index += 1;
}
for (int i = 0; i < skillCount.Length; i++)
{
skillCount[i] = Convert.ToInt32(profileList[index]); index += 1;
}
return true;
}