forked from github/server
bind GIVE CONTROL to lua
This commit is contained in:
parent
648de4d36c
commit
1298684fd9
|
@ -41,6 +41,7 @@ function test_process()
|
|||
assert_equal("function", _G.type(eressea.process.contact))
|
||||
assert_equal("function", _G.type(eressea.process.enter))
|
||||
assert_equal("function", _G.type(eressea.process.magic))
|
||||
assert_equal("function", _G.type(eressea.process.give_control))
|
||||
end
|
||||
|
||||
function test_settings()
|
||||
|
|
|
@ -213,6 +213,14 @@ function test_process_contact()
|
|||
eressea.process.contact()
|
||||
end
|
||||
|
||||
function test_process_battle()
|
||||
eressea.process.battle()
|
||||
end
|
||||
|
||||
function test_process_magic()
|
||||
eressea.process.magic()
|
||||
end
|
||||
|
||||
function test_process_give_control()
|
||||
eressea.process.give_control()
|
||||
end
|
||||
|
|
|
@ -207,6 +207,10 @@ void process_magic(void) {
|
|||
magic();
|
||||
}
|
||||
|
||||
void process_give_control(void) {
|
||||
process_cmd(K_CONTACT, give_control_cmd, 0);
|
||||
}
|
||||
|
||||
void process_enter(int final) {
|
||||
region * r;
|
||||
for (r=regions; r; r=r->next) {
|
||||
|
|
|
@ -33,6 +33,7 @@ void process_sethelp(void);
|
|||
void process_contact(void);
|
||||
void process_enter(int final);
|
||||
void process_magic(void);
|
||||
void process_give_control(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -30,5 +30,6 @@ module eressea {
|
|||
void process_contact @ contact(void); /* CONTACT */
|
||||
void process_enter @ enter(int message); /* ENTER */
|
||||
void process_magic @ magic(void); /* CAST */
|
||||
void process_give_control @ give_control(void); /* GIVE CONTROL */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue