Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load generated content #31

Merged
merged 8 commits into from
Jul 13, 2021
Merged

Load generated content #31

merged 8 commits into from
Jul 13, 2021

Conversation

MikkelPaulson
Copy link
Collaborator

Now not only do we save content as it is generated on the fly, it is also possible to load that content after the fact by invoking the name of the generated entity.

Resolves #30

The world encompasses more than just generating content. Anything routed
to the `world` module is now a WorldCommand.
Matching past behaviour with npc, split LocationSummaryView and
LocationDetailsView into a separate view module.
Since the views are found in the npc and location mod namespaces,
there's no need for repetition in the struct name.
Thing also now has its own file. This will support adding more code for
views.
Remove leading and trailing newlines from generator output for
consistency of rendering. Necessary padding has instead been moved into
the rendering layer (cli and web).

Also updated whitespace handling of other views to ensure that output
should never have leading or trailing newlines.
Proper nouns are now recognized as one or more capitalized words in
sequence. Adjacent capitalized words are greedily consumed.
Now anyThing can be rendered as summary/details without prior knowledge
of what sort of Thing (Npc, Location, etc.).
It is now possible to load a previously-generated entity by typing its
name. The parsing is super kludgy: any command containing a proper noun
is currently interpreted to be a request to load data. But a journey of
a thousand miles blah blah.
@MikkelPaulson MikkelPaulson merged commit b7480f6 into main Jul 13, 2021
@MikkelPaulson MikkelPaulson deleted the load-generated-content branch July 13, 2021 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recall generated content
1 participant