diff options
author | David Walter Seikel | 2012-02-23 01:31:05 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-23 01:31:05 +1000 |
commit | ad7c55c1467fa6a205ecc29bc00c05c5d6b20ee5 (patch) | |
tree | 4ace8aeb280e76034d4482af2f33e361dbf15e65 /LuaSL/src/LuaSL_test.c | |
parent | Jiggle some log messages a little. (diff) | |
download | SledjHamr-ad7c55c1467fa6a205ecc29bc00c05c5d6b20ee5.zip SledjHamr-ad7c55c1467fa6a205ecc29bc00c05c5d6b20ee5.tar.gz SledjHamr-ad7c55c1467fa6a205ecc29bc00c05c5d6b20ee5.tar.bz2 SledjHamr-ad7c55c1467fa6a205ecc29bc00c05c5d6b20ee5.tar.xz |
Actually test callAndWait(), then fix it.
Diffstat (limited to 'LuaSL/src/LuaSL_test.c')
-rw-r--r-- | LuaSL/src/LuaSL_test.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_test.c b/LuaSL/src/LuaSL_test.c index 0f07704..55196cb 100644 --- a/LuaSL/src/LuaSL_test.c +++ b/LuaSL/src/LuaSL_test.c | |||
@@ -224,7 +224,18 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Server_D | |||
224 | sendForth(game, SID, "run()"); | 224 | sendForth(game, SID, "run()"); |
225 | } | 225 | } |
226 | else | 226 | else |
227 | PI("Command %s from script %s", command, SID); | 227 | { |
228 | if (0 == strcmp(command, "llGetKey()")) // Send back a random UUID for testing. | ||
229 | sendForth(game, SID, "\"%08lx-%04lx-%04lx-%04lx-%012lx\"", random(), random() % 0xFFFF, random() % 0xFFFF, random() % 0xFFFF, random()); | ||
230 | else if (0 == strcmp(command, "llGetPos()")) // Send back a fixed position for testing. | ||
231 | sendForth(game, SID, "{x=128.0, y=128.0, z=128.0}"); | ||
232 | else if (0 == strcmp(command, "llGetRot()")) // Send back a fixed rotation for testing. | ||
233 | sendForth(game, SID, "{x=0.0, y=0.0, z=0.0, s=1.0}"); | ||
234 | else if (0 == strcmp(command, "llGetObjectDesc()")) // Send back a blank description for testing. | ||
235 | sendForth(game, SID, "\"\""); | ||
236 | else | ||
237 | PI("Command %s from script %s", command, SID); | ||
238 | } | ||
228 | } | 239 | } |
229 | 240 | ||
230 | // Get the next blob to check it. | 241 | // Get the next blob to check it. |