From 439752a7f71e20398b8342be0657477b30caf406 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Thu, 25 Dec 2025 10:57:58 +0100 Subject: [PATCH] more api comments --- plugin.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.lua b/plugin.lua index 358f993..e130cea 100644 --- a/plugin.lua +++ b/plugin.lua @@ -263,7 +263,7 @@ function set_rds_udg(xy, groups) end function set_rds_udg2(xy, groups) end ---Registers an ODA to be used in the O of the group sequence. ODAs are stored as state data, thus running reset_rds will clear it ----Groups 14, 15, 2, 0 cannot be registered either version, groups 10, 4, 3, 1 can be only registered as B +---Groups 14, 15, 2, 0 cannot be registered either version, groups 10, 4, 3, 1 can be only registered as B, any other is free to take ---@param group integer ---@param group_version boolean ---@param id integer @@ -278,6 +278,7 @@ function register_oda(group, group_version, id, id_data) end ---The handler is called when the group sequence 'K' slot is processed. ---The function must return 3 integers representing RDS Blocks B, C, and D. ---Please note that you do not need to compute the block A to indentify the group and group version, that will be done for you and EVERY SINGLE group has PTY and TP inserted (and also PI if its a B) +---You are asked to set groups B last 5 bits, leave rest 0 ---@param oda_id integer The ID returned by register_oda ---@param fun ODAHandler function set_oda_handler(oda_id, fun) end \ No newline at end of file