예제 #1
0
파일: GS.cs 프로젝트: dautai/petfighting
    public static void GetPetData()
    {
        string str;
        string[] strs;
        Service1 ser = new Service1();
        str = ser.GetListPet(playerID);
        strs = str.Split(':');

        //set pet data
        petDatas = new System.Collections.Generic.List<PetData>();
        for(int i = 0; i < strs.Length; ++i)
        {
            if(strs[i] == "")
                continue;
            PetData tPet = new PetData();
            tPet.SetData(strs[i]);

            petDatas.Add(tPet);
        }

        numberOfPet = GS.petDatas.Count;
    }