Пример #1
0
 public Dictionary <string, CardEffect> GetCardEffectDict()
 {
     if (cardEffectDict == null)
     {
         cardEffectDict = ConnHelper.GetCardEffectDict();
     }
     return(cardEffectDict);
 }
Пример #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);
 }