|
GameApi 28
Library used by GameApi Builder tool
|
#include <GameApi.hh>
Classes | |
| struct | InsertParam |
Public Member Functions | |
| IMPORT | WModApi (Env &e) |
| IMPORT std::string | dep_from_function (EveryApi &ev, WM mod2, int id) |
| IMPORT std::string | deps_from_mod (EveryApi &ev, WM mod2) |
| IMPORT std::string | extract_deps (std::string filename) |
| IMPORT std::string | extract_funcname (std::string line) |
| IMPORT void | dump_functions_for_docs (GameApi::EveryApi &ev, int i) |
| IMPORT int | dump_functions_count () |
| IMPORT std::string | dump_functions (GameApi::EveryApi &ev, int i) |
| IMPORT WM | load (EveryApi &ev, std::string filename) |
| IMPORT void | save (WM mod, std::string ilename) |
| IMPORT void | insert_to_canvas (GameApi::EveryApi &ev, GuiApi &gui, W canvas, WM mod, int id, FtA font, BM font_bm, std::vector< W > &connect_clicks, std::vector< W > ¶ms, std::vector< W > &diaplay_clicks, std::vector< W > &edit_clicks, std::vector< W > &delete_key, std::vector< W > &codegen_button, std::vector< W > &popup_open, void(*fptr)(void *), void *data) |
| IMPORT void | update_lines_from_canvas (W canvas, WM mod, int id) |
| IMPORT void | insert_inserted_to_canvas (GuiApi &gui, W canvas, W item, std::string uid, W &display_clicks, W &edit_clicks, W &delete_key, W &codegen_button, W &popup_open) |
| IMPORT W | inserted_widget (GameApi::EveryApi &ev, GuiApi &gui, WM mod2, int id, FtA atlas, BM atlas_bm, std::string func_name, std::vector< W * > connect_click, std::string uid, std::vector< W > ¶ms) |
| IMPORT std::vector< int > | indexes_from_funcname (GameApi::EveryApi &ev, std::string funcname) |
| IMPORT std::vector< std::string > | types_from_function (GameApi::EveryApi &ev, WM mod, int id, std::string funcname) |
| IMPORT std::vector< std::string > | labels_from_function (GameApi::EveryApi &ev, WM mod, int id, std::string funcname) |
| IMPORT std::vector< std::string * > | refs_from_function (GameApi::EveryApi &ev, WM mod, int id, std::string funcname) |
| IMPORT std::vector< std::string * > | exprs_from_function (GameApi::EveryApi &ev, WM mod, int id, std::string funcname) |
| IMPORT std::vector< std::pair< std::string, std::string > > | defaults_from_function (GameApi::EveryApi &ev, std::string module_name) |
| IMPORT void | insert_to_mod (WM mod, int id, std::string modname, std::string uid, bool array_return, int x, int y, std::vector< InsertParam > params) |
| IMPORT std::string | get_funcname (WM mod2, int id, std::string uid) |
| IMPORT void | change_param_value (WM mod2, int id, std::string uid, int param_index, std::string newvalue, int j) |
| IMPORT void | change_param_is_array (WM mod2, int id, std::string uid, int param_index, bool is_array, int ref_line_index) |
| IMPORT void | change_param_multiple_return_values (WM mod2, int id, std::string uid, int j, int sz) |
| IMPORT int | find_line_index (WM mod2, int id, std::string uid) |
| IMPORT std::string | param_value (WM mod2, int id, std::string uid, int param_index) |
| IMPORT std::vector< std::string > | parse_param_array (std::string s) |
| IMPORT std::pair< std::string, int > | parse_multiple_return_uid (std::string s, bool &success) |
| IMPORT std::string | generate_param_array (std::vector< std::string > v) |
| IMPORT bool | typecheck (GameApi::EveryApi &ev, WM mod2, int id, std::string uid1, std::string uid2, int param_index, int ret_index, bool &is_array, bool &is_array_return) |
| IMPORT void | insert_links (EveryApi &ev, GuiApi &gui, WM mod2, int id, std::vector< W > &links, W canvas, const std::vector< W > &connect_targets, SH sh2, SH sh) |
| IMPORT int | execute (EveryApi &ev, WM mod2, int id, std::string line_uid, ExecuteEnv &exeenv, int level, int j) |
| IMPORT std::pair< int, std::vector< std::string > > | collect_urls (EveryApi &ev, WM mod2, int id, std::string line_uid, ExecuteEnv &exeenv, int level, ASyncData *arr, int arr_size, int j, bool use_async=false) |
| IMPORT CollectResult | collect_nodes (EveryApi &ev, WM mod2, int id, std::string line_uid, int level) |
| IMPORT void | codegen_reset_counter () |
| IMPORT std::pair< std::string, std::string > | codegen (EveryApi &ev, WM mod2, int id, std::string line_uid, int level, int j, CodeGenPositions *pos=0) |
| IMPORT std::string | return_type (GameApi::EveryApi &ev, WM mod2, int id, std::string line_uid) |
| IMPORT void | delete_by_uid (WM mod2, int id, std::string line_uid) |
| GameApi::WModApi::WModApi | ( | Env & | e | ) |
| EXPORT void GameApi::WModApi::change_param_is_array | ( | WM | mod2, |
| int | id, | ||
| std::string | uid, | ||
| int | param_index, | ||
| bool | is_array, | ||
| int | ref_line_index ) |

| EXPORT void GameApi::WModApi::change_param_multiple_return_values | ( | WM | mod2, |
| int | id, | ||
| std::string | uid, | ||
| int | j, | ||
| int | sz ) |

| EXPORT void GameApi::WModApi::change_param_value | ( | WM | mod2, |
| int | id, | ||
| std::string | uid, | ||
| int | param_index, | ||
| std::string | newvalue, | ||
| int | j ) |

| EXPORT std::pair< std::string, std::string > GameApi::WModApi::codegen | ( | EveryApi & | ev, |
| WM | mod2, | ||
| int | id, | ||
| std::string | line_uid, | ||
| int | level, | ||
| int | j, | ||
| CodeGenPositions * | pos = 0 ) |
| EXPORT void GameApi::WModApi::codegen_reset_counter | ( | ) |
| IMPORT CollectResult GameApi::WModApi::collect_nodes | ( | EveryApi & | ev, |
| WM | mod2, | ||
| int | id, | ||
| std::string | line_uid, | ||
| int | level ) |
| EXPORT std::pair< int, std::vector< std::string > > GameApi::WModApi::collect_urls | ( | EveryApi & | ev, |
| WM | mod2, | ||
| int | id, | ||
| std::string | line_uid, | ||
| ExecuteEnv & | exeenv, | ||
| int | level, | ||
| ASyncData * | arr, | ||
| int | arr_size, | ||
| int | j, | ||
| bool | use_async = false ) |

| EXPORT std::vector< std::pair< std::string, std::string > > GameApi::WModApi::defaults_from_function | ( | GameApi::EveryApi & | ev, |
| std::string | module_name ) |


| EXPORT std::string GameApi::WModApi::dump_functions | ( | GameApi::EveryApi & | ev, |
| int | i ) |
| EXPORT int GameApi::WModApi::dump_functions_count | ( | ) |
| EXPORT void GameApi::WModApi::dump_functions_for_docs | ( | GameApi::EveryApi & | ev, |
| int | i ) |
| EXPORT int GameApi::WModApi::execute | ( | EveryApi & | ev, |
| WM | mod2, | ||
| int | id, | ||
| std::string | line_uid, | ||
| ExecuteEnv & | exeenv, | ||
| int | level, | ||
| int | j ) |

| EXPORT std::vector< std::string * > GameApi::WModApi::exprs_from_function | ( | GameApi::EveryApi & | ev, |
| WM | mod, | ||
| int | id, | ||
| std::string | funcname ) |
| EXPORT std::string GameApi::WModApi::extract_deps | ( | std::string | filename | ) |
| EXPORT std::string GameApi::WModApi::extract_funcname | ( | std::string | line | ) |


| EXPORT std::string GameApi::WModApi::generate_param_array | ( | std::vector< std::string > | v | ) |


| EXPORT std::vector< int > GameApi::WModApi::indexes_from_funcname | ( | GameApi::EveryApi & | ev, |
| std::string | funcname ) |

| EXPORT void GameApi::WModApi::insert_inserted_to_canvas | ( | GuiApi & | gui, |
| W | canvas, | ||
| W | item, | ||
| std::string | uid, | ||
| W & | display_clicks, | ||
| W & | edit_clicks, | ||
| W & | delete_key, | ||
| W & | codegen_button, | ||
| W & | popup_open ) |

| EXPORT void GameApi::WModApi::insert_links | ( | EveryApi & | ev, |
| GuiApi & | gui, | ||
| WM | mod2, | ||
| int | id, | ||
| std::vector< W > & | links, | ||
| W | canvas, | ||
| const std::vector< W > & | connect_targets, | ||
| SH | sh2, | ||
| SH | sh ) |
| EXPORT void GameApi::WModApi::insert_to_canvas | ( | GameApi::EveryApi & | ev, |
| GuiApi & | gui, | ||
| W | canvas, | ||
| WM | mod, | ||
| int | id, | ||
| FtA | font, | ||
| BM | font_bm, | ||
| std::vector< W > & | connect_clicks, | ||
| std::vector< W > & | params, | ||
| std::vector< W > & | diaplay_clicks, | ||
| std::vector< W > & | edit_clicks, | ||
| std::vector< W > & | delete_key, | ||
| std::vector< W > & | codegen_button, | ||
| std::vector< W > & | popup_open, | ||
| void(* | fptr )(void *), | ||
| void * | data ) |
| EXPORT void GameApi::WModApi::insert_to_mod | ( | WM | mod, |
| int | id, | ||
| std::string | modname, | ||
| std::string | uid, | ||
| bool | array_return, | ||
| int | x, | ||
| int | y, | ||
| std::vector< InsertParam > | params ) |

| EXPORT GameApi::W GameApi::WModApi::inserted_widget | ( | GameApi::EveryApi & | ev, |
| GuiApi & | gui, | ||
| WM | mod2, | ||
| int | id, | ||
| FtA | atlas, | ||
| BM | atlas_bm, | ||
| std::string | func_name, | ||
| std::vector< W * > | connect_click, | ||
| std::string | uid, | ||
| std::vector< W > & | params ) |
| EXPORT std::vector< std::string > GameApi::WModApi::labels_from_function | ( | GameApi::EveryApi & | ev, |
| WM | mod, | ||
| int | id, | ||
| std::string | funcname ) |
| EXPORT GameApi::WM GameApi::WModApi::load | ( | GameApi::EveryApi & | ev, |
| std::string | filename ) |
| EXPORT std::string GameApi::WModApi::param_value | ( | WM | mod2, |
| int | id, | ||
| std::string | uid, | ||
| int | param_index ) |

| EXPORT std::pair< std::string, int > GameApi::WModApi::parse_multiple_return_uid | ( | std::string | s, |
| bool & | success ) |

| EXPORT std::vector< std::string > GameApi::WModApi::parse_param_array | ( | std::string | s | ) |

| EXPORT std::vector< std::string * > GameApi::WModApi::refs_from_function | ( | GameApi::EveryApi & | ev, |
| WM | mod, | ||
| int | id, | ||
| std::string | funcname ) |
| EXPORT std::string GameApi::WModApi::return_type | ( | GameApi::EveryApi & | ev, |
| WM | mod2, | ||
| int | id, | ||
| std::string | line_uid ) |

| EXPORT void GameApi::WModApi::save | ( | GameApi::WM | wm, |
| std::string | ilename ) |
| EXPORT bool GameApi::WModApi::typecheck | ( | GameApi::EveryApi & | ev, |
| WM | mod2, | ||
| int | id, | ||
| std::string | uid1, | ||
| std::string | uid2, | ||
| int | param_index, | ||
| int | ret_index, | ||
| bool & | is_array, | ||
| bool & | is_array_return ) |

| EXPORT std::vector< std::string > GameApi::WModApi::types_from_function | ( | GameApi::EveryApi & | ev, |
| WM | mod, | ||
| int | id, | ||
| std::string | funcname ) |