public override void Start() { base.Start(); m_net = new NetManager(); m_net.Init(2939); m_ipc = new IPCManager(); m_ipc.Init(id); }
public override void Start() { base.Start(); var net = new NetManager(); net.Init(port); var ipc = new IPCManager(); ipc.Init(id); m_context = new ServerContext(); m_context.net = net; m_context.ipc = ipc; OnlineManager.Instance.Init(m_context); RoomManager.Instance.Init(m_context); ConsoleInput.onInputLine.AddListener(OnInputLine); ConsoleInput.onInputKey.AddListener(OnInputKey); }
public override void Start() { base.Start(); m_net = new NetManager(); m_net.Init(4540); m_ipc = new IPCManager(); m_ipc.Init(id); m_context = new ServerContext(); m_context.net = m_net; m_context.ipc = m_ipc; //业务逻辑初始化 OnlineManager.Instance.Init(m_context); RoomManager.Instance.Init(m_context); ConsoleInput.onInputLine.AddListener(OnInputLine); ConsoleInput.onInputKey.AddListener(OnInputKey); }
public override void Start() { base.Start(); FSPSession.ActiveTimeout = 10;//将超时时间设为10秒,以测试 var fsp = new FSPManager(); fsp.Init(port); var ipc = new IPCManager(); ipc.Init(id); ipc.Start(); m_context = new ServerContext(); m_context.fsp = fsp; m_context.ipc = ipc; GameManager.Instance.Init(m_context); ConsoleInput.onInputLine.AddListener(OnInputLine); ConsoleInput.onInputKey.AddListener(OnInputKey); }