Block.cs 565 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. namespace Ryujinx.HLE.HOS.Tamper.Operations
  3. {
  4. class Block : IOperation
  5. {
  6. private IEnumerable<IOperation> _operations;
  7. public Block(IEnumerable<IOperation> operations)
  8. {
  9. _operations = operations;
  10. }
  11. public Block(params IOperation[] operations)
  12. {
  13. _operations = operations;
  14. }
  15. public void Execute()
  16. {
  17. foreach (IOperation op in _operations)
  18. {
  19. op.Execute();
  20. }
  21. }
  22. }
  23. }