]> git.lizzy.rs Git - dragonfireclient.git/blob - clientmods/preview/init.lua
4c01d665fe4a31479177a1ed3cd4dad5918fb583
[dragonfireclient.git] / clientmods / preview / init.lua
1 -- This is an example function to ensure it's working properly, should be removed before merge
2 core.register_on_shutdown(function()
3         print("[PREVIEW] shutdown client")
4 end)
5
6 -- This is an example function to ensure it's working properly, should be removed before merge
7 core.register_on_receiving_chat_messages(function(message)
8         print("[PREVIEW] Received message " .. message)
9         return false
10 end)
11
12 -- This is an example function to ensure it's working properly, should be removed before merge
13 core.register_on_sending_chat_messages(function(message)
14         print("[PREVIEW] Sending message " .. message)
15         return false
16 end)
17
18 -- This is an example function to ensure it's working properly, should be removed before merge
19 core.register_on_hp_modification(function(hp)
20         print("[PREVIEW] HP modified " .. hp)
21 end)
22
23 -- This is an example function to ensure it's working properly, should be removed before merge
24 core.register_on_damage_taken(function(hp)
25         print("[PREVIEW] Damage taken " .. hp)
26 end)
27
28 -- This is an example function to ensure it's working properly, should be removed before merge
29 core.register_globalstep(function(dtime)
30         -- print("[PREVIEW] globalstep " .. dtime)
31 end)
32
33 -- This is an example function to ensure it's working properly, should be removed before merge
34 core.register_chatcommand("dump", {
35         func = function(param)
36                 return true, dump(_G)
37         end,
38 })
39
40 core.after(2, function()
41         print("After 2")
42 end)