create generic module type that is also instantiated
This commit is contained in:
@@ -127,6 +127,11 @@ namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||
return new DoorModule(space, doorModuleDescription);
|
||||
}
|
||||
|
||||
if (description.HasType(ModuleType.Generic))
|
||||
{
|
||||
return new Module(space, description);
|
||||
}
|
||||
|
||||
throw new WrongTypeException("There is no module type fitting this description.");
|
||||
}
|
||||
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
{
|
||||
DoorEntrance, DoorExit, // door types
|
||||
Puzzle,
|
||||
Generic, // for supporting modules that have no role themselves
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user