feat: Allow using GameCondition
in EntityVehicleCondition
and EntityPassengerCondition
#11
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Modding/silicate#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've already found this annoying enough having to implement a
RetypedCondition
bodge, so this would be much appreciated.I'm thinking of messing with
InvertedCondition
so that it's easier to use without retyping.I'm going to make a special Either codec that allows usage of either
GameCondition
orTypedGameCondition
.Upon further investigation, this introduced unnecessary amounts of boilerplate. Instead, we're going to find alternative avenues of simplification. I believe the easiest way here would be to merged
TypedGameCondition
andGameCondition
. However, that would present further challenges with regards to Codecs, so the best compromise would be to keep the current system of retyping for the time being.Fixed in
0.4.0
usingMaybeTypedCondition
backed by anEither
codec.