dice-roller/rpg-dice-roller

Split output to separate module / library

开放

#132 创建于 2020年5月18日

 (1 条评论) (2 个反应) (0 位负责人)JavaScript (68 个派生)auto 404
enhancementhelp wantedsuggestion

仓库指标

星标
 (279 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南