public DungeonGeneratorPostProcessStep(Action <DungeonGenerator> postProcessCallback, int priority, PostProcessPhase phase) { PostProcessCallback = postProcessCallback; Priority = priority; Phase = PostProcessPhase.AfterBuiltIn; }
/// <summary> /// Registers a post-process step with the generator which allows for a callback function to be invoked during the PostProcess step /// </summary> /// <param name="postProcessCallback">The callback to invoke</param> /// <param name="priority">The priority which determines the order in which post-process steps are invoked (highest to lowest). Priority > 0 will be applied BEFORE the built-in post-process steps, priority <= 0 will be applied AFTER</param> /// <param name="phase">Which phase to run the post-process step. Used to determine whether the step should run before or after DunGen's built-in post-processing</param> public void RegisterPostProcessStep(Action <DungeonGenerator> postProcessCallback, int priority = 0, PostProcessPhase phase = PostProcessPhase.AfterBuiltIn) { postProcessSteps.Add(new DungeonGeneratorPostProcessStep(postProcessCallback, priority, phase)); }