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>(); }
public static void init() { SessionFuncMgr.instance = new SessionFuncMgr(); }