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

feat(items): SerializableItemStack extension system #60

Open
0ffz opened this issue Jun 14, 2023 · 0 comments
Open

feat(items): SerializableItemStack extension system #60

0ffz opened this issue Jun 14, 2023 · 0 comments

Comments

@0ffz
Copy link
Member

0ffz commented Jun 14, 2023

We're starting to want support for serializing items generated by other plugins. An extension system would help us keep the main module clean while letting us or other authors add custom steps.

We can use polymorphic serialization to let people add their own subclasses that describe extra steps to make the item, the end result in config would look something like

type: STONE
extra:
 - !<geary_prefab> "some:prefab"

Where the list of extras is processed once we convert to ItemStack.

@0ffz 0ffz changed the title SerializableItemStack extension system feat(items): SerializableItemStack extension system Jun 3, 2024
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

No branches or pull requests

1 participant