Load data from files #440
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
java
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
agony-forge/agonyforge#440
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are several types of data that are loaded into the game with classes such as
CommandLoader. These classes were a simple way to set up a default state but they're not very flexible. If you wanted to customize your MUD in a persistent way (eg. removing the diagonal movement commands) you'd have to make a code change and from that point on you would always be fighting against git trying to overwrite your changes when you merge from upstream.A better way to do this would be to make the loader classes load from a file, where the file is not managed by git.
There are currently four loader classes:
For this issue we'll ignore
WorldLoaderbecause that's covered by #406 already.For each of the three remaining three loaders make the following changes:
src/main/resources/to load some minimal defaults from if no other source is available../data/{filename}, load that../agonyforge-mud-demo/src/main/resources..gitignore.