Пример #1
0
 internal void SendPackage()
 {
     if (!IsCasheEmpty)
     {
         SocketMgr.SendGameLogicPackge(this);
         ClearAllList();
     }
 }
Пример #2
0
        public RuleSupNet()
        {
            inputCashe  = new SyncCashe();
            outputCashe = new SyncCashe();
            SyncCasheWriter.OutPutCashe = outputCashe;
            SyncCasheReader.InputCashe  = inputCashe;

            //temp
            PurviewMgr.IsMainHost = true;

            // SocketMgr 的管理交给UI控制
            //SocketMgr.Initial();
            SocketMgr.SetInputCahes(inputCashe);
            //SocketMgr.ConnectToServer();

            //SocketMgr.StartReceiveThread();
        }