-
Notifications
You must be signed in to change notification settings - Fork 0
Add dynamic function input-output. #33
Copy link
Copy link
Open
Labels
breakingSomething that would be a alter existing logic or syntaxSomething that would be a alter existing logic or syntaxcompilerSomething regarding the compilerSomething regarding the compilerenhancementNew feature or requestNew feature or requestruntimeSomething regarding the runtime moduleSomething regarding the runtime modulesyntaxSyntax support for a featureSyntax support for a feature
Metadata
Metadata
Assignees
Labels
breakingSomething that would be a alter existing logic or syntaxSomething that would be a alter existing logic or syntaxcompilerSomething regarding the compilerSomething regarding the compilerenhancementNew feature or requestNew feature or requestruntimeSomething regarding the runtime moduleSomething regarding the runtime modulesyntaxSyntax support for a featureSyntax support for a feature
Type
Fields
Give feedbackNo fields configured for Feature.
Is your feature request related to a problem? Please describe.
Many users of HTSL have started using special stats as function inputs and outputs. HSL should support this by converting parameters to special stats, that the function call can prepare and the function itself consume.
Describe the solution you'd like
Treat function parameters as special stats. Implement function invocation with parameters. Functions should also be able to return values, and those should also be special stats. You may want to allow tuple-like returns.
Describe alternatives you've considered
Hypixel runtime does not really allow anything else.
Additional context
Use return values with caution, as Hypixel function triggers do not guarantee to wait until function completes, so the return stat may not be correct.