Skip to content

Commit

Permalink
comments to remove later
Browse files Browse the repository at this point in the history
  • Loading branch information
rsek committed Jan 4, 2022
1 parent 1c4e655 commit 017fdca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TheOracle2/DataClassesNext/Oracle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
namespace TheOracle2.DataClassesNext {

public class OracleDataNext {

// these methods probably belong on a different class, but i'm leaving them for now to make it easy to render a table to a discord msg.
public string ToAsciiTable() {
var rows = Table.Select(row => $"`{row.ToRollString()}` {row.ToResultString()}");
return String.Join("\n", rows);
Expand Down
2 changes: 2 additions & 0 deletions TheOracle2/DataClassesNext/TableRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace TheOracle2.DataClassesNext {
public class TableRowData {

// these methods probably belong on a different class, but i'm leaving them for now to make it easy to render a table to a discord msg
public string ToResultString() {
return Result + (Summary != null ? $" ({Summary})" : "");
}
Expand Down

0 comments on commit 017fdca

Please sign in to comment.