Better assertion infos and formatted code
This commit is contained in:
parent
0670aed506
commit
14839b3765
6 changed files with 163 additions and 109 deletions
|
|
@ -425,19 +425,19 @@ struct EmptyEventSystem
|
|||
|
||||
void handleEvent(Entity* entity, TestEvent event)
|
||||
{
|
||||
if(!handled)
|
||||
if (!handled)
|
||||
{
|
||||
printf("EmptyEventSystem.handleEvent() called!\n");
|
||||
handled = true;
|
||||
}
|
||||
assert(0,"this shouldn't be called!");
|
||||
assert(0, "this shouldn't be called!");
|
||||
}
|
||||
}
|
||||
|
||||
struct EventSystem
|
||||
{
|
||||
mixin ECS.System;
|
||||
|
||||
|
||||
bool handled = false;
|
||||
|
||||
struct EntitiesData
|
||||
|
|
@ -448,7 +448,7 @@ struct EventSystem
|
|||
|
||||
void handleEvent(Entity* entity, TestEvent event)
|
||||
{
|
||||
if(!handled)
|
||||
if (!handled)
|
||||
{
|
||||
printf("EventSystem.handleEvent() called!\n");
|
||||
handled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue