public bool Read(ref NetInputBuffer iStream)
    {
        int nType = Convert.ToInt32(m_nType);

        iStream.ReadInt(ref nType);
        m_nType = (ENUM_EVENT_ITEM_TYPE)nType;
        switch (m_nType)
        {
        case ENUM_EVENT_ITEM_TYPE.EVENT_ITEM_TYPE_TEXT:
            if (!m_strString.Read(ref iStream))
            {
                return(false);
            }
            break;

        case ENUM_EVENT_ITEM_TYPE.EVENT_ITEM_TYPE_SECTION:
            if (!m_strString.Read(ref iStream))
            {
                return(false);
            }
            break;

        case ENUM_EVENT_ITEM_TYPE.EVENT_ITEM_TYPE_SCRIPT_ID:
            if (iStream.ReadInt(ref m_index) != sizeof(int))
            {
                return(false);
            }
            if (iStream.ReadInt(ref m_state) != sizeof(int))
            {
                return(false);
            }
            if (iStream.ReadInt(ref m_idScript) != sizeof(int))
            {
                return(false);
            }
            if (!m_strString.Read(ref iStream))
            {
                return(false);
            }
            break;

        default:
            break;
        }

        return(true);
    }
 public bool Read(ref NetInputBuffer iStream)
 {
     if (!m_strText.Read(ref iStream))
     {
         return(false);
     }
     return(true);
 }