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();