public static string GetDonateSuccessTip(RES_GUILD_DONATE_TYPE donateType) { ResGuildDonate dataByKey = GameDataMgr.guildDonateDatabin.GetDataByKey((byte)donateType); uint dwGetConstruct = dataByKey.dwGetConstruct; uint dwGetGuildMoney = dataByKey.dwGetGuildMoney; uint dwGetCoinPool = dataByKey.dwGetCoinPool; string[] args = new string[] { dwGetConstruct.ToString(), dwGetGuildMoney.ToString(), dwGetCoinPool.ToString() }; return(Singleton <CTextManager> .GetInstance().GetText("Guild_Donate_Success", args)); }
public static string GetDonateDescription(RES_GUILD_DONATE_TYPE donateType) { ResGuildDonate dataByKey = GameDataMgr.guildDonateDatabin.GetDataByKey((byte)donateType); uint dwCostGold = dataByKey.dwCostGold; uint dwCostCoupons = dataByKey.dwCostCoupons; uint dwGetConstruct = dataByKey.dwGetConstruct; uint dwGetGuildMoney = dataByKey.dwGetGuildMoney; uint dwGetCoinPool = dataByKey.dwGetCoinPool; string str = (dwCostGold != 0) ? dwCostGold.ToString() : dwCostCoupons.ToString(); string text = Singleton <CTextManager> .GetInstance().GetText((dwCostGold != 0) ? "Money_Type_GoldCoin" : "Money_Type_DianQuan"); string[] args = new string[] { str, text, dwGetConstruct.ToString(), dwGetGuildMoney.ToString(), dwGetCoinPool.ToString() }; return(Singleton <CTextManager> .GetInstance().GetText("Guild_Donate_Description", args)); }
public static uint GetDonateCostDianQuan(RES_GUILD_DONATE_TYPE donateType) { ResGuildDonate dataByKey = GameDataMgr.guildDonateDatabin.GetDataByKey((uint)((byte)donateType)); return(dataByKey.dwCostCoupons); }
public static bool IsDonateUseCoin(RES_GUILD_DONATE_TYPE donateType) { ResGuildDonate dataByKey = GameDataMgr.guildDonateDatabin.GetDataByKey((uint)((byte)donateType)); return(dataByKey.dwCostGold != 0u); }
public static uint GetDonateCostCoin(RES_GUILD_DONATE_TYPE donateType) { ResGuildDonate dataByKey = GameDataMgr.guildDonateDatabin.GetDataByKey((uint)donateType); return(dataByKey.dwCostGold); }