示例#1
0
 public Dictionary <BuffCode, BaseBuff> GetBuffInfoDict()
 {
     if (buffInfoDict == null)
     {
         buffInfoDict = ConnHelper.GetBuffInfoDict();
     }
     return(buffInfoDict);
 }
示例#2
0
 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);
 }