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

Feature parity between Variable and VariableInstancers, maybe even VariableReferences #384

Open
burakomer opened this issue Jan 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@burakomer
Copy link

Is your feature request related to a problem? Please describe.
I use Instancers a lot in my projects, for example IntVariableInstancer. I'd like to use Add, Subtract etc. methods from it as well, but they're only defined in IntVariable thus you can't call them from UnityEvents with the instancer.

Describe the solution you'd like
Simple delegation of implementation-specific methods of Variable classes in corresponding VariableInstancers.

Describe alternatives you've considered
I can't think of any. Maybe it can be implemented with interfaces for consistency-sake. Something like INumberOperations that has the methods like Add, Subtract, Divide etc, then IntVariable and IntVariableInstancer, maybe even IntReference could implement it, directly modify the value or delegate when can.

@burakomer burakomer added the enhancement New feature or request label Jan 12, 2023
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

No branches or pull requests

1 participant