コード例 #1
0
 public override void DeSerialize(WfPacket r)
 {
     m_ObjId    = r.ReadInt();
     m_SkillId  = r.ReadUInt();
     m_x        = r.ReadInt();
     m_y        = r.ReadInt();
     m_TargetId = r.ReadInt();
 }
コード例 #2
0
 public override void DeSerialize(WfPacket r)
 {
     m_type      = r.ReadInt();
     m_account   = r.ReadString();
     m_pwd       = r.ReadString();
     m_equipment = r.ReadString();
     m_machine   = r.ReadString();
 }
コード例 #3
0
    private static void OnClientMsg(ClientSession socket, WfPacket pak)
    {
        int      logicCount = pak.ReadInt();
        WfPacket msg        = new WfPacket(0, 300);

        msg.Write((int)logicCount);
        KCPNet.SendPacket(socket, msg);
        UnityEngine.Debug.Log("Send msg" + logicCount.ToString());
    }
コード例 #4
0
    public override void DeSerialize(WfPacket r)
    {
        int _TempSize = 0;

        _TempSize = r.ReadInt();
        for (int i = 0; i < _TempSize; ++i)
        {
            var _var = new t_PreparePlayerData();
            _var.DeSerialize(r);
            datas.Add(_var);
        }
    }
コード例 #5
0
    public override void DeSerialize(WfPacket r)
    {
        m_ObjId = r.ReadInt();
        m_curx  = r.ReadInt();
        m_curz  = r.ReadInt();
        int _TempSize = 0;

        _TempSize = r.ReadInt();
        for (int i = 0; i < _TempSize; ++i)
        {
            int _var = r.ReadInt();
            m_xlist.Add(_var);
        }

        _TempSize = r.ReadInt();
        for (int i = 0; i < _TempSize; ++i)
        {
            int _var = r.ReadInt();
            m_zlist.Add(_var);
        }
    }
コード例 #6
0
 public override void DeSerialize(WfPacket r)
 {
     m_TemplateId = r.ReadInt();
     m_ObjectType = r.ReadInt();
     m_EntityId   = r.ReadInt();
 }
コード例 #7
0
 public override void DeSerialize(WfPacket r)
 {
     m_PlayerId = r.ReadInt();
     m_ObjId    = r.ReadInt();
 }
コード例 #8
0
 public override void DeSerialize(WfPacket r)
 {
     m_rst       = r.ReadInt();
     m_sessionid = r.ReadString();
 }
コード例 #9
0
 public override void DeSerialize(WfPacket r)
 {
     m_rst      = r.ReadInt();
     m_playerid = r.ReadUInt();
 }