public Dictionary <BuffCode, BaseBuff> GetBuffInfoDict() { if (buffInfoDict == null) { buffInfoDict = ConnHelper.GetBuffInfoDict(); } return(buffInfoDict); }
public void Start() { serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); serverSocket.Bind(ipEndPoint); serverSocket.Listen(0); cardEffectDict = ConnHelper.GetCardEffectDict(); buffInfoDict = ConnHelper.GetBuffInfoDict(); allHeroCardDict = ConnHelper.GetAllHeroCardDict(); skillDict = ConnHelper.GetSkillInfoDict(); serverSocket.BeginAccept(AcceptCallBack, null); }