예제 #1
0
 public bool IsRecommendedGuild(int guildSN)
 {
     if (FeatureMatrix.IsEnable("NewbieGuildRecommend"))
     {
         GetInGameGuildInfo getInGameGuildInfo = this.GetInGameGuildInfo(new int?(FeatureMatrix.GameCode), new int?(ServiceCoreSettings.ServerCode), new int?(guildSN)).FirstOrDefault <GetInGameGuildInfo>();
         return(getInGameGuildInfo != null && getInGameGuildInfo.NewbieRecommend);
     }
     return(false);
 }
예제 #2
0
        public GetInGameGuildInfo GetGuildInfo(int guildSN)
        {
            GetInGameGuildInfo getInGameGuildInfo = this.GetInGameGuildInfo(new int?(FeatureMatrix.GameCode), new int?(GuildAPI.ServerCode), new int?(guildSN)).FirstOrDefault <GetInGameGuildInfo>();

            if (getInGameGuildInfo != null)
            {
                return(getInGameGuildInfo);
            }
            return(new GetInGameGuildInfo
            {
                Level = 1,
                Exp = 0L,
                NewbieRecommend = false,
                Notice = ""
            });
        }
예제 #3
0
 public int GetMaxMemberLimit(int guildSN)
 {
     if (FeatureMatrix.IsEnable("InGameGuild"))
     {
         if (FeatureMatrix.GetInteger("InGameGuild_MaxMemberLimit") > FeatureMatrix.GetInteger("InGameGuild_MaxMember"))
         {
             GetInGameGuildInfo getInGameGuildInfo = this.GetInGameGuildInfo(new int?(FeatureMatrix.GameCode), new int?(GuildAPI.ServerCode), new int?(guildSN)).FirstOrDefault <GetInGameGuildInfo>();
             if (getInGameGuildInfo != null && getInGameGuildInfo.MaxMemberLimit > FeatureMatrix.GetInteger("InGameGuild_MaxMember"))
             {
                 return(getInGameGuildInfo.MaxMemberLimit);
             }
         }
         return(FeatureMatrix.GetInteger("InGameGuild_MaxMember"));
     }
     return(0);
 }