예제 #1
0
        public Session(IConnection c, NetManager mgr)
        {
            SessionFuncMgr.init();
            this._conn = c;
            bool flag = this._conn == null;

            if (flag)
            {
                this._conn = os.net.CreateConnection();
            }
            this._conn.EventHandler = this;
            this._netMgr            = mgr;
            this._MsgVec            = new List <MsgProcesser>();
        }
예제 #2
0
 public static void init()
 {
     SessionFuncMgr.instance = new SessionFuncMgr();
 }