-change ecsID to becsID
-change component_id/system_id to becsID in demos
This commit is contained in:
parent
a926b79223
commit
a6d92cb21b
17 changed files with 296 additions and 272 deletions
|
|
@ -903,26 +903,26 @@ void snakeStart()
|
|||
//launcher.gui_manager.addComponent(CAnimation(),"Movement");
|
||||
launcher.gui_manager.addComponent(CILocation(),"Int Location");
|
||||
|
||||
launcher.gui_manager.addSystem(MoveSystem.system_id,"Move System");
|
||||
launcher.gui_manager.addSystem(InputSystem.system_id,"Input System");
|
||||
launcher.gui_manager.addSystem(FixSnakeDirectionSystem.system_id,"Fix Direction System");
|
||||
launcher.gui_manager.addSystem(AnimationRenderSystem.system_id,"Animation Render System");
|
||||
launcher.gui_manager.addSystem(AnimationSystem.system_id,"Animation System");
|
||||
launcher.gui_manager.addSystem(ParticleSystem.system_id,"Particle Life System");
|
||||
launcher.gui_manager.addSystem(ParticleMovementSystem.system_id,"Particle Movement System");
|
||||
launcher.gui_manager.addSystem(DrawAppleSystem.system_id,"Draw Apple System");
|
||||
launcher.gui_manager.addSystem(DrawSnakeSystem.system_id,"Draw Snake System");
|
||||
launcher.gui_manager.addSystem(becsID!MoveSystem,"Move System");
|
||||
launcher.gui_manager.addSystem(becsID!InputSystem,"Input System");
|
||||
launcher.gui_manager.addSystem(becsID!FixSnakeDirectionSystem,"Fix Direction System");
|
||||
launcher.gui_manager.addSystem(becsID!AnimationRenderSystem,"Animation Render System");
|
||||
launcher.gui_manager.addSystem(becsID!AnimationSystem,"Animation System");
|
||||
launcher.gui_manager.addSystem(becsID!ParticleSystem,"Particle Life System");
|
||||
launcher.gui_manager.addSystem(becsID!ParticleMovementSystem,"Particle Movement System");
|
||||
launcher.gui_manager.addSystem(becsID!DrawAppleSystem,"Draw Apple System");
|
||||
launcher.gui_manager.addSystem(becsID!DrawSnakeSystem,"Draw Snake System");
|
||||
|
||||
snake.snake_destroy_particle_frames = Mallocator.makeArray([vec4(64,144,16,16)*px,vec4(80,144,16,16)*px,vec4(96,144,16,16)*px,vec4(112,144,16,16)*px].staticArray);
|
||||
|
||||
{
|
||||
ushort[5] components = [CILocation.component_id, CSnake.component_id, CMovement.component_id, CInput.component_id, CLocation.component_id];
|
||||
ushort[5] components = [becsID!CILocation, becsID!CSnake, becsID!CMovement, becsID!CInput, becsID!CLocation];
|
||||
snake.snake_tmpl = launcher.manager.allocateTemplate(components);
|
||||
launcher.manager.addEntity(snake.snake_tmpl,[CILocation(ivec2(2,2)).ref_].staticArray);
|
||||
}
|
||||
|
||||
{
|
||||
snake.snake_destroy_particle = launcher.manager.allocateTemplate([CLocation.component_id, CParticle.component_id, CParticleVector.component_id, CAnimation.component_id, CLocation.component_id].staticArray);
|
||||
snake.snake_destroy_particle = launcher.manager.allocateTemplate([becsID!CLocation, becsID!CParticle, becsID!CParticleVector, becsID!CAnimation, becsID!CLocation].staticArray);
|
||||
CAnimation* canim = snake.snake_destroy_particle.getComponent!CAnimation;
|
||||
canim.frames = snake.snake_destroy_particle_frames;
|
||||
CParticle* particle = snake.snake_destroy_particle.getComponent!CParticle;
|
||||
|
|
@ -930,7 +930,7 @@ void snakeStart()
|
|||
}
|
||||
|
||||
{
|
||||
ushort[3] components = [CILocation.component_id, CApple.component_id, CLocation.component_id];
|
||||
ushort[3] components = [becsID!CILocation, becsID!CApple, becsID!CLocation];
|
||||
snake.apple_tmpl = launcher.manager.allocateTemplate(components);
|
||||
snake.addApple();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue