diff --git a/BeefProj.toml b/BeefProj.toml index 8797221..6275a8e 100644 --- a/BeefProj.toml +++ b/BeefProj.toml @@ -1,5 +1,5 @@ FileVersion = 1 -Dependencies = {corlib = "*", raylib-beef = "*", Theater-ECS = "*"} +Dependencies = {corlib = "*", Theater-ECS = "*", raylib-beef = "*"} [Project] Name = "Theater-ECS-Example" diff --git a/BeefSpace.toml b/BeefSpace.toml index 8e1027e..fc45d85 100644 --- a/BeefSpace.toml +++ b/BeefSpace.toml @@ -1,5 +1,5 @@ FileVersion = 1 -Projects = {Theater-ECS-Example = {Path = "."}, raylib-beef = {Path = "../../Program Files/BeefLang/BeefLibs/raylib-beef/raylib-beef"}, Theater-ECS = {Path = "../Theater-ECS"}} +Projects = {Theater-ECS-Example = {Path = "."}, Theater-ECS = {Path = "../Theater-ECS"}, raylib-beef = {Path = "../raylib-beef/raylib-beef"}} [Workspace] StartupProject = "Theater-ECS-Example" diff --git a/src/MovementSystem.bf b/src/MovementSystem.bf index e255628..209bda7 100644 --- a/src/MovementSystem.bf +++ b/src/MovementSystem.bf @@ -8,9 +8,11 @@ class MovementSystem : System { RegisterComponent(ecs); RegisterComponent(ecs); + + Run_2 = => RunFunction; } - public override void Run(void* pos, void* vel) + public static void RunFunction(void* pos, void* vel) { var mPos = ((Position*)pos); diff --git a/src/RendererSystem.bf b/src/RendererSystem.bf index 2dac4e4..9ef1818 100644 --- a/src/RendererSystem.bf +++ b/src/RendererSystem.bf @@ -10,9 +10,11 @@ class RendererSystem : System { RegisterComponent(ecs); RegisterComponent(ecs); + + Run_2 = => RunFunction; } - public override void Run(void* pos, void* sprite) + public static void RunFunction(void* pos, void* sprite) { var toDraw = (Position*)pos; Raylib.DrawTexture(((Sprite*)sprite).sprite, (.)toDraw.x, (.)toDraw.y, Raylib.WHITE);