예제 #1
0
 public static bool ReLoad()
 {
     try
     {
         Dictionary <int, BallConfigInfo> dictionary = BallConfigMgr.LoadFromDatabase();
         if (dictionary.Values.Count > 0)
         {
             Interlocked.Exchange <Dictionary <int, BallConfigInfo> >(ref BallConfigMgr.m_infos, dictionary);
             return(true);
         }
     }
     catch (Exception exception)
     {
         BallConfigMgr.log.Error("Ball Mgr init error:", exception);
     }
     return(false);
 }
예제 #2
0
 public static bool Init()
 {
     return(BallConfigMgr.ReLoad());
 }