You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
737 B

// Amplify Shader Editor - Visual Shader Editing Tool
// Copyright (c) Amplify Creations, Lda <info@amplify.pt>
using System.Collections.Generic;
namespace AmplifyShaderEditor
{
public class ActionSequence
{
private string m_name;
private List<ActionData> m_sequence;
public ActionSequence( string name )
{
m_name = name;
m_sequence = new List<ActionData>();
}
public void AddToSequence( ActionData actionData )
{
m_sequence.Add( actionData );
}
public void Execute()
{
for ( int i = 0; i < m_sequence.Count; i++ )
{
m_sequence[ i ].ExecuteForward();
}
}
public void Destroy()
{
m_sequence.Clear();
m_sequence = null;
}
public string Name { get { return m_name; } }
}
}