LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DunGen/TileConnectionRule.cs
2023-12-22 18:30:10 -05:00

24 lines
498 B
C#

namespace DunGen
{
public sealed class TileConnectionRule
{
public enum ConnectionResult
{
Allow = 0,
Deny = 1,
Passthrough = 2
}
public delegate ConnectionResult CanTilesConnectDelegate(Tile tileA, Tile tileB, Doorway doorwayA, Doorway doorwayB);
public int Priority;
public CanTilesConnectDelegate Delegate;
public TileConnectionRule(CanTilesConnectDelegate connectionDelegate, int priority = 0)
{
Delegate = connectionDelegate;
Priority = priority;
}
}
}