-updated README.md
-fixed shaders for GL2 -added Entity selection tool -throw out tools from "Demo" window to "Tools" window -change ComboBox to Tabs for Tools -Added more verbose tips -Improved and fixed BrickBreaker collisions -fixed simple DUB issue
This commit is contained in:
parent
1acd0df0ef
commit
56f870bac6
21 changed files with 332 additions and 133 deletions
|
|
@ -102,7 +102,7 @@ static struct CPosition
|
|||
|
||||
static struct TestComp
|
||||
{
|
||||
mixin ECS.Component; //__gshared ushort component_id;
|
||||
mixin ECS.Component; //__gshared becsID!ushort;
|
||||
int a = 1;
|
||||
ulong b = 2;
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ static struct TestComp
|
|||
|
||||
static struct TestComp2
|
||||
{
|
||||
mixin ECS.Component; //__gshared ushort component_id;
|
||||
mixin ECS.Component; //__gshared becsID!ushort;
|
||||
int b = 3;
|
||||
int a = 4;
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ static struct TestComp2
|
|||
|
||||
static struct TestComp3
|
||||
{
|
||||
mixin ECS.Component; //__gshared ushort component_id;
|
||||
mixin ECS.Component; //__gshared becsID!ushort;
|
||||
uint gg = 5; //good game
|
||||
uint bg = 6; //bad game
|
||||
|
||||
|
|
@ -153,7 +153,7 @@ static struct TestComp3
|
|||
|
||||
static struct TestComp4
|
||||
{
|
||||
mixin ECS.Component; //__gshared ushort component_id;
|
||||
mixin ECS.Component; //__gshared becsID!ushort;
|
||||
uint gg = 7; //good game
|
||||
uint bg = 8; //bad game
|
||||
ulong a = 9;
|
||||
|
|
@ -174,7 +174,7 @@ static struct TestComp4
|
|||
|
||||
static struct TestComp5
|
||||
{
|
||||
mixin ECS.Component; //__gshared ushort component_id;
|
||||
mixin ECS.Component; //__gshared becsID!ushort;
|
||||
uint gg = 7; //good game
|
||||
uint bg = 8; //bad game
|
||||
ulong a = 9;
|
||||
|
|
@ -735,12 +735,12 @@ else:
|
|||
printf("Systems register: %f usecs\n", cast(float)(Time.getUSecTime() - time));
|
||||
time = Time.getUSecTime();
|
||||
|
||||
//ushort[3] ids = [TestComp2.component_id, TestComp.component_id, TestComp4.component_id];
|
||||
ushort[2] ids = [TestComp2.component_id, TestComp.component_id];
|
||||
//ushort[3] ids = [becsID!TestComp2, becsID!TestComp, becsID!TestComp4];
|
||||
ushort[2] ids = [becsID!TestComp2, becsID!TestComp];
|
||||
EntityTemplate* tmpl = gEM.allocateTemplate(ids);
|
||||
|
||||
//ushort[3] ids2 = [TestComp3.component_id, TestComp.component_id, TestComp4.component_id];
|
||||
ushort[2] ids2 = [TestComp3.component_id, TestComp.component_id];
|
||||
//ushort[3] ids2 = [becsID!TestComp3, becsID!TestComp, becsID!TestComp4];
|
||||
ushort[2] ids2 = [becsID!TestComp3, becsID!TestComp];
|
||||
EntityTemplate* tmpl2 = gEM.allocateTemplate(ids2);
|
||||
////writeln(tmpl.info.components[]);
|
||||
//*cast(EntityID*) tmpl.entity_data.ptr = EntityID(1, 1);
|
||||
|
|
@ -751,7 +751,7 @@ else:
|
|||
|
||||
|
||||
time = Time.getUSecTime();
|
||||
ushort[1] empty_ids = [CPosition.component_id];
|
||||
ushort[1] empty_ids = [becsID!CPosition];
|
||||
EntityTemplate* tmpl_empty = gEM.allocateTemplate(empty_ids);
|
||||
|
||||
gEM.commit();
|
||||
|
|
@ -1003,7 +1003,7 @@ else:
|
|||
|
||||
gEM.commit();
|
||||
|
||||
System* sys = EntityManager.instance.getSystem(TestSystem2.system_id);
|
||||
System* sys = EntityManager.instance.getSystem(becsID!TestSystem2);
|
||||
|
||||
ExternalUpdateCallTest external_update_test;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue