This component, added on an empty object in your level will handle the generation of a unique and randomized tilemap.
More...
|
| override void | Generate () |
| | Generates a new level.
|
|
| virtual void | Awake () |
| | On awake we generate our level if needed.
|
| virtual void | ResizeLevelManager () |
| | Resizes the level manager's bounds to match the new level.
|
| virtual void | PlaceEntryAndExit () |
| | Moves the spawn and exit to empty places.
|
| virtual void | SpawnPrefabs () |
| | Spawns the prefabs defined in the PrefabsToSpawn list.
|
| virtual void | HandleWallsShadow () |
| | Copies the contents of the Walls layer to the WallsShadows layer to get nice shadows automatically.
|
This component, added on an empty object in your level will handle the generation of a unique and randomized tilemap.
◆ Awake()
| virtual void MoreMountains.TopDownEngine.TilemapLevelGenerator.Awake |
( |
| ) |
|
|
protectedvirtual |
On awake we generate our level if needed.
◆ Generate()
| override void MoreMountains.TopDownEngine.TilemapLevelGenerator.Generate |
( |
| ) |
|
◆ HandleWallsShadow()
| virtual void MoreMountains.TopDownEngine.TilemapLevelGenerator.HandleWallsShadow |
( |
| ) |
|
|
protectedvirtual |
Copies the contents of the Walls layer to the WallsShadows layer to get nice shadows automatically.
◆ PlaceEntryAndExit()
| virtual void MoreMountains.TopDownEngine.TilemapLevelGenerator.PlaceEntryAndExit |
( |
| ) |
|
|
protectedvirtual |
Moves the spawn and exit to empty places.
◆ ResizeLevelManager()
| virtual void MoreMountains.TopDownEngine.TilemapLevelGenerator.ResizeLevelManager |
( |
| ) |
|
|
protectedvirtual |
Resizes the level manager's bounds to match the new level.
◆ SpawnPrefabs()
| virtual void MoreMountains.TopDownEngine.TilemapLevelGenerator.SpawnPrefabs |
( |
| ) |
|
|
protectedvirtual |
Spawns the prefabs defined in the PrefabsToSpawn list.
◆ _filledPositions
| List<Vector3> MoreMountains.TopDownEngine.TilemapLevelGenerator._filledPositions |
|
protected |
◆ _maxIterationsCount
| const int MoreMountains.TopDownEngine.TilemapLevelGenerator._maxIterationsCount = 100 |
|
staticprotected |
◆ Exit
| Transform MoreMountains.TopDownEngine.TilemapLevelGenerator.Exit |
◆ GenerateOnAwake
| bool MoreMountains.TopDownEngine.TilemapLevelGenerator.GenerateOnAwake = false |
Whether or not this level should be generated automatically on Awake.
◆ InitialSpawn
| Transform MoreMountains.TopDownEngine.TilemapLevelGenerator.InitialSpawn |
the object at which the player will spawn
◆ MinDistanceFromSpawnToExit
| float MoreMountains.TopDownEngine.TilemapLevelGenerator.MinDistanceFromSpawnToExit = 2f |
the minimum distance that should separate spawn and exit.
◆ ObstaclesTilemap
| Tilemap MoreMountains.TopDownEngine.TilemapLevelGenerator.ObstaclesTilemap |
the tilemap containing the walls
◆ PrefabsSpawnMinDistance
| float MoreMountains.TopDownEngine.TilemapLevelGenerator.PrefabsSpawnMinDistance = 2f |
the minimum distance from already spawned elements the prefabs should be spawned at
◆ PrefabsToSpawn
| List<SpawnData> MoreMountains.TopDownEngine.TilemapLevelGenerator.PrefabsToSpawn |
a list of prefabs to spawn and their quantity
◆ TargetGrid
| Grid MoreMountains.TopDownEngine.TilemapLevelGenerator.TargetGrid |
the Grid on which to work
◆ TargetLevelManager
| LevelManager MoreMountains.TopDownEngine.TilemapLevelGenerator.TargetLevelManager |
◆ WallsShadowTilemap
| MMTilemapShadow MoreMountains.TopDownEngine.TilemapLevelGenerator.WallsShadowTilemap |
the tilemap containing the walls' shadows
The documentation for this class was generated from the following file: