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

Mod loading #366

Merged
merged 3 commits into from
Feb 8, 2022
Merged

Mod loading #366

merged 3 commits into from
Feb 8, 2022

Conversation

olefasting
Copy link
Member

@olefasting olefasting commented Feb 8, 2022

This PR adds mods to Fish Fight.

Currently, only data mods are allowed and they will currently extend the core resources (in the future we will add a replace option, for when creating total conversion mods). This means that a mods resources will be added to Resources, or overwrite existing resources, if ids are the same.

The mods directory holds two example mods that show how to create a mod and how dependencies work. These examples hold no actual content but this is added just like when adding to the assets dir, using the same resource file names and the same folder.

Mods are loaded in order, according to the order given in active_mods.json

All resources that are loaded dynamically are supported in mods:

  • decoration (decoration.json)
  • images (images.json)
  • items (items.json)
  • maps (maps.json)
  • music (music.json)
  • particle effects (particle_effects.json)
  • player characters (player_characters.json)
  • sounds (sounds.json)
  • textures (textures.json)

@olefasting olefasting merged commit bffa1a1 into fishfolk:main Feb 8, 2022
@olefasting olefasting deleted the network_events branch February 8, 2022 18:02
@olefasting olefasting mentioned this pull request Feb 8, 2022
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.

None yet

1 participant