public bool UpdateInGameGuildDailyGainGP(int guildSN, GPGainType gainType, int point) { if (FeatureMatrix.IsEnable("GuildLevel")) { int num = this.UpdateInGameGuildDailyGainGP(new int?(FeatureMatrix.GameCode), new int?(GuildAPI.ServerCode), new int?(guildSN), new byte?((byte)gainType), new int?(point)); if (num == 1) { return(true); } } return(false); }
public static int GetDailyGPLimit(GPGainType gainType) { if (!GPGainTypeUtil.IsValidGPGainTypeValue(gainType, true)) { return 0; } int result = 0; if (!GuildContents.GuildDailyGPLimit.TryGetValue(gainType, out result)) { result = -1; } return result; }
public static bool IsValidGPGainTypeValue(GPGainType type, bool includeCheat) { return(GPGainTypeUtil.IsValidGPGainTypeValue((int)type, includeCheat)); }