-
July 18th, 2022, 02:46 #1
Developer Guide Missing Documentation for dragdata getDiceData()
I tripped over the dragdata function call getDiceData() in manager_actions.lua of the CoreRPG ruleset at ~line 368 of the current release, 2022-07.
getDiceData() is not documented in either the original refdoc documents nor in Developer Guide for Unity on atlassian.net
Code:function decodeRollFromDrag(draginfo, i, bFinal) draginfo.setSlot(i); . . vRoll.nMod = draginfo.getNumberData(); vRoll.aDice = draginfo.getDiceData() or {}; vRoll.nTotal = vRoll.aDice.total; . . . return vRoll; end
Current Projects:
Always...
Community Contributions:
Extensions: Bardic Inspiration, Druid Wild Shapes, Local Dice Tower, Library Field Filters
Tutorial Blog Series: "A Neophyte Tackles (coding) the FG Extension".
-
July 18th, 2022, 06:45 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
They were renamed from getDieList/setDieList to getDiceData/setDiceData; in order to be consistent with the other API functions as well as to indicate that there is more data than just the die list now.
I'll update the docs to the new names.
Regards,
JPG
-
July 18th, 2022, 13:51 #3
Thank you Moon Wizard.
Just a heads up, getDieList() and setDieList() are still being used elsewhere in CoreRPG and 5E rulesets. In case that matters. I didn't check the other rulesets.
(The reason I checked is, I needed to see if I had to support all four function calls in my instantiable dragdata object.)Last edited by Minty23185Fresh; July 18th, 2022 at 14:01.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks