コード例 #1
0
        // Token: 0x0600F69C RID: 63132 RVA: 0x0041346C File Offset: 0x0041166C
        public void Refresh()
        {
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo();

            if (this.m_rewardInfo.Points < guildPlayerMassiveCombatInfo.Points)
            {
                this.m_itemAnimation.SetToUIState("Got", false, true);
            }
        }
コード例 #2
0
        // Token: 0x0600F698 RID: 63128 RVA: 0x00413314 File Offset: 0x00411514
        public void Refresh()
        {
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo();

            this.m_total.text = guildPlayerMassiveCombatInfo.Points.ToString();
            foreach (MassiveCombatPersonRewardItemUIController massiveCombatPersonRewardItemUIController in this.m_rewardItemUIControllerList)
            {
                massiveCombatPersonRewardItemUIController.Refresh();
            }
        }
コード例 #3
0
        // Token: 0x0600F69B RID: 63131 RVA: 0x004133D8 File Offset: 0x004115D8
        public void Init(ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo rewardInfo)
        {
            this.m_rewardInfo        = rewardInfo;
            this.m_integralText.text = rewardInfo.Points.ToString();
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo();

            if (rewardInfo.Points < guildPlayerMassiveCombatInfo.Points)
            {
                this.m_itemAnimation.SetToUIState("Got", false, true);
            }
            GameObject prefab = this.m_resourceContainer.GetAsset("RewardGoods") as GameObject;

            RewardGoodsUIController.CreateRewardGoodsList(rewardInfo.RewardItems, this.m_rewardContent.transform, prefab, null, true, 0, true);
        }
    public static int get_UsedHeroIds(IntPtr l)
    {
        int result;

        try
        {
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = (GuildPlayerMassiveCombatInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, guildPlayerMassiveCombatInfo.UsedHeroIds);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            GuildPlayerMassiveCombatInfo o = new GuildPlayerMassiveCombatInfo();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int ToPro(IntPtr l)
    {
        int result;

        try
        {
            GuildPlayerMassiveCombatInfo    info = (GuildPlayerMassiveCombatInfo)LuaObject.checkSelf(l);
            ProGuildPlayerMassiveCombatInfo o    = info.ToPro();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_UsedHeroIds(IntPtr l)
    {
        int result;

        try
        {
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = (GuildPlayerMassiveCombatInfo)LuaObject.checkSelf(l);
            List <int> usedHeroIds;
            LuaObject.checkType <List <int> >(l, 2, out usedHeroIds);
            guildPlayerMassiveCombatInfo.UsedHeroIds = usedHeroIds;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Points(IntPtr l)
    {
        int result;

        try
        {
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = (GuildPlayerMassiveCombatInfo)LuaObject.checkSelf(l);
            int points;
            LuaObject.checkType(l, 2, out points);
            guildPlayerMassiveCombatInfo.Points = points;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_BindedGuildId(IntPtr l)
    {
        int result;

        try
        {
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = (GuildPlayerMassiveCombatInfo)LuaObject.checkSelf(l);
            string bindedGuildId;
            LuaObject.checkType(l, 2, out bindedGuildId);
            guildPlayerMassiveCombatInfo.BindedGuildId = bindedGuildId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #10
0
        // Token: 0x0600F697 RID: 63127 RVA: 0x004131E8 File Offset: 0x004113E8
        public void Init()
        {
            GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo();
            ConfigDataGuildMassiveCombatDifficultyInfo configDataGuildMassiveCombatDifficultyInfo = this.m_configDataLoader.GetConfigDataGuildMassiveCombatDifficultyInfo(currentGuildMassiveCombatInfo.Difficulty);
            List <ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo> list = new List <ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo>();

            foreach (KeyValuePair <int, ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo> keyValuePair in this.m_configDataLoader.GetAllConfigDataGuildMassiveCombatIndividualPointsRewardsInfo())
            {
                if (keyValuePair.Value.RewardGroupID == configDataGuildMassiveCombatDifficultyInfo.IndividualPointsRewardsInfo)
                {
                    list.Add(keyValuePair.Value);
                }
            }
            for (int i = 0; i < list.Count; i++)
            {
                GameObject go = GameObjectUtility.CloneGameObject(this.m_itemPrefab, this.m_rewardContent.transform);
                MassiveCombatPersonRewardItemUIController massiveCombatPersonRewardItemUIController = GameObjectUtility.AddControllerToGameObject <MassiveCombatPersonRewardItemUIController>(go);
                massiveCombatPersonRewardItemUIController.Init(list[i]);
                this.m_rewardItemUIControllerList.Add(massiveCombatPersonRewardItemUIController);
            }
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo();

            this.m_total.text = guildPlayerMassiveCombatInfo.Points.ToString();
        }