LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DunGen/TileConnectionRule.cs

25 lines
498 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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;
}
}
}