DungeonGeneratorPostProcessStep.cs 805 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. namespace DunGen
  3. {
  4. /// <summary>
  5. /// The phase in which to invoke a post-processing step
  6. /// </summary>
  7. public enum PostProcessPhase
  8. {
  9. /// <summary>
  10. /// Invoked before DunGen's built-in post-processing steps
  11. /// </summary>
  12. BeforeBuiltIn,
  13. /// <summary>
  14. /// Invoked after DunGen's built-in post-processing steps
  15. /// </summary>
  16. AfterBuiltIn,
  17. }
  18. public struct DungeonGeneratorPostProcessStep
  19. {
  20. public Action<DungeonGenerator> PostProcessCallback;
  21. public PostProcessPhase Phase;
  22. public int Priority;
  23. public DungeonGeneratorPostProcessStep(Action<DungeonGenerator> postProcessCallback, int priority, PostProcessPhase phase)
  24. {
  25. PostProcessCallback = postProcessCallback;
  26. Priority = priority;
  27. Phase = phase;
  28. }
  29. }
  30. }