예제 #1
0
    void LoadPlayerData()
    {
        List <Dictionary <string, object> > data = csvReader.Read(baseResourcePath + "Chara");

        playerData = new CharacterBase[data.Count];
        for (var i = 0; i < data.Count; i++)
        {
            StatusData stat = new StatusData();
            stat.SetData(
                (int)data[i][StatusData.memberList[0]],
                (int)data[i][StatusData.memberList[1]],
                (int)data[i][StatusData.memberList[2]],
                (int)data[i][StatusData.memberList[3]],
                (int)data[i][StatusData.memberList[4]],
                (int)data[i][StatusData.memberList[5]]
                );

            playerData[i] = new CharacterBase((string)data[i]["imgFile"], (string)data[i]["charName"], stat, (int)data[i]["skillData"]);
        }
    }