Added new cosmetics #7

Merged
vlw merged 0 commits from feature/cosmetics into master 2021-01-23 03:09:03 +01:00
vlw commented 2020-12-27 13:06:23 +01:00 (Migrated from codeberg.org)

Added cosmetics from LabyMod advent calendar.

This merge would introduce a new format for altering metadata for applicable cosmetics.
Unfortunately the Cape cosmetic labylib was based on appears to use an older API where each data point could be modified independently. That does not appear to be the case with all the other cosmetics added in this list. They all make requests to a more streamlined https://www.labymod.net/api/change endpoint.

All meta data needs to be sent along as a single URLEncoded "multi" request. While more efficient, it removes labylib's ability to update these values individually. A Multi class is therefor proposed; where each data point can be modified by calling a semantic function color(),template() etc.

Cosmetics
Backpack
XMAS
Moose Hat
Mask
Cap (with 2021 texture)
Added cosmetics from LabyMod advent calendar. This merge would introduce a new format for altering metadata for applicable cosmetics. Unfortunately the Cape cosmetic labylib was based on appears to use an older API where each data point could be modified independently. That does not appear to be the case with all the other cosmetics added in this list. They all make requests to a more streamlined `https://www.labymod.net/api/change` endpoint. All meta data needs to be sent along as a single URLEncoded "multi" request. While more efficient, it removes labylib's ability to update these values individually. A `Multi` class is therefor proposed; where each data point can be modified by calling a semantic function `color()`,`template()` etc. |Cosmetics| |--| |Backpack| |XMAS| |Moose Hat| |Mask| |Cap (with 2021 texture)|
vlw commented 2020-12-27 14:10:34 +01:00 (Migrated from codeberg.org)
[Added cosmetics to Wiki](https://github.com/VictorWesterlund/labylib/wiki/labylib-Modules)
Commenting is not possible because the repository is archived.
No description provided.