Skip to content

Commit

Permalink
Move oracle/roll state code to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
cwegrzyn committed Nov 21, 2024
1 parent 81fc198 commit 223ee39
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 387 deletions.
7 changes: 2 additions & 5 deletions src/entity/new-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ import {
Setting,
TextComponent,
} from "obsidian";
import {
createRollContainer,
NewOracleRollerModal,
RollContainer,
} from "oracles/new-modal";
import { NewOracleRollerModal } from "oracles/new-modal";
import { createRollContainer, RollContainer } from "oracles/state";
import { FolderTextSuggest } from "utils/ui/settings/folder";
import { RollContext } from "../model/oracle";
import { RollWrapper } from "../model/rolls";
Expand Down
2 changes: 1 addition & 1 deletion src/entity/specs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Datasworn } from "@datasworn/core";
import { matchDataswornLink } from "datastore/parsers/datasworn/id";
import { RollWrapper } from "model/rolls";
import { createRollContainer, RollContainer } from "oracles/new-modal";
import { createRollContainer, RollContainer } from "oracles/state";

export type EntityDescriptor<T extends EntitySpec> = {
label: string;
Expand Down
2 changes: 1 addition & 1 deletion src/mechanics/node-builders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
moveIsAction,
moveIsProgress,
} from "moves/desc";
import { RollContainer } from "oracles/new-modal";
import { oracleNameWithParents } from "oracles/render";
import { RollContainer } from "oracles/state";
import { ProgressTrackWriterContext } from "tracks/writer";
import { node } from "utils/kdl";

Expand Down
Loading

0 comments on commit 223ee39

Please sign in to comment.