Add API to manage waypoints

This commit is contained in:
Jean-Patrick Guerrero
2023-01-07 12:28:07 +01:00
parent d9a16bf39d
commit a0a3394e18
8 changed files with 145 additions and 14 deletions

12
tests/test_waypoints.lua Normal file
View File

@ -0,0 +1,12 @@
core.after(5, function()
i3.add_waypoint("Test", {
player = "singleplayer",
pos = {x = 0, y = 2, z = 0},
color = 0xffff00,
-- image = "heart.png",
})
core.after(5, function()
i3.remove_waypoint("singleplayer", "Test")
end)
end)