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

  1. // Amplify Shader Editor - Visual Shader Editing Tool
  2. // Copyright (c) Amplify Creations, Lda <info@amplify.pt>
  3. using System.Collections.Generic;
  4. namespace AmplifyShaderEditor
  5. {
  6. public class ActionSequence
  7. {
  8. private string m_name;
  9. private List<ActionData> m_sequence;
  10. public ActionSequence( string name )
  11. {
  12. m_name = name;
  13. m_sequence = new List<ActionData>();
  14. }
  15. public void AddToSequence( ActionData actionData )
  16. {
  17. m_sequence.Add( actionData );
  18. }
  19. public void Execute()
  20. {
  21. for ( int i = 0; i < m_sequence.Count; i++ )
  22. {
  23. m_sequence[ i ].ExecuteForward();
  24. }
  25. }
  26. public void Destroy()
  27. {
  28. m_sequence.Clear();
  29. m_sequence = null;
  30. }
  31. public string Name { get { return m_name; } }
  32. }
  33. }