DICE PACKS BUNDLE
  1. #1
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29

    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".

  2. #2
    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

  3. #3
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in