-fixed crash on getComponent when component doesn't exist
-fixed Components ids sorting -added deferred object removing -new EntityManager functions: begin(), end().
This commit is contained in:
parent
a066a97f01
commit
8fdb56e840
3 changed files with 43 additions and 18 deletions
|
|
@ -1,29 +1,27 @@
|
|||
module tests.tests;
|
||||
|
||||
import ecs.manager;
|
||||
import ecs.events;
|
||||
import ecs.system;
|
||||
import ecs.entity;
|
||||
import ecs.events;
|
||||
import ecs.manager;
|
||||
import ecs.system;
|
||||
|
||||
import core.time;
|
||||
import std.stdio;
|
||||
|
||||
int main()
|
||||
{
|
||||
alias SerializeVector = ubyte[];
|
||||
|
||||
struct TestComp
|
||||
{
|
||||
__gshared ushort component_id;
|
||||
int a;
|
||||
ulong b;
|
||||
|
||||
static void serializeComponent(ref TestComp comp, SerializeVector output)
|
||||
static void serializeComponent(SerializeVector output)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static void deserializeComponent(ref TestComp comp, ubyte[] data)
|
||||
static void deserializeComponent(ubyte[] data)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -52,12 +50,12 @@ int main()
|
|||
uint gg; //good game
|
||||
uint bg; //bad game
|
||||
|
||||
static void serializeComponent(ref TestComp comp, SerializeVector output)
|
||||
void serializeComponent(SerializeVector output)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static void deserializeComponent(ref TestComp comp, ubyte[] data)
|
||||
void deserializeComponent(ubyte[] data)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue