示例#1
0
    // Use this for initialization
    void Start()
    {
        System.Threading.Thread.Sleep(1000);
        A = new ChatTest();

        List <ChatTest.mainList> temp = new List <ChatTest.mainList>();

        temp      = A.revChat();
        ItemList2 = new List <Item>();

        for (int i = 0; i < temp.Count; i++)
        {
            Debug.Log("ok10");
            Item tempData = new Item();
            tempData.idx         = temp[i].idx;
            tempData.Name        = temp[i].mapname;
            tempData.User        = temp[i].username;
            tempData.Mapsize     = temp[i].size;
            tempData.count       = temp[i].total_count;
            tempData.rating      = temp[i].rating;
            tempData.Mode        = temp[i].mode;
            tempData.min_        = temp[i].min;
            tempData.OnItemClick = null;
            ItemList2.Add(tempData);
        }
        Binding();
    }
示例#2
0
    public void makedata()
    {
        // 서버통신
        List <ChatTest.mainList> temp = new List <ChatTest.mainList>();


        ChatTest B = new ChatTest();

        temp = B.revChat();

        ItemList2 = new List <Item>();

        for (int i = 0; i < temp.Count; i++)
        {
            Debug.Log("ok10");
            Item tempData = new Item();
            tempData.idx      = temp[i].idx;
            tempData.Name     = temp[i].mapname;
            tempData.User     = temp[i].username;
            tempData.min_     = temp[i].min;
            tempData.user_id  = temp[i].userid;
            tempData.Mapsize  = temp[i].size;
            tempData.count    = temp[i].total_count;
            tempData.rating   = temp[i].rating;
            tempData.Mode     = temp[i].mode;
            tempData.mapscore = temp[i].mapscore;
            tempData.played   = temp[i].flag;
            //클리어부분
            tempData.OnItemClick = null;
            ItemList2.Add(tempData);
        }
        // 각 데이터 넣는것
        Binding();
    }
示例#3
0
    public void makedata()
    {
        // 서버통신
        List <ChatTest.mainList> temp = new List <ChatTest.mainList>();


        ChatTest B = new ChatTest();

        temp = B.revChat();

        kk = 0;
        initi();
        ItemList2 = new List <Item>();
        ItemList2.Clear();

        for (int i = 0; i < temp.Count; i++)
        {
            Debug.Log("ok10");
            Item tempData = new Item();
            tempData.idx         = temp[i].idx;
            tempData.Name        = temp[i].mapname;
            tempData.User        = temp[i].username;
            tempData.min_        = temp[i].min;
            tempData.Mapsize     = temp[i].size;
            tempData.Mode        = temp[i].mode;
            tempData.OnItemClick = null;
            ItemList2.Add(tempData);
        }
        // 각 데이터 넣는것
        Binding();
    }
示例#4
0
    public void makedata()
    {
        // 서버통신
        A = new ChatTest();
        List <ChatTest.Data> temp = A.revChat();


        for (int i = 0; i < temp.Count; i++)
        {
            ItemList2[i].Name    = temp[i].id;   // 맵 이름
            ItemList2[i].User    = temp[i].id;   // 유저 이름
            ItemList2[i].Mapsize = temp[i].size; // 0 normal, 1 large
            ItemList2[i].Mode    = temp[i].mode; // 0 classic, 1 extend
        }
        // 각 데이터 넣는것
    }
示例#5
0
    public void makedata()
    {
        // 서버통신
        ChatTest A = new ChatTest();

        ChatTest.Data B = new ChatTest.Data();

        B = A.revChat();
        int itemsize = A.revChat().size;

        // size

        for (int i = 0; i < itemsize; i++)
        {
            ItemList2[i].Name    = A.revChat().id;   // 맵 이름
            ItemList2[i].User    = A.revChat().id;   // 유저 이름
            ItemList2[i].Mapsize = A.revChat().size; // 0 normal, 1 large
            ItemList2[i].Mode    = A.revChat().mode; // 0 classic, 1 extend
        }
        // 각 데이터 넣는것
    }