Skip to content

Commit

Permalink
Move register_on_modchannel_signal() (#6497)
Browse files Browse the repository at this point in the history
Moved from lua_api.txt to client_lua_api.md.
  • Loading branch information
jamesalexanderstevenson authored and nerzhul committed Oct 5, 2017
1 parent 4e19791 commit 4337b48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 10 additions & 1 deletion doc/client_lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,16 @@ Call these functions only at load time!
* You must have joined some channels before, and server must acknowledge the
join request.
* If message comes from a server mod, `sender` field is an empty string.

* `minetest.register_on_modchannel_signal(func(channel_name, signal))`
* Called when a valid incoming mod channel signal is received
* Signal id permit to react to server mod channel events
* Possible values are:
0: join_ok
1: join_failed
2: leave_ok
3: leave_failed
4: event_on_not_joined_channel
5: state_changed
* `minetest.register_on_inventory_open(func(inventory))`
* Called when the local player open inventory
* Newest functions are called first
Expand Down
10 changes: 0 additions & 10 deletions doc/lua_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2529,16 +2529,6 @@ Call these functions only at load time!
* Called when an incoming mod channel message is received
* You should have joined some channels to receive events.
* If message comes from a server mod, `sender` field is an empty string.
* `minetest.register_on_modchannel_signal(func(channel_name, signal))`
* Called when a valid incoming mod channel signal is received
* Signal id permit to react to server mod channel events
* Possible values are:
0: join_ok
1: join_failed
2: leave_ok
3: leave_failed
4: event_on_not_joined_channel
5: state_changed

### Other registration functions
* `minetest.register_chatcommand(cmd, chatcommand definition)`
Expand Down

0 comments on commit 4337b48

Please sign in to comment.