Better assertion infos and formatted code

This commit is contained in:
Mergul 2020-04-14 17:39:52 +02:00
parent 0670aed506
commit 14839b3765
6 changed files with 163 additions and 109 deletions

View file

@ -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;