aboutsummaryrefslogtreecommitdiff
path: root/debug/action.lua.X
diff options
context:
space:
mode:
Diffstat (limited to 'debug/action.lua.X')
-rw-r--r--debug/action.lua.X66
1 files changed, 66 insertions, 0 deletions
diff --git a/debug/action.lua.X b/debug/action.lua.X
new file mode 100644
index 0000000..778ce1a
--- /dev/null
+++ b/debug/action.lua.X
@@ -0,0 +1,66 @@
+Pos Lua >> Moon
+50 1:[ local char = require("char") ] >> 2:[ char = require "char" ]
+72 2:[ local mod = ... ] >> 3:[ mod = ... ]
+83 3:[ mod.msg = { ] >> 5:[ mod.msg = { ]
+96 4:[ "request_class_change", ] >> 6:[ "request_class_change" ,--client to server request ]
+148 5:[ "confirm_class_change", ] >> 7:[ "confirm_class_change" ,-- server to client answer ]
+200 6:[ "deny_class_change", ] >> 8:[ "deny_class_change" ,-- server to client answer ]
+249 7:[ "info_class_change", ] >> 9:[ "info_class_change" ,-- server to client info ]
+296 8:[ "player_joined", ] >> 10:[ "player_joined" ,--client to server hello ]
+339 9:[ "info_player_joined", ] >> 11:[ "info_player_joined" ,-- server to client info ]
+387 10:[ "info_player_dropped", ] >> 12:[ "info_player_dropped" ,-- server to client info ]
+436 11:[ "request_campaign_start", ] >> 13:[ "request_campaign_start" , --client to server, start game ]
+495 12:[ "info_campaign_start", ] >> 14:[ "info_campaign_start" , --server to client, game is starting ]
+557 13:[ "request_player_list", ] >> 15:[ "request_player_list" ,-- client to server request ]
+609 14:[ "respond_player_list", ] >> 16:[ "respond_player_list" ,--server to client respond with player list ]
+677 15:[ "info_room", ] >> 17:[ "info_room" ,-- server to client notify about room info ]
+734 16:[ "info_turnup", ] >> 18:[ "info_turnup", -- sever to client, when is the turn up? ]
+791 17:[ "info_enemy_party", ] >> 19:[ "info_enemy_party", --server to client notify about enemy party ]
+856 18:[ "set_action", ] >> 20:[ "set_action" ,-- client to server, notify action for next turn ]
+920 19:[ "info_timeref", ] >> 21:[ "info_timeref" , --server to client, when the next turn is up ]
+983 20:[ "info_actions", ] >> 22:[ "info_actions" ,-- server to client set animations to play ]
+1043 21:[ "info_deaths", ] >> 23:[ "info_deaths", -- server to client, deaths that are about to happen ]
+1112 22:[ "info_loot", ] >> 24:[ "info_loot" ,--server to client loot for clearing a room ]
+1170 23:[ "request_camp_action", ] >> 25:[ "request_camp_action" ,--client to server what action to take at camp ]
+1241 24:[ "info_camp", ] >> 26:[ "info_camp" ,--server to client actions taken at camp ]
+1296 25:[ "info_defeat" ] >> 27:[ "info_defeat", --server to client, you're done! ]
+83 26:[ } ] >> 5:[ mod.msg = { ]
+1346 27:[ mod.msg_rev = { } ] >> 29:[ mod.msg_rev = {} ]
+1373 28:[ for k, v in pairs(mod.msg) do ] >> 30:[ for k,v in pairs(mod.msg) do ]
+1393 29:[ mod.msg_rev[v] = k ] >> 31:[ mod.msg_rev[v] = k ]
+1363 30:[ end ] >> 30:[ for k,v in pairs(mod.msg) do ]
+1413 31:[ mod.action_reg = { } ] >> 33:[ mod.action_reg = {} ]
+1433 32:[ mod.class_counter = 1 ] >> 34:[ mod.class_counter = 1 ]
+1456 33:[ mod.request_class_change = function(what) ] >> 36:[ mod.request_class_change = (what) -> ]
+1494 34:[ assert(what, "class may not be nil") ] >> 37:[ assert(what, "class may not be nil") ]
+1532 35:[ assert(char.class_order_rev[what], "class must be one of " .. tostring(char.class_order)) ] >> 38:[ assert(char.class_order_rev[what], "class must be one of " .. tostring(char.class_order)) ]
+1623 36:[ local msg_json = am.to_json({ ] >> 39:[ msg_json = am.to_json({msg:"request_class_change", time:am.current_time(), class:what}) ]
+1650 37:[ msg = "request_class_change", ] >> 39:[ msg_json = am.to_json({msg:"request_class_change", time:am.current_time(), class:what}) ]
+1679 38:[ time = am.current_time(), ] >> 39:[ msg_json = am.to_json({msg:"request_class_change", time:am.current_time(), class:what}) ]
+1704 39:[ class = what ] >> 39:[ msg_json = am.to_json({msg:"request_class_change", time:am.current_time(), class:what}) ]
+1623 40:[ }) ] >> 39:[ msg_json = am.to_json({msg:"request_class_change", time:am.current_time(), class:what}) ]
+1712 41:[ return am.eval_js(string.format("CLIENT.send(%q);", msg_json)) ] >> 40:[ am.eval_js(string.format("CLIENT.send(%q);",msg_json)) ]
+1456 42:[ end ] >> 36:[ mod.request_class_change = (what) -> ]
+1768 43:[ mod.start_game = function() ] >> 42:[ mod.start_game = () -> ]
+1792 44:[ local msg_json = am.to_json({ ] >> 43:[ msg_json = am.to_json({msg:"request_campaign_start", time:am.current_time()}) ]
+1819 45:[ msg = "request_campaign_start", ] >> 43:[ msg_json = am.to_json({msg:"request_campaign_start", time:am.current_time()}) ]
+1850 46:[ time = am.current_time() ] >> 43:[ msg_json = am.to_json({msg:"request_campaign_start", time:am.current_time()}) ]
+1792 47:[ }) ] >> 43:[ msg_json = am.to_json({msg:"request_campaign_start", time:am.current_time()}) ]
+1871 48:[ return am.eval_js(string.format("CLIENT.send(%q);", msg_json)) ] >> 44:[ am.eval_js(string.format("CLIENT.send(%q);",msg_json)) ]
+1768 49:[ end ] >> 42:[ mod.start_game = () -> ]
+1927 50:[ mod.sync_players = function() ] >> 46:[ mod.sync_players = () -> ]
+1953 51:[ local msg_json = am.to_json({ ] >> 47:[ msg_json = am.to_json({msg:"request_player_list", time:am.current_time()}) ]
+1980 52:[ msg = "request_player_list", ] >> 47:[ msg_json = am.to_json({msg:"request_player_list", time:am.current_time()}) ]
+2008 53:[ time = am.current_time() ] >> 47:[ msg_json = am.to_json({msg:"request_player_list", time:am.current_time()}) ]
+1953 54:[ }) ] >> 47:[ msg_json = am.to_json({msg:"request_player_list", time:am.current_time()}) ]
+2029 55:[ return am.eval_js(string.format("CLIENT.send(%q);", msg_json)) ] >> 48:[ am.eval_js(string.format("CLIENT.send(%q);",msg_json)) ]
+1927 56:[ end ] >> 46:[ mod.sync_players = () -> ]
+2085 57:[ mod.set_action = function(name) ] >> 50:[ mod.set_action = (name) -> ]
+2113 58:[ local msg_json = am.to_json({ ] >> 51:[ msg_json = am.to_json({ ]
+2143 59:[ msg = "set_action", ] >> 52:[ msg: "set_action" ]
+2164 60:[ time = am.current_time(), ] >> 53:[ time: am.current_time! ]
+2191 61:[ action = name ] >> 54:[ action: name ]
+2113 62:[ }) ] >> 51:[ msg_json = am.to_json({ ]
+2202 63:[ return am.eval_js(string.format("CLIENT.send(%q);", msg_json)) ] >> 56:[ am.eval_js(string.format("CLIENT.send(%q);",msg_json)) ]
+2085 64:[ end ] >> 50:[ mod.set_action = (name) -> ]
+2258 65:[ return mod ] >> 58:[ mod ]