Ejemplo n.º 1
0
        public WorkflowStepData Create(IStepItem param)
        {
            WorkflowStepData data = new WorkflowStepData();

            data.id                 = param.identifiable.identifier.ToString("N");
            data.name               = param.name;
            data.automatic          = param.automatic;
            data.triggerId          = param.triggerId;
            data.durations          = new [] { param.duration.x, param.duration.y, param.duration.z };
            data.repetitions        = param.repetitions;
            data.currentRepetitions = param.repetitions;

            byte levels = 0;

            data.items = new SceneItemData[param.sceneItems.Count];
            for (int i = 0; i < param.sceneItems.Count; ++i)
            {
                SceneItemData itemData = m_Factory.Create(param.sceneItems[i]);
                data.items[i] = itemData;
                levels       |= itemData.levels;
            }
            data.levels = levels;

            return(data);
        }
        public void DuplicateTarget()
        {
            SceneItemData data = m_DataFactory.Create(m_ParentHandle.target);

            m_ItemFactory.Create(data);
        }