forked from tobspr-games/shapez.io
-
Notifications
You must be signed in to change notification settings - Fork 34
Add proper support for mod dependencies #100
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
Open
codeman4033
wants to merge
27
commits into
tobspr-games:master
Choose a base branch
from
codeman4033:dependencies
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This version of Electron includes a fix for performance issues on macOS.
Without this change a runBeforeMethod/runAfterMethod is required to draw anything on the wires layer, leading to some confusion and asymmetry between the regular and wires layer. Therefore, introduce a set of before/after hooks for the wires foreground layer, allowing mods to easily draw stuff on top of or behind wires layer components.
Vanilla does not make any use of the "counter" gainedRewards nature. In order to simplify the code and prepare for refactoring this part into a savegame-stored object instead, replace the Object<string, number> with a Set<string> for storing the unlocked rewards.
At least for now, only for internal/vanilla use. To be used in Hub Goals gainedRewards serialization. Only works well for primitive types, but this is not enforced (yet?)
Add gainedRewards to HubGoals serialization schema, remove the runtime computation code and add logic to clean up rewards that do not exist at runtime (i.e. added by mods that have been removed). This means mods that can "convert" vanilla savegames will have to apply the same set of changes regardless of whether the mod was ever installed before or not.
Convert the Blueprint class to TypeScript. The entities member is intentionally made private. No other changes are included in this commit.
Add a field to Blueprint class that determines if the placement shouldn't consume shapes. Modify the UI code to no longer trigger a warning for now-reversible cut operations and provide a helper method to handle free blueprints easily. Finally, move the cost deduction logic into Blueprint#tryPlace while keeping the sound trigger in the HUD part.
…t-free-trial Allow pasting cut blueprints once
No idea if it ever worked; remove a few SoundInterface/SoundProxy methods related to playing position-attached sounds. This functionality is not used in vanilla game and is thus no longer necessary.
Remove game speed classes and the global game speed registry, thus reduce the complexity of GameTime class (drop support for time multipliers and dynamically changing the game speed). Additionally, clean up unused keybinding forward metods in BaseHUDPart.
Clean up directory with one file after removing game speeds.
Get rid of the cameraShake property and related methods of the Camera class. This functionality is not used by vanilla and is not expected to ever get used in any mod, additionally it is objectively ugly; a mod can provide its own implementation if needed.
Update logos for GitHub, Discord, Reddit, and Patreon.
Turns out there's been a bug. I forgot to add the lines to sort the mods in the initMods method.
The Prettier extension is now published with the "prettier.prettier-vscode" ID. Update settings.json and extensions.json accordingly to use the correct extension ID.
Replace with `navigator.clipboard`
Only check a single layer for potential connection or blockage when displaying building I/O arrows. Direct port of tobspr-games#1035. Co-authored-by: Emerald Block <69981203+EmeraldBlock@users.noreply.github.com>
Turns out there's been a bug. I forgot to add the lines to sort the mods in the initMods method.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds proper support for mod dependencies