mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 10:49:53 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user