6/13/2023 0 Comments L5r dice rollerReturn the String representation of the object. This is called automatically when JSON encoding the object. RequiredArgumentError notation is required.If a single notation is passed, a single DiceRoll is returned, otherwise an array of DiceRoll objects is returned You can roll a single notation, or multiple at once. Roll the given dice notation(s) and return the corresponding DiceRoll objects. # diceRoller.roll(.notations) ⇒ DiceRoll | Array. Returns: string | null - The exported data, in the specified formatĭata can be an array of DiceRoll objects, an object with a log property that contains DiceRoll objects, or a JSON / base64 encoded representation of either. If no format is specified, JSON is returned. # diceRoller.export() ⇒ string | nullĮxport the object in the given format. String representation of the rolls in the log If data is an object, it must contain an array of DiceRolls TypeError if data is an object, it must have a log property.The optional data property should be either an array of DiceRoll objects, or an object with a log property that contains the DiceRoll objects. See: DiceRoll if you don't need to keep a log history of rolls diceRoller.roll(.notations) ⇒ DiceRoll | Array.Ī DiceRoller handles dice rolling functionality, keeps a history of rolls and can output logs etc.
0 Comments
Leave a Reply. |