Selection Rule

One way to select the node in a theme graph is by setting the probablity. If you want more control, you can write you own selection logic in a script

Example #1#

Different tiles for rooms and corridors

Example #2#

In this example the towers are too crowded and close to each other.

A selector rule is created to select alternate cells

using UnityEngine;
using System.Collections;
using DungeonArchitect;
public class AlternateSelectionRule : SelectorRule {
public override bool CanSelect(PropSocket socket, Matrix4x4 propTransform, DungeonModel model, System.Random random) {
return (socket.gridPosition.x + socket.gridPosition.z) % 2 == 0;