private void Deserialize(Json_ItemSelectResponse json)
        {
            ItemSelectListData itemSelectListData = new ItemSelectListData();

            itemSelectListData.Deserialize(json);
            this.mGetItemWindow.Refresh(itemSelectListData.items.ToArray());
        }
        private Json_ItemSelectResponse DummyResponse()
        {
            string[] strArray = new string[2]
            {
                "IT_SET_EQUP_MIT_03",
                "IT_SET_EQUP_MIT_03"
            };
            int length = strArray.Length;
            Json_ItemSelectResponse itemSelectResponse = new Json_ItemSelectResponse();

            itemSelectResponse.select = new Json_ItemSelectItem[length];
            if (Object.op_Equality((Object)MonoSingleton <GameManager> .GetInstanceDirect(), (Object)null))
            {
                GameManager instance = MonoSingleton <GameManager> .Instance;
            }
            for (int index = 0; index < length; ++index)
            {
                itemSelectResponse.select[index] = new Json_ItemSelectItem()
                {
                    iname = strArray[index]
                }
            }
            ;
            return(itemSelectResponse);
        }
Пример #3
0
 public void Deserialize(Json_ItemSelectResponse json)
 {
     if (json == null || json.select == null)
     {
         return;
     }
     this.items = new List <ItemSelectListItemData>();
     for (int index = 0; index < json.select.Length; ++index)
     {
         this.items.Add(new ItemSelectListItemData());
         this.items[index].Deserialize(json.select[index]);
         this.items[index].param = MonoSingleton <GameManager> .Instance.MasterParam.GetItemParam(this.items[index].iiname);
     }
 }