lifecycle added in the documentation
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 13 May 2011 16:27:39 +0000 (18:27 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 13 May 2011 16:27:39 +0000 (18:27 +0200)
doc/ARCHITECTURE.txt

index b350151..807c5fb 100644 (file)
@@ -17,3 +17,14 @@ index.php:
 --- CLI ------------
   POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
 
+
+
+===== Game Lifecycle =====
+
+-> bin5/index_wr.php + argz[0] == 'logout'
+   - bri->table_wakeup($user)
+     - set users subst to "shutdowner" and "shutdowned"
+     - save this: "gst.st_loc++; the_end=true; window.onbeforeunload = null; \
+                   window.onunload = null; document.location.assign("../index.php");" 
+       in user->comm var for client xhr
+     - set $bri->the_end = TRUE