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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user