-added assert message
This commit is contained in:
parent
7e7658af3b
commit
dbdbdb35e1
1 changed files with 1 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ class EntityManager
|
|||
else
|
||||
{
|
||||
enum long indexInEntitiesData=getIndexOfTypeInEntitiesData!(Sys.EntitiesData, EventFieldType);
|
||||
static assert(indexInEntitiesData != -1);// Type present in EventInput has to be present in EntitiesData
|
||||
static assert(indexInEntitiesData != -1, "Component present in EventInput has to be present in EntitiesData!");// Type present in EventInput has to be present in EntitiesData
|
||||
|
||||
enum bool isOptional = hasUDA!(Sys.EntitiesData.tupleof[indexInEntitiesData], "optional");
|
||||
static if(isOptional)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue