PortalCullingAdapter.cs 516 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Text;
  6. using UnityEngine;
  7. namespace DunGen.Adapters
  8. {
  9. public abstract class CullingAdapter : BaseAdapter
  10. {
  11. public CullingAdapter()
  12. {
  13. Priority = -1;
  14. }
  15. protected abstract void PrepareForCulling(DungeonGenerator generator, Dungeon dungeon);
  16. protected override void Run(DungeonGenerator generator)
  17. {
  18. PrepareForCulling(generator, generator.CurrentDungeon);
  19. }
  20. }
  21. }