예제 #1
0
    public bool Update(float delta)
    {
        if (m_TCPClient != null)
        {
            m_TCPClient.Update();
        }

        if (m_Handler != null && m_Handler.CanProcessCmd())
        {
            while (m_CmdList.HasItem() && m_Handler != null)
            {
                NetCmdPack nc = m_CmdList.GetItem();
                if (m_Handler.Handle(nc) == false)
                {
                    if (HeaderManager.Instance.HandleCmd(nc) == false)
                    {
                        m_FinalHandler.Handle(nc);
                    }
                }
            }
        }
        return(true);
    }
 public void Handle(T cmd)
 {
     _decorated.Handle(cmd);
 }