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: add HasTypeIDWithAmount interface #180

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

recursivetree
Copy link
Contributor

This PR adds a new interface between HasTypeID and IPriceable. The issue is that sometimes, you have a list of items with amount, like a asset list, that doesn't need the price side from IPriceable, but that could profit of the amount side of IPriceable.

I'm currently working on making seat-inventory compatible with the new item ecosystem around the prices plugin and would massively profit of this new interface.

src/Contracts/IPriceable.php Outdated Show resolved Hide resolved
Remove redundant extends

Co-authored-by: Loïc Leuilliot <[email protected]>
@Crypta-Eve Crypta-Eve merged commit f378db3 into eveseat:5.0.x Apr 3, 2024
3 checks passed
Crypta-Eve added a commit to crypta-tech/seat-fitting that referenced this pull request Apr 3, 2024
seat-inventory needs to update some stuff when a fitting changes. I
tried to use an observer for this, but: The plugin first saves the
fitting and only afterwards save the items of the fit, meaning the
observer fires before the items of a fitting have been saved.

This PR adds a laravel event that fires after a fitting has been saved.

The same has been done with doctrines for the same reason.

This PR depends on eveseat/services#180
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.

3 participants