public Api_Result <User_RecordFmt> Record()
        {
            Api_Result <User_RecordFmt> api_Result = new Api_Result <User_RecordFmt>();
            Mem_basic      user_basic     = Comm_UserDatas.Instance.User_basic;
            Mem_record     user_record    = Comm_UserDatas.Instance.User_record;
            User_RecordFmt user_RecordFmt = new User_RecordFmt();

            user_basic.SetUserRecordData(user_RecordFmt);
            user_record.SetUserRecordData(user_RecordFmt);
            user_RecordFmt.Deck_num  = Enumerable.Count <KeyValuePair <int, Mem_deck> >(Comm_UserDatas.Instance.User_deck);
            user_RecordFmt.Ship_num  = Enumerable.Count <KeyValuePair <int, Mem_ship> >(Comm_UserDatas.Instance.User_ship);
            user_RecordFmt.Slot_num  = Enumerable.Count <KeyValuePair <int, Mem_slotitem> >(Comm_UserDatas.Instance.User_slot);
            user_RecordFmt.Ndock_num = Enumerable.Count <KeyValuePair <int, Mem_ndock> >(Comm_UserDatas.Instance.User_ndock);
            user_RecordFmt.Kdock_num = Enumerable.Count <KeyValuePair <int, Mem_kdock> >(Comm_UserDatas.Instance.User_kdock);
            int num = Enumerable.Count <Mem_furniture>(Comm_UserDatas.Instance.User_furniture.get_Values(), (Mem_furniture x) => Mst_DataManager.Instance.Mst_furniture.get_Item(x.Rid).Price == 0 && Mst_DataManager.Instance.Mst_furniture.get_Item(x.Rid).Rarity == 0 && Mst_DataManager.Instance.Mst_furniture.get_Item(x.Rid).Title.Equals("なし"));

            user_RecordFmt.Furniture_num = Comm_UserDatas.Instance.User_furniture.get_Count() - num;
            user_RecordFmt.Material_max  = user_basic.GetMaterialMaxNum();
            api_Result.data = user_RecordFmt;
            return(api_Result);
        }
Esempio n. 2
0
        public Api_Result <User_RecordFmt> Record()
        {
            Api_Result <User_RecordFmt> api_Result = new Api_Result <User_RecordFmt>();
            Mem_basic      user_basic     = Comm_UserDatas.Instance.User_basic;
            Mem_record     user_record    = Comm_UserDatas.Instance.User_record;
            User_RecordFmt user_RecordFmt = new User_RecordFmt();

            user_basic.SetUserRecordData(user_RecordFmt);
            user_record.SetUserRecordData(user_RecordFmt);
            user_RecordFmt.Deck_num  = Comm_UserDatas.Instance.User_deck.Count();
            user_RecordFmt.Ship_num  = Comm_UserDatas.Instance.User_ship.Count();
            user_RecordFmt.Slot_num  = Comm_UserDatas.Instance.User_slot.Count();
            user_RecordFmt.Ndock_num = Comm_UserDatas.Instance.User_ndock.Count();
            user_RecordFmt.Kdock_num = Comm_UserDatas.Instance.User_kdock.Count();
            int num = Comm_UserDatas.Instance.User_furniture.Values.Count((Mem_furniture x) => (Mst_DataManager.Instance.Mst_furniture[x.Rid].Price == 0 && Mst_DataManager.Instance.Mst_furniture[x.Rid].Rarity == 0 && Mst_DataManager.Instance.Mst_furniture[x.Rid].Title.Equals("なし")) ? true : false);

            user_RecordFmt.Furniture_num = Comm_UserDatas.Instance.User_furniture.Count - num;
            user_RecordFmt.Material_max  = user_basic.GetMaterialMaxNum();
            api_Result.data = user_RecordFmt;
            return(api_Result);
        }