Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -508,15 +508,15 @@ class GuiSpellcasting constructor(
fun pxToCoord(px: Vec2) = at.petrak.hexcasting.api.utils.pxToCoord(px, this.hexSize(), this.coordsOffset())


private sealed class PatternDrawState {
public sealed class PatternDrawState {
/** We're waiting on the player to right-click again */
object BetweenPatterns : PatternDrawState()
public object BetweenPatterns : PatternDrawState()

/** We just started drawing and haven't drawn the first line yet. */
data class JustStarted(val start: HexCoord) : PatternDrawState()
public data class JustStarted(val start: HexCoord) : PatternDrawState()

/** We've started drawing a pattern for real. */
data class Drawing(val start: HexCoord, var current: HexCoord, val wipPattern: HexPattern) : PatternDrawState()
public data class Drawing(val start: HexCoord, var current: HexCoord, val wipPattern: HexPattern) : PatternDrawState()
Comment on lines +513 to +519
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of these should be necessary - just removing the private modifier on PatternDrawState (not explicitly setting anything to public) should be adequate afaik.

}

companion object {
Expand Down
Loading