Exemplo n.º 1
0
        public CommandAddChrono(DelegateScreenInvalidate _invalidate, DelegateDrawingUndrawn _undrawn, Metadata _Metadata)
        {
            m_DoInvalidate  = _invalidate;
            m_DoUndrawn     = _undrawn;
            m_Metadata      = _Metadata;
            m_iTotalChronos = m_Metadata.Chronos.Count;

            // Chrono (as all Drawings) are added to the list in reverse order.
            m_Chrono = m_Metadata.Chronos[0];
        }
Exemplo n.º 2
0
        public CommandAddDrawing(DelegateScreenInvalidate _invalidate, DelegateDrawingUndrawn _undrawn, Metadata _Metadata, long _iFramePosition)
        {
            m_DoInvalidate = _invalidate;
            m_DoUndrawn    = _undrawn;

            m_iFramePosition = _iFramePosition;
            m_Metadata       = _Metadata;

            int iIndex = GetKeyframeIndex();

            if (iIndex >= 0)
            {
                m_iTotalDrawings = m_Metadata[iIndex].Drawings.Count;
                m_Drawing        = m_Metadata[iIndex].Drawings[0];
            }
        }