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); }
public static bool Init() { return(BallConfigMgr.ReLoad()); }