Ejemplo n.º 1
0
        /// <summary>
        /// Sets a specified byte of an updatefield to the specified value
        /// </summary>
        /// <param name="field">The field to set</param>
        /// <param name="value">The value to set</param>
        /// <param name="index">The index of the byte in the 4-byte field. (Ranges from 0-3)</param>
        protected void SetByte(int iField, int iIndex, byte byValue)
        {
            if (m_UpdateValues[iField].GetByte(iIndex) == byValue)
            {
                return;
            }

            m_UpdateValues[iField].SetByte(iIndex, byValue);

            m_PrivateUpdateMask.SetBit(iField);
            if (VisibilityManager.IsPublicField(iField) == true)
            {
                m_PublicUpdateMask.SetBit(iField);
            }

            OnRequestUpdate();
        }
Ejemplo n.º 2
0
        protected void SetInt16High(int iField, short sValue)
        {
            if (m_UpdateValues[iField].Int16High == sValue)
            {
                return;
            }

            m_UpdateValues[iField].Int16High = sValue;

            m_PrivateUpdateMask.SetBit(iField);
            if (VisibilityManager.IsPublicField(iField) == true)
            {
                m_PublicUpdateMask.SetBit(iField);
            }

            OnRequestUpdate();
        }
Ejemplo n.º 3
0
        protected void SetUInt32(int iField, uint uiValue)
        {
            if (m_UpdateValues[iField].UInt32 == uiValue)
            {
                return;
            }

            m_UpdateValues[iField].UInt32 = uiValue;

            m_PrivateUpdateMask.SetBit(iField);
            if (VisibilityManager.IsPublicField(iField) == true)
            {
                m_PublicUpdateMask.SetBit(iField);
            }

            OnRequestUpdate();
        }
Ejemplo n.º 4
0
        protected void SetFloat(int iField, float fValue)
        {
            if (m_UpdateValues[iField].Float == fValue)
            {
                return;
            }

            m_UpdateValues[iField].Float = fValue;

            m_PrivateUpdateMask.SetBit(iField);
            if (VisibilityManager.IsPublicField(iField) == true)
            {
                m_PublicUpdateMask.SetBit(iField);
            }

            OnRequestUpdate();
        }