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: make shop screen optional #27

Merged
merged 2 commits into from
Dec 4, 2021
Merged

Conversation

skaldarnar
Copy link
Contributor

Make the shop screen displayed with the inventory optional.

This is done by introducing a new marker component AllowShopScreenComponent and a high-priority event handler to open a different screen if this component is present on a client.

The README contains a section explaining how the screen can be enabled.

Make the shop screen displayed with the inventory optional.

This is done by introducing a new marker component `AllowShopScreenComponent` and a high-priority event handler to open a different screen if this component is present on a client.

The README contains a section explaining how the screen can be enabled.
@skaldarnar
Copy link
Contributor Author

I tested this with MetalRenegades by adding the code snippet to the PlayerInventorySystem which is plain system registered on both clients and authority.

I did not test it yet whether the enabling can be done purely on client-side.

In theory, this approach now allows to programmatically control when the player is able to access the in-game shop. We could, for instance, add the respective component to the client only if they are in close proximity to their home base (in Light&Shadow) or during specific time slots (in Gooey's Defense).

@jdrueckert jdrueckert added Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Size: S Small effort likely only affecting a single area and requiring little to no research Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc. Type: Improvement Request for or addition/enhancement of a feature labels Dec 4, 2021
@jdrueckert jdrueckert changed the title feature: make shop screen optional feat: make shop screen optional Dec 4, 2021
@jdrueckert jdrueckert merged commit f7e5aab into develop Dec 4, 2021
@jdrueckert jdrueckert deleted the feat/optional-shop-screen branch December 4, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Size: S Small effort likely only affecting a single area and requiring little to no research Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc. Type: Improvement Request for or addition/enhancement of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants