summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorief015 <ief015@gmail.com>2011-06-25 05:32:54 (GMT)
committer ief015 <ief015@gmail.com>2011-06-25 05:32:54 (GMT)
commitbe7923310199cd518c32c0802055d253e16b69ee (patch)
tree91ecb2aae8eb717d870fa5f245dd28c50368ff11 /includes
parent87513503ba8f573c3c25733b4233b75823182e1b (diff)
downloadpowder-be7923310199cd518c32c0802055d253e16b69ee.zip
powder-be7923310199cd518c32c0802055d253e16b69ee.tar.gz
added functions to iterate through all particles
+ tpt.start_getPartIndex() --starts the iteration + bool tpt.next_getPartIndex() --increases the iteration, returns true if there are more particles to iterate through + int tpt.getPartIndex() --get the current iteration value
Diffstat (limited to 'includes')
-rw-r--r--includes/luaconsole.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/luaconsole.h b/includes/luaconsole.h
index fa8fe1b..de3f589 100644
--- a/includes/luaconsole.h
+++ b/includes/luaconsole.h
@@ -19,6 +19,8 @@ char *luacon_geterror();
void luacon_close();
int process_command_lua(pixel *vid_buf, char *console, char *console_error);
+int getPartIndex_curIdx;
+
//TPT Interface
int luatpt_test(lua_State* l);
int luatpt_drawtext(lua_State* l);
@@ -45,4 +47,8 @@ int luatpt_register_step(lua_State* l);
int luatpt_unregister_step(lua_State* l);
int luatpt_input(lua_State* l);
int luatpt_message_box(lua_State* l);
+int luatpt_get_numOfParts(lua_State* l);
+int luatpt_start_getPartIndex(lua_State* l);
+int luatpt_getPartIndex(lua_State* l);
+int luatpt_next_getPartIndex(lua_State* l);
#endif