Skip to content

Commit

Permalink
Documentation for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXMushroom63 committed Sep 8, 2024
1 parent 1f2995a commit 6d710b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/apidoc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ The global object has the following properties:
- This object is used to push code for use in the dedicated server.
- Once the dedicated server worker has started, it is unuseable.
- More: [DedicatedServerDocumentation](dedicatedserver.md)
- `ModAPI.meta`
- This object is used to register metadata for mods such as their title, credits, icon and description.
- More: [MetaDocumentation](meta.md)
- `ModAPI.version: String`
- The version of ModAPI.
- `ModAPI.flavour: String`
Expand Down
13 changes: 13 additions & 0 deletions docs/apidoc/meta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## ModAPI.meta
ModAPI.meta contains the API for registering metadata on mods easily.

Methods:
- `ModAPI.meta.title(title: String)`
- Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 14.
- `ModAPI.meta.credits(credits: String)`
- Sets the credits of the mod. Character limit of 16.
- `ModAPI.meta.description(desc: String)`
- Sets the description of the mod. Character limit of 64.
- `ModAPI.meta.icon(iconURL: String)`
- Sets the icon of the mod.
- It can be extremely low res, it will not appear blurry.

0 comments on commit 6d710b3

Please sign in to comment.