diff options
Diffstat (limited to 'server/src/luaquerymapper.cc')
-rw-r--r-- | server/src/luaquerymapper.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/src/luaquerymapper.cc b/server/src/luaquerymapper.cc index 5b66a35..acd6b26 100644 --- a/server/src/luaquerymapper.cc +++ b/server/src/luaquerymapper.cc @@ -170,11 +170,13 @@ int main() LUAQueryMapper mapper(e.result); - std::string luamap = "return right.sphere"; - printf("%s : %s\n", luamap.c_str(), mapper.map(luamap).c_str()); + std::string luamap = "return right.sphere, 0"; + Value value = mapper.map(luamap); + printf("%s : %s, %lu\n", luamap.c_str(), value.value.c_str(), value.timestamp); - luamap = "return math.sin(right.cyl) * 2"; - printf("%s : %s\n", luamap.c_str(), mapper.map(luamap).c_str()); + luamap = "return math.sin(right.cyl) * 2, 0"; + value = mapper.map(luamap); + printf("%s : %s, %lu\n", luamap.c_str(), value.value.c_str(), value.timestamp); return 0; } |