generate simple room
This commit is contained in:
18
Assets/Escape Room Engine/Engine/Scripts/DoorModule.cs
Normal file
18
Assets/Escape Room Engine/Engine/Scripts/DoorModule.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Escape_Room_Engine.Engine.Scripts
|
||||
{
|
||||
public enum DoorType
|
||||
{
|
||||
Entrance = ModuleType.DoorEntrance, Exit = ModuleType.DoorExit
|
||||
}
|
||||
|
||||
public class DoorModule : Module
|
||||
{
|
||||
public bool IsEntrance => IsType((ModuleType)DoorType.Entrance);
|
||||
public bool IsExit => IsType((ModuleType)DoorType.Exit);
|
||||
|
||||
internal DoorModule(DoorType type)
|
||||
{
|
||||
_types.Add((ModuleType)type);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user