Exemplo n.º 1
0
        public IObject(LWF lwf,
                       Movie parent, Type type, int objId, int instId)
            : base(lwf, parent, type, objId)
        {
            m_prevInstance = null;
            m_nextInstance = null;
            m_linkInstance = null;

            m_instanceId =
                (instId >= lwf.data.instanceNames.Length) ? -1 : (int)instId;

            if (m_instanceId >= 0)
            {
                int stringId = lwf.GetInstanceNameStringId(m_instanceId);
                m_name = stringId == -1 ? null : lwf.data.strings[stringId];

                IObject head = m_lwf.GetInstance(m_instanceId);
                if (head != null)
                {
                    head.m_prevInstance = this;
                }
                m_nextInstance = head;
                m_lwf.SetInstance(m_instanceId, this);
            }
        }
Exemplo n.º 2
0
 public Object(LWF lwf, Movie parent, Type type, int objId)
 {
     m_lwf = lwf;
     m_parent = parent;
     m_type = type;
     m_objectId = objId;
     m_matrix = new Matrix();
     m_colorTransform = new ColorTransform();
     m_execCount = 0;
 }
Exemplo n.º 3
0
 public Object(LWF lwf, Movie parent, Type type, int objId)
 {
     m_lwf            = lwf;
     m_parent         = parent;
     m_type           = type;
     m_objectId       = objId;
     m_matrix         = new Matrix();
     m_colorTransform = new ColorTransform();
     m_execCount      = 0;
 }
Exemplo n.º 4
0
	public Object(LWF lwf, Movie parent, Type type, int objId)
	{
		m_lwf = lwf;
		m_parent = parent;
		m_type = type;
		m_objectId = objId;
		m_matrixId = -1;
		m_colorTransformId = -1;
		m_matrixIdChanged = true;
		m_colorTransformIdChanged = true;
		m_matrix = new Matrix(0, 0, 0, 0, 0, 0);
		m_colorTransform = new ColorTransform(0, 0, 0, 0);
		m_execCount = 0;
		m_updated = false;
	}
Exemplo n.º 5
0
 public Object(LWF lwf, Movie parent, Type type, int objId)
 {
     m_lwf                     = lwf;
     m_parent                  = parent;
     m_type                    = type;
     m_objectId                = objId;
     m_matrixId                = -1;
     m_colorTransformId        = -1;
     m_matrixIdChanged         = true;
     m_colorTransformIdChanged = true;
     m_matrix                  = new Matrix(0, 0, 0, 0, 0, 0);
     m_colorTransform          = new ColorTransform(0, 0, 0, 0);
     m_execCount               = 0;
     m_updated                 = false;
 }
Exemplo n.º 6
0
        public IObject(LWF lwf,
			Movie parent, Type type, int objId, int instId)
            : base(lwf, parent, type, objId)
        {
            m_prevInstance = null;
            m_nextInstance = null;
            m_linkInstance = null;

            m_instanceId =
            (instId >= lwf.data.instanceNames.Length) ? -1 : (int)instId;

            if (m_instanceId >= 0) {
            int stringId = lwf.GetInstanceNameStringId(m_instanceId);
            m_name = stringId == -1 ? null : lwf.data.strings[stringId];

            IObject head = m_lwf.GetInstance(m_instanceId);
            if (head != null)
                head.m_prevInstance = this;
            m_nextInstance = head;
            m_lwf.SetInstance(m_instanceId, this);
            }
        }