From ad5a63db312d0029109e6ca0051feaa516419ad2 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 1 Oct 2019 08:37:05 -0400 Subject: cleaned up lua function bindings --- src/engine.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/engine.cpp') diff --git a/src/engine.cpp b/src/engine.cpp index b1d9a56..81e0272 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -59,13 +59,11 @@ int Engine::init(void) // Load game script and entity data auto* script = systems.system().get(); script->addToGameNamespace("loadFont", - [this](std::string name, std::string file, int size) { - systems.system().get()->loadFont(name, file, size); - }); + bindInstance(&TextSystem::loadFont, + systems.system().get())); script->addToGameNamespace("puts", - [this](std::string name, float x, float y, std::string text) { - systems.system().get()->put(name, x, y, text); - }); + bindInstance(&TextSystem::put, + systems.system().get())); script->init(); -- cgit v1.2.3