GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi::WModApi Class Reference

#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 > &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)
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 > &params)
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)

Constructor & Destructor Documentation

◆ WModApi()

GameApi::WModApi::WModApi ( Env & e)

Member Function Documentation

◆ change_param_is_array()

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 )
Here is the caller graph for this function:

◆ change_param_multiple_return_values()

EXPORT void GameApi::WModApi::change_param_multiple_return_values ( WM mod2,
int id,
std::string uid,
int j,
int sz )
Here is the caller graph for this function:

◆ change_param_value()

EXPORT void GameApi::WModApi::change_param_value ( WM mod2,
int id,
std::string uid,
int param_index,
std::string newvalue,
int j )
Here is the caller graph for this function:

◆ codegen()

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 )

◆ codegen_reset_counter()

EXPORT void GameApi::WModApi::codegen_reset_counter ( )

◆ collect_nodes()

IMPORT CollectResult GameApi::WModApi::collect_nodes ( EveryApi & ev,
WM mod2,
int id,
std::string line_uid,
int level )

◆ collect_urls()

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 )
Here is the caller graph for this function:

◆ defaults_from_function()

EXPORT std::vector< std::pair< std::string, std::string > > GameApi::WModApi::defaults_from_function ( GameApi::EveryApi & ev,
std::string module_name )
Here is the caller graph for this function:

◆ delete_by_uid()

EXPORT void GameApi::WModApi::delete_by_uid ( WM mod2,
int id,
std::string line_uid )

◆ dep_from_function()

EXPORT std::string GameApi::WModApi::dep_from_function ( EveryApi & ev,
WM mod2,
int id )
Here is the caller graph for this function:

◆ deps_from_mod()

EXPORT std::string GameApi::WModApi::deps_from_mod ( EveryApi & ev,
WM mod2 )

◆ dump_functions()

EXPORT std::string GameApi::WModApi::dump_functions ( GameApi::EveryApi & ev,
int i )

◆ dump_functions_count()

EXPORT int GameApi::WModApi::dump_functions_count ( )

◆ dump_functions_for_docs()

EXPORT void GameApi::WModApi::dump_functions_for_docs ( GameApi::EveryApi & ev,
int i )

◆ execute()

EXPORT int GameApi::WModApi::execute ( EveryApi & ev,
WM mod2,
int id,
std::string line_uid,
ExecuteEnv & exeenv,
int level,
int j )
Here is the caller graph for this function:

◆ exprs_from_function()

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

◆ extract_deps()

EXPORT std::string GameApi::WModApi::extract_deps ( std::string filename)

◆ extract_funcname()

EXPORT std::string GameApi::WModApi::extract_funcname ( std::string line)
Here is the caller graph for this function:

◆ find_line_index()

EXPORT int GameApi::WModApi::find_line_index ( WM mod2,
int id,
std::string uid )
Here is the caller graph for this function:

◆ generate_param_array()

EXPORT std::string GameApi::WModApi::generate_param_array ( std::vector< std::string > v)
Here is the caller graph for this function:

◆ get_funcname()

EXPORT std::string GameApi::WModApi::get_funcname ( WM mod2,
int id,
std::string uid )
Here is the caller graph for this function:

◆ indexes_from_funcname()

EXPORT std::vector< int > GameApi::WModApi::indexes_from_funcname ( GameApi::EveryApi & ev,
std::string funcname )
Here is the caller graph for this function:

◆ insert_inserted_to_canvas()

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 )
Here is the caller graph for this function:

◆ insert_links()

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 )

◆ insert_to_canvas()

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 )

◆ insert_to_mod()

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 )
Here is the caller graph for this function:

◆ inserted_widget()

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 )

◆ labels_from_function()

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

◆ load()

EXPORT GameApi::WM GameApi::WModApi::load ( GameApi::EveryApi & ev,
std::string filename )

◆ param_value()

EXPORT std::string GameApi::WModApi::param_value ( WM mod2,
int id,
std::string uid,
int param_index )
Here is the caller graph for this function:

◆ parse_multiple_return_uid()

EXPORT std::pair< std::string, int > GameApi::WModApi::parse_multiple_return_uid ( std::string s,
bool & success )
Here is the caller graph for this function:

◆ parse_param_array()

EXPORT std::vector< std::string > GameApi::WModApi::parse_param_array ( std::string s)
Here is the caller graph for this function:

◆ refs_from_function()

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

◆ return_type()

EXPORT std::string GameApi::WModApi::return_type ( GameApi::EveryApi & ev,
WM mod2,
int id,
std::string line_uid )
Here is the caller graph for this function:

◆ save()

EXPORT void GameApi::WModApi::save ( GameApi::WM wm,
std::string ilename )

◆ typecheck()

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 )
Here is the caller graph for this function:

◆ types_from_function()

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

◆ update_lines_from_canvas()

EXPORT void GameApi::WModApi::update_lines_from_canvas ( W canvas,
WM mod,
int id )

The documentation for this class was generated from the following files: