static void ReceviceDebugMsg(SyncSession session, ProtocolRequestBase e)
    {
        Protocol.DebugMsg msg = new Protocol.DebugMsg();
        msg.frame = (int)e.m_data["frame"];
        {
            List <Dictionary <string, object> > data2 = (List <Dictionary <string, object> >)e.m_data["infos"];
            List <Protocol.EntityInfo>          list2 = new List <Protocol.EntityInfo>();
            for (int i2 = 0; i2 < data2.Count; i2++)
            {
                Protocol.EntityInfo tmp2 = new Protocol.EntityInfo();
                tmp2.id = (int)data2[i2]["id"];
                {
                    List <Dictionary <string, object> > data4 = (List <Dictionary <string, object> >)data2[i2]["infos"];
                    List <Protocol.ComponentInfo>       list4 = new List <Protocol.ComponentInfo>();
                    for (int i4 = 0; i4 < data4.Count; i4++)
                    {
                        Protocol.ComponentInfo tmp4 = new Protocol.ComponentInfo();
                        tmp4.m_compName = data4[i4]["m_compname"].ToString();
                        tmp4.content    = data4[i4]["content"].ToString();
                        list4.Add(tmp4);
                    }
                    tmp2.infos = list4;
                }
                list2.Add(tmp2);
            }
            msg.infos = list2;
        }

        EventService.DispatchTypeEvent(session, msg);
    }
    static void ReceviceChangeSingletonComponentMsg(SyncSession session, ProtocolRequestBase e)
    {
        Protocol.ChangeSingletonComponentMsg msg = new Protocol.ChangeSingletonComponentMsg();
        msg.frame = (int)e.m_data["frame"];
        {
            Dictionary <string, object> data2 = (Dictionary <string, object>)e.m_data["info"];
            Protocol.ComponentInfo      tmp2  = new Protocol.ComponentInfo();
            tmp2.m_compName = data2["m_compname"].ToString();
            tmp2.content    = data2["content"].ToString();
            msg.info        = tmp2;
        }

        EventService.DispatchTypeEvent(session, msg);
    }
示例#3
0
    static void ReceviceChangeSingletonComponentMsg(InputNetworkMessageEvent e)
    {
        Protocol.ChangeSingletonComponentMsg msg = new Protocol.ChangeSingletonComponentMsg();
        msg.frame = (int)e.Data["frame"];
        {
            Dictionary <string, object> data2 = (Dictionary <string, object>)e.Data["info"];
            Protocol.ComponentInfo      tmp2  = new Protocol.ComponentInfo();
            tmp2.m_compName = data2["m_compname"].ToString();
            tmp2.content    = data2["content"].ToString();
            msg.info        = tmp2;
        }

        GlobalEvent.DispatchTypeEvent(msg);
    }
示例#4
0
    static void ReceviceSyncEntityMsg(InputNetworkMessageEvent e)
    {
        Protocol.SyncEntityMsg msg = new Protocol.SyncEntityMsg();
        msg.frame = (int)e.Data["frame"];
        msg.id    = (int)e.Data["id"];
        {
            List <Dictionary <string, object> > data2 = (List <Dictionary <string, object> >)e.Data["infos"];
            List <Protocol.ComponentInfo>       list2 = new List <Protocol.ComponentInfo>();
            for (int i2 = 0; i2 < data2.Count; i2++)
            {
                Protocol.ComponentInfo tmp2 = new Protocol.ComponentInfo();
                tmp2.m_compName = data2[i2]["m_compname"].ToString();
                tmp2.content    = data2[i2]["content"].ToString();
                list2.Add(tmp2);
            }
            msg.infos = list2;
        }

        GlobalEvent.DispatchTypeEvent(msg);
    }