summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-19 22:50:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-19 22:50:55 +0300
commit1e1398a0c731dab75d5ca5d7077af68cc6104769 (patch)
tree87fafbcd6a086f4586b53e1c46d680e684521779 /src/emap/init.c
parent095588880ef3c2577fc9e6a81da20479c56f5bf7 (diff)
downloadevol-hercules-1e1398a0c731dab75d5ca5d7077af68cc6104769.tar.gz
evol-hercules-1e1398a0c731dab75d5ca5d7077af68cc6104769.tar.bz2
evol-hercules-1e1398a0c731dab75d5ca5d7077af68cc6104769.tar.xz
evol-hercules-1e1398a0c731dab75d5ca5d7077af68cc6104769.zip
Add script functions for manipulate item options.
New functions: getitemoptionidbyindex getitemoptionvaluebyindex getitemoptionparambyindex setitemoptionbyindex
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 341f9dd..ee03f84 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -190,6 +190,10 @@ HPExport void plugin_init (void)
addScriptCommand("tolabel", "i", toLabel);
addScriptCommand("input", "r??", input);
addScriptCommand("slide", "ii", slide);
+ addScriptCommand("getitemoptionidbyindex", "ii", getItemOptionIdByIndex);
+ addScriptCommand("getitemoptionvaluebyindex", "ii", getItemOptionValueByIndex);
+ addScriptCommand("getitemoptionparambyindex", "ii", getItemOptionParamByIndex);
+ addScriptCommand("setitemoptionbyindex", "iii*", setItemOptionByIndex);
do_init_langs();