Web assembly #6
2 changed files with 8 additions and 8 deletions
|
|
@ -385,7 +385,7 @@ export struct EntityManager
|
||||||
|
|
||||||
static if (__traits(hasMember, Sys, "handleEvent"))
|
static if (__traits(hasMember, Sys, "handleEvent"))
|
||||||
{
|
{
|
||||||
//setEventCallers!(Sys)(system);
|
setEventCallers!(Sys)(system);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -140,19 +140,19 @@ struct ChangeTestSystem
|
||||||
void onCreate()
|
void onCreate()
|
||||||
{
|
{
|
||||||
//writeln("On Change Test System create.");
|
//writeln("On Change Test System create.");
|
||||||
printf("On Change Test System create.");
|
printf("On Change Test System create.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void onCreate(int i)
|
void onCreate(int i)
|
||||||
{
|
{
|
||||||
//writeln("On Change Test System create.");
|
//writeln("On Change Test System create.");
|
||||||
printf("On Change Test System create.");
|
printf("On Change Test System create.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void onDestroy()
|
void onDestroy()
|
||||||
{
|
{
|
||||||
//writeln("On Change Test System destroy.");
|
//writeln("On Change Test System destroy.");
|
||||||
printf("On Change Test System destroy.");
|
printf("On Change Test System destroy.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void onAddEntity(EntitiesData data)
|
void onAddEntity(EntitiesData data)
|
||||||
|
|
@ -215,13 +215,13 @@ struct TestSystem
|
||||||
void onCreate()
|
void onCreate()
|
||||||
{
|
{
|
||||||
//writeln("On Test System create.");
|
//writeln("On Test System create.");
|
||||||
printf("On Change Test System create.");
|
printf("On Change Test System create.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void onDestroy()
|
void onDestroy()
|
||||||
{
|
{
|
||||||
//writeln("On Test System destroy.");
|
//writeln("On Test System destroy.");
|
||||||
printf("On Change Test System destroy.");
|
printf("On Change Test System destroy.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void onAddEntity(EntitiesData data)
|
void onAddEntity(EntitiesData data)
|
||||||
|
|
@ -421,7 +421,7 @@ struct TestSystem2
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
|
|
||||||
//writeln("TestSystem2 enabled");
|
//writeln("TestSystem2 enabled");
|
||||||
printf("TestSystem2 enabled");
|
printf("TestSystem2 enabled\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void onDisable()
|
void onDisable()
|
||||||
|
|
@ -429,7 +429,7 @@ struct TestSystem2
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
|
|
||||||
//writeln("TestSystem2 disabled");
|
//writeln("TestSystem2 disabled");
|
||||||
printf("TestSystem2 disabled");
|
printf("TestSystem2 disabled\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void initialize(ref Entity entity, ref TestComp comp)
|
void initialize(ref Entity entity, ref TestComp comp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue