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

JSON Value Providers & Operators #76

Merged
merged 21 commits into from Mar 1, 2022
Merged

JSON Value Providers & Operators #76

merged 21 commits into from Mar 1, 2022

Conversation

WolfyScript
Copy link
Owner

Implemented JSON utilities that allows for more complex and customizable way of providing values in JSON files.
Additionally, the Operators allow for boolean evaluations or conditioned value providers.

Value Providers

There are 3 types of provider types. These are Integer, Float, and String.
Each of those types has different providers:

  • const – provides a constant value.
  • var – provides a variable from the available context.
  • papi – provides a value from PlaceholderAPI

Operators

Operators provide a way evaluate values.

BoolOperator

They evaluate to a boolean value.

Logical Operator

They are the usual and, or, not operators, that take one or two BoolOperators (Which allows for more complex chaining) and produce a new boolean output.

Comparison Operator

Those operators always take two ValueProviders of the same type and then evaluates into a boolean value.
They are ==, !=, >, <, =>, =<.

@WolfyScript WolfyScript self-assigned this Feb 28, 2022
@WolfyScript WolfyScript added the enhancement New feature or request label Feb 28, 2022
@WolfyScript WolfyScript merged commit e075fbe into master Mar 1, 2022
@WolfyScript WolfyScript deleted the value_providers branch March 5, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant