Move ECS to Bubel module
This commit is contained in:
parent
a7a63f6a20
commit
5411e97cb1
46 changed files with 163 additions and 154 deletions
4
demos/external/sources/mmutils/thread_pool.d
vendored
4
demos/external/sources/mmutils/thread_pool.d
vendored
|
|
@ -1,6 +1,6 @@
|
|||
module mmutils.thread_pool;
|
||||
|
||||
import ecs.atomic;
|
||||
import bubel.ecs.atomic;
|
||||
|
||||
//import core.stdc.stdio;
|
||||
//import core.stdc.stdlib : free, malloc, realloc;
|
||||
|
|
@ -32,7 +32,7 @@ else
|
|||
|
||||
version (D_BetterC)
|
||||
{
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
extern (C) __gshared int _d_eh_personality(int, int, size_t, void*, void*)
|
||||
{
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ import cimgui.cimgui;
|
|||
|
||||
import game_core.job_updater;
|
||||
|
||||
import ecs.manager;
|
||||
import ecs.core;
|
||||
import ecs.std;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.renderer;
|
||||
import ecs_utils.imgui_bind;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import ecs.vector;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
import bubel.ecs.vector;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import bindbc.sdl;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
import ecs.entity;
|
||||
import ecs.manager;
|
||||
import ecs.std;
|
||||
import bubel.ecs.attributes;
|
||||
import bubel.ecs.core;
|
||||
import bubel.ecs.entity;
|
||||
import bubel.ecs.manager;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.texture;
|
||||
import ecs_utils.math.vector;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
module game_core.job_updater;
|
||||
|
||||
import ecs.std;
|
||||
import ecs.vector;
|
||||
import ecs.atomic;
|
||||
import bubel.ecs.std;
|
||||
import bubel.ecs.vector;
|
||||
import bubel.ecs.atomic;
|
||||
|
||||
import ecs_utils.utils;
|
||||
|
||||
//import core.time;
|
||||
import ecs.manager;
|
||||
import bubel.ecs.manager;
|
||||
import mmutils.thread_pool;
|
||||
|
||||
version(LDC)
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ import app;
|
|||
|
||||
import cimgui.cimgui;
|
||||
|
||||
import ecs.std;
|
||||
import ecs.system;
|
||||
import ecs.vector;
|
||||
import ecs.entity;
|
||||
import bubel.ecs.std;
|
||||
import bubel.ecs.system;
|
||||
import bubel.ecs.vector;
|
||||
import bubel.ecs.entity;
|
||||
|
||||
import gui.system;
|
||||
import gui.template_;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module gui.system;
|
||||
|
||||
import ecs.system;
|
||||
import bubel.ecs.system;
|
||||
|
||||
struct SystemGUI
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module gui.template_;
|
||||
|
||||
import ecs.entity;
|
||||
import bubel.ecs.entity;
|
||||
|
||||
struct TemplateGUI
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module ecs_utils.gfx.buffer;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import glad.gl.gl;
|
||||
import glad.gl.gles2;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module ecs_utils.gfx.config;
|
|||
|
||||
import bindbc.sdl;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.material;
|
||||
import ecs_utils.gfx.mesh;
|
||||
|
|
@ -18,7 +18,7 @@ enum LayerType
|
|||
sorted
|
||||
}
|
||||
|
||||
import ecs.vector;
|
||||
import bubel.ecs.vector;
|
||||
|
||||
static struct GfxConfig
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module ecs_utils.gfx.material;
|
|||
|
||||
import bindbc.sdl;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.shader;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module ecs_utils.gfx.mesh;
|
|||
|
||||
import bindbc.sdl;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.gfx.buffer;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module ecs_utils.gfx.renderer;
|
|||
|
||||
import bindbc.sdl;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
//import ecs_utils.core : Backend;
|
||||
import ecs_utils.gfx.buffer;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module ecs_utils.gfx.shader;
|
|||
|
||||
import bindbc.sdl;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import glad.gl.gl;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module ecs_utils.gfx.texture;
|
|||
|
||||
import bindbc.sdl;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
import ecs_utils.math.vector;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module ecs_utils.gfx.vertex;
|
||||
|
||||
import ecs.std;
|
||||
import bubel.ecs.std;
|
||||
|
||||
struct Vertex
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue