I copy and edited and everything works great,
Thanks a lot for the help!
1 Like
Pigeon has been updated to 1.2
- Added possibility to use another logger - Defold-Log by Insality
- Updated example to Defold 1.9.3
Release is added on Github, current link to add to game.project dependency:
https://github.com/paweljarosz/pigeon/archive/refs/tags/v1.2.zip
Quick Reference:
local insality_log = require "log.log"
pigeon.set_dependency_module_log(insality_log.get_logger("pigeon"))
6 Likes
Well done!
1 Like
Pigeon has been updated to 1.3
- Added possibility to define multiple types in message definition using
|
as separator, e.g.string|number|nil
. Example script extended with this usage. Change is not breaking and all legacy tests are passing. Quick Reference:
pigeon.define("test", { test_value = "string|number|nil" }) -- define message with one test_value being string, number or nil
pigeon.send("test", {test_value = 1 }) -- we can then send a message with number
pigeon.send("test", {test_value = "test" }) -- or string
pigeon.send("test", {test_value = nil }) -- or nil
pigeon.send("test". {}) -- and because the only defined key here can be nil, so we as well can pass empty table
pigeon.send("test") -- or nothing at all
-
Added Lua annotations to all functions in Pigeon!
-
Improved documentation.
-
Working with Defold 1.9.4 (library is pretty much version agnostic though unless
msg
API changes)
Release is added on Github as 1.3
, current link to add to game.project dependency:
https://github.com/paweljarosz/pigeon/archive/refs/tags/v1.3.zip
8 Likes