Exemplo n.º 1
0
 /// <summary>
 /// 获取购买所需金币.
 /// </summary>
 /// <returns>The buy need coin or diamond.</returns>
 /// <param name="type">Type.</param>
 /// <param name="isTenBuy">If set to <c>true</c> is ten buy.</param>
 public static int GetBuyNeedCoinOrDiamond(ErnieSetType type, bool isTenBuy = false)
 {
     if (isTenBuy)
     {
         return(ErnieM.GetErnieLotteryDrawNeed(type) * 10 * ErnieM.GetErnieTenDisCount(type) / 100);
     }
     else
     {
         return(ErnieM.GetErnieLotteryDrawNeed(type));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 从protobuf 解析静态数据到本地
 /// </summary>
 /// <param name="msg"></param>
 public static void LoadStaticDataToLocal(sdata.StaticDataResponse msg)
 {
     ConfigM.Init(msg);
     buildingM.Init(msg);
     DeckM.Init(msg);
     UserM.Init(msg);
     SoldierM.Init(msg);
     SummonM.Init(msg);
     SkillM.Init(msg);
     StageM.Init(msg);
     RoleNameM.Init(msg);
     ItemM.Init(msg);
     GodSkillM.Init(msg);
     AthleticsM.Init(msg);
     ErnieM.Init(msg);
     FruitionM.Init(msg);
     ShipPlanM.Init(msg);
 }