dice-roller/rpg-dice-roller

Split output to separate module / library

Open

#132 opened on May 18, 2020

 (1 comment) (2 reactions) (0 assignees)JavaScript (68 forks)auto 404
enhancementhelp wantedsuggestion

Repository metrics

Stars
 (279 stars)
PR merge metrics
 (PR metrics pending)

Description

Is your feature request related to a problem? Please describe. The roll output, that returns the string version of the roll log, is currently built in to the individual classes and is not easily changeable. It could be helpful if the output was built as a separate module, so that it can be easily swapped out for a different output type. This would enable easier modification of the output and allow things like HTML output.

Describe the solution you'd like Move the output functionality into it's own set of classes that can handle the various objects that need to be output.

It may be beneficial for this to be it's own library, rather than built in to the dice roller itself. The alternative is to simply build it inside the library as it's own set of modules.

Contributor guide