Exemplo n.º 1
0
 public OPLInfo( ObjectPropertyListPacket list )
     : base(0xDC, 9)
 {
     m_Stream.Write( (int) list.Entity.Serial );
     m_Stream.Write( (int) list.Hash );
 }
Exemplo n.º 2
0
        public void ClearProperties()
        {
            if ( m_PropertyList != null )
            {
                m_PropertyList.Release();
                m_PropertyList = null;
            }

            if ( m_OplPacket != null )
            {
                m_OplPacket.Release();
                m_OplPacket = null;
            }
        }
Exemplo n.º 3
0
        public void InvalidateProperties()
        {
            if ( !ObjectPropertyListPacket.Enabled )
                return;

            if ( m_Map != null && m_Map != Map.Internal && !World.Instance.Loading )
            {
                ObjectPropertyListPacket oldList = m_PropertyList;

                if ( m_PropertyList != null )
                {
                    m_PropertyList.Release();
                    m_PropertyList = null;
                }

                ObjectPropertyListPacket newList = PropertyList;

                if ( oldList == null || oldList.Hash != newList.Hash )
                {
                    if ( m_OplPacket != null )
                    {
                        m_OplPacket.Release();
                        m_OplPacket = null;
                    }

                    Delta( MobileDelta.Properties );
                }
            }
            else
            {
                ClearProperties();
            }
        }
Exemplo n.º 4
0
 public OPLInfo(ObjectPropertyListPacket list)
     : base(0xDC, 9)
 {
     m_Stream.Write((int)list.Entity.Serial);
     m_Stream.Write((int)list.Hash);
 }