From ae27608bff3630dd6d934dcbc3d5896ad452927d Mon Sep 17 00:00:00 2001 From: Ubpa Date: Sat, 23 Jan 2021 16:12:44 +0800 Subject: [PATCH] update README --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1534387..3d7d16c 100644 --- a/README.md +++ b/README.md @@ -42,21 +42,21 @@ struct Position { float val; }; struct Velocity { float val; }; struct MoverSystem { - static void OnUpdate(Schedule& schedule) { - schedule.RegisterEntityJob( - [](const Velocity* v, Position* p) { - p->val += v->val; - }, - "Mover" - ); - } + static void OnUpdate(Schedule& schedule) { + schedule.RegisterEntityJob( + [](const Velocity* v, Position* p) { + p->val += v->val; + }, + "Mover" + ); + } }; int main() { - World w; - w.systemMngr.RegisterAndActivate(); - w.entityMngr.Create(); - w.Update(); + World w; + w.systemMngr.RegisterAndActivate(); + w.entityMngr.Create(); + w.Update(); } ```