コード例 #1
0
        public static int GetUpgradeCostDianQuanByLevel(int guildLevel)
        {
            ResGuildLevel dataByKey = GameDataMgr.guildLevelDatabin.GetDataByKey((uint)((byte)guildLevel));

            if (dataByKey != null)
            {
                return(dataByKey.iUpgradeCostCoupons);
            }
            DebugHelper.Assert(false, "CGuildHelper.GetUpgradeCostDianQuanByLevel(): resGuildLevel is null, guildLevel={0}", new object[]
            {
                guildLevel
            });
            return(-1);
        }
コード例 #2
0
        public static int GetMaxGuildMemberCountByLevel(int guildLevel)
        {
            ResGuildLevel dataByKey = GameDataMgr.guildLevelDatabin.GetDataByKey((uint)((byte)guildLevel));

            if (dataByKey != null)
            {
                return((int)dataByKey.bMaxMemberCnt);
            }
            DebugHelper.Assert(false, "CGuildHelper.GetMaxGuildMemberCountByLevel(): resGuildLevel is null, guildLevel={0}", new object[]
            {
                guildLevel
            });
            return(-1);
        }