Exemplo n.º 1
0
        public static RankingQuestUserData CreateRankingUserDataFromJson(FlowNode_ReqQuestRanking.Json_OwnRankingData json, RankingQuestType type)
        {
            RankingQuestUserData rankingQuestUserData = (RankingQuestUserData)null;

            if (json != null)
            {
                rankingQuestUserData = new RankingQuestUserData();
                rankingQuestUserData.Deserialize(json);
                rankingQuestUserData.m_RankingType = type;
            }
            return(rankingQuestUserData);
        }
Exemplo n.º 2
0
        public void Deserialize(FlowNode_ReqQuestRanking.Json_OwnRankingData json)
        {
            GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect();

            if (Object.op_Equality((Object)instanceDirect, (Object)null))
            {
                return;
            }
            this.m_PlayerName = instanceDirect.Player.Name;
            this.m_Rank       = json.rank;
            this.m_MainScore  = json.main_score;
            this.m_SubScore   = json.sub_score;
            this.m_UID        = instanceDirect.DeviceId;
            this.m_UnitData   = new UnitBuilder(json.unit.unit_iname).SetExpByLevel(json.unit.unit_lv).SetJob(string.Empty, json.unit.job_lv).SetAwake(25).SetRarity(5).SetUnlockTobiraNum(7).Build();
        }