From 3d379c41c6ede846b1c96611f8d13748d5481b0a Mon Sep 17 00:00:00 2001 From: Ubpa <641614112@qq.com> Date: Thu, 30 Jul 2020 17:59:20 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e741e6..fb0daf8 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,13 @@ ```c++ #include +using namespace Ubpa::UECS; + struct Position { float val; }; struct Velocity { float val; }; struct MoverSystem { - static void OnUpdate(Ubpa::Schedule& schedule) { + static void OnUpdate(Schedule& schedule) { schedule.Request( [](const Velocity* v, Position* p) { p->val += v->val; @@ -35,7 +37,7 @@ struct MoverSystem { }; int main() { - Ubpa::World w; + World w; w.systemMngr.Register(); w.entityMngr.CreateEntity(); w.Update();