Skip to content

Better timings fixes#56

Merged
Exterminate5573 merged 2 commits intoMPKMod:masterfrom
Zpiboo:fix/better-timings-fixes
Mar 21, 2026
Merged

Better timings fixes#56
Exterminate5573 merged 2 commits intoMPKMod:masterfrom
Zpiboo:fix/better-timings-fixes

Conversation

@Zpiboo
Copy link
Copy Markdown
Member

@Zpiboo Zpiboo commented Mar 20, 2026

  • Fix JSON serialization
  • Fix Mark timing not showing if you ran 1t and disallowing WDWA

Zpiboo added 2 commits March 20, 2026 18:19
- Add class parameter to Serializer::serialize and Serializer::serializeAsString
- Use Component[] as an intermediate in LabelConfiguration for proper (de)serialization
@Exterminate5573 Exterminate5573 merged commit addba48 into MPKMod:master Mar 21, 2026
1 check passed
@Zpiboo Zpiboo deleted the fix/better-timings-fixes branch March 21, 2026 09:02
Zpiboo added a commit to Zpiboo/MPKMod2 that referenced this pull request Mar 27, 2026
* chore: fix typo in some strats.json ms strings

* feat(api): update Range class

- Enforce bounds order in the constructor
- Rename isAbove method to isValueAbove
- Create isValueBelow method
- Add equals method

* feat(api): provide Tuple with equals method

* refactor: move TickInput class to new util.input package

* chore(test): add junit dependency

* refactor(json): replace global jackson typing to single @JsonTypeInfo annotation above Component

* feat(input): introduce new InputVector class

* feat(input): create InputPredicate classes

These new classes aim to replace one of the current two responsibilities of TimingInput: it can represent both actual player input and a theoretical input predicate.
The next commit fixes this by making it only an actual input model.

* refactor(input): restrict TimingInput to represent concrete input

This tightens TimingInput's responsibility, which used to also be used for input predicates. The latter are now represented using the new InputPredicate* classes.

* feat(timing): make TimingEntry json-deserializable and mirrorable

* feat(timing): make Timing json-deserializable

* feat(timing): make timings mirrorable through "symmetrical" boolean

* feat(timing): use new strategy format in strats.json

* docs(timing): clarify intent of helper methods used by TimingInput::findMSButtons

* tests(timing): create unit tests for timing-related classes

(cherry picked from commit b11a863)

Better timings fixes (MPKMod#56)

* fix(timing): fix mark timing not showing if you ran 1 tick and disallowing WDWA

* fix(json): add class parameter to serialize methods

- Add class parameter to Serializer::serialize and Serializer::serializeAsString
- Use Component[] as an intermediate in LabelConfiguration for proper (de)serialization

(cherry picked from commit addba48)
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.

2 participants