RandomProp.cs 732 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace DunGen
  4. {
  5. /// <summary>
  6. /// Base class for all random props
  7. /// </summary>
  8. public abstract class RandomProp : MonoBehaviour
  9. {
  10. /// <summary>
  11. /// Process the random prop. DunGen will call this method on any GameObject in the dungeon
  12. /// </summary>
  13. /// <param name="randomStream">Seeded random number generator</param>
  14. /// <param name="tile">Owning tile</param>
  15. /// <param name="spawnedObjects">An output list of objects that have been spawned in this function, to be passed back to DunGen for further processing</param>
  16. public abstract void Process(RandomStream randomStream, Tile tile, ref List<GameObject> spawnedObjects);
  17. }
  18. }