예제 #1
0
 /// <summary>
 /// Accepts a new offset
 /// </summary>
 /// <param name="offset"></param>
 internal override void SetOffset(Offset offset)
 {
     if (m_Cmd != null)
     {
         m_Cmd.SetOffset(offset);
     }
 }
예제 #2
0
        void SetOffsetRight(bool isRight)
        {
            // The offset HAS to be an offset distance.
            OffsetDistance dist = (m_Offset as OffsetDistance);

            if (dist == null)
            {
                return;
            }

            // Record the offset side.
            if (isRight)
            {
                dist.SetRight();
            }
            else
            {
                dist.SetLeft();
            }

            // Tell the command.
            m_Cmd.SetOffset(dist);
        }