コード例 #1
0
    public bool Cheat_ShowFixedReward(int fixedRewardMapID, DelPositionNonToastReward positionNonToastRewardCallback, Vector3 rewardPunchScale, Vector3 rewardScale)
    {
        if (!ApplicationMgr.IsInternal())
        {
            return(false);
        }
        DbfRecord record    = GameDbf.FixedRewardMap.GetRecord(fixedRewardMapID);
        int       sortOrder = (record != null) ? record.GetInt("SORT_ORDER") : 0;
        OnAllFixedRewardsShownCallbackInfo callbackInfo = new OnAllFixedRewardsShownCallbackInfo {
            m_rewardMapIDsToShow = new List <RewardMapIDToShow> {
                new RewardMapIDToShow(fixedRewardMapID, RewardMapIDToShow.NO_ACHIEVE_ID, sortOrder)
            },
            m_positionNonToastRewardCallback = positionNonToastRewardCallback,
            m_rewardPunchScale    = rewardPunchScale,
            m_rewardScale         = rewardScale,
            m_showingCheatRewards = true
        };

        this.ShowFixedRewards_Internal(callbackInfo);
        return(true);
    }
コード例 #2
0
    public bool ShowFixedRewards(HashSet <RewardVisualTiming> rewardVisualTimings, DelOnAllFixedRewardsShown allRewardsShownCallback, DelPositionNonToastReward positionNonToastRewardCallback, Vector3 rewardPunchScale, Vector3 rewardScale, object userData)
    {
        OnAllFixedRewardsShownCallbackInfo callbackInfo = new OnAllFixedRewardsShownCallbackInfo {
            m_rewardMapIDsToShow             = new List <RewardMapIDToShow>(),
            m_onAllRewardsShownCallback      = allRewardsShownCallback,
            m_positionNonToastRewardCallback = positionNonToastRewardCallback,
            m_rewardPunchScale = rewardPunchScale,
            m_rewardScale      = rewardScale,
            m_userData         = userData
        };

        foreach (RewardVisualTiming timing in rewardVisualTimings)
        {
            if (this.m_rewardMapIDsToShow.ContainsKey(timing))
            {
                callbackInfo.m_rewardMapIDsToShow.AddRange(this.m_rewardMapIDsToShow[timing]);
                this.m_rewardMapIDsToShow[timing].Clear();
            }
        }
        if (callbackInfo.m_rewardMapIDsToShow.Count == 0)
        {
            return(false);
        }
        if (< > f__am$cache9 == null)
        {
コード例 #3
0
 public bool ShowFixedRewards(HashSet <RewardVisualTiming> rewardVisualTimings, DelOnAllFixedRewardsShown allRewardsShownCallback, DelPositionNonToastReward positionNonToastRewardCallback, Vector3 rewardPunchScale, Vector3 rewardScale)
 {
     return(this.ShowFixedRewards(rewardVisualTimings, allRewardsShownCallback, positionNonToastRewardCallback, rewardPunchScale, rewardScale, null));
 }