aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-02-05 22:53:50 +1000
committerDavid Walter Seikel2016-02-05 22:53:50 +1000
commit1b237f704f7d78dcb975a288652956af752a8be6 (patch)
treeee4edd2f4f873dfb5c307ccd75a7a82e77188b38
parentConvert either to LSL or to Lua style values as needed. (diff)
downloadSledjHamr-1b237f704f7d78dcb975a288652956af752a8be6.zip
SledjHamr-1b237f704f7d78dcb975a288652956af752a8be6.tar.gz
SledjHamr-1b237f704f7d78dcb975a288652956af752a8be6.tar.bz2
SledjHamr-1b237f704f7d78dcb975a288652956af752a8be6.tar.xz
TODO about what to do with link messages.
They are between links, not between scripts.
-rw-r--r--TODO4
-rw-r--r--src/love/love.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index d43df86..1633dc1 100644
--- a/TODO
+++ b/TODO
@@ -171,7 +171,7 @@ Communication
171 events.say(key source, vector location, integer timestamp, text message, string filter, ...) 171 events.say(key source, vector location, integer timestamp, text message, string filter, ...)
172 172
173 Link messages include the number of the link (to or from, depending on which end you are at), a number, a string, and a key. 173 Link messages include the number of the link (to or from, depending on which end you are at), a number, a string, and a key.
174 These are entirely internal to LuaSL though. 174 These are entirely internal to LuaSL though, except they bounce up to love to get to other prims in the link set?
175 175
176purkle registers a listener, with no filter. 176purkle registers a listener, with no filter.
177llDialog's client side sends a say() to love. 177llDialog's client side sends a say() to love.
@@ -204,7 +204,7 @@ More generic event system?
204 REGISTER event Script has to register for these events with love. Can have filter. love loops through all regisitered "scripts", applies filters, sends events. 204 REGISTER event Script has to register for these events with love. Can have filter. love loops through all regisitered "scripts", applies filters, sends events.
205 REQUEST event Script has to request an event from love. Can have a filter. Love sends event straight back to the script. Once. 205 REQUEST event Script has to request an event from love. Can have a filter. Love sends event straight back to the script. Once.
206 This covers the "wait for return value" case as well. events.return()? 206 This covers the "wait for return value" case as well. events.return()?
207 touch_start goes from extantz to LuaSL, via love. Most of the rest go from love to LuaSL I think. link_message, state_entry, state_exit are internal to LuaSL, timer should be. 207 touch_start goes from extantz to LuaSL, via love. Most of the rest go from love to LuaSL I think. state_entry, state_exit are internal to LuaSL, timer should be.
208 All manner of arguments sent to events. 208 All manner of arguments sent to events.
209 Some of them include the llDetected*() functions for getting more info. 209 Some of them include the llDetected*() functions for getting more info.
210 So we need some way of sending arbitrary data, as well as a bunch of fixed data, over the network when we send events. 210 So we need some way of sending arbitrary data, as well as a bunch of fixed data, over the network when we send events.
diff --git a/src/love/love.c b/src/love/love.c
index 5549f54..b686475 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -360,6 +360,7 @@ static boolean LuaSLParser(void *data, Connection *conn, char *SID, char *comman
360 Eina_Iterator *scripts; 360 Eina_Iterator *scripts;
361 LoveScript *me; 361 LoveScript *me;
362 // TODO - For now, just send it to everyone. 362 // TODO - For now, just send it to everyone.
363 // Later, figure out which prims in the linkset can get this message, and only send it to scripts in those prims.
363 scripts = eina_hash_iterator_data_new(ourGlobals->scripts); 364 scripts = eina_hash_iterator_data_new(ourGlobals->scripts);
364 while(eina_iterator_next(scripts, (void **) &me)) 365 while(eina_iterator_next(scripts, (void **) &me))
365 { 366 {