Proposal to add overload operators (e.g. Vector3 / Vector4) #104
Replies: 1 comment 4 replies
-
Hello, Regarding native and scripted functions, I understand both perspectives. I believe the choice between them depends on the implementer (which might be you in this case), as scripted functions require less effort while creating them in C++ entails more work. In my view, the results should consistent with the game's functions. Therefore, utilizing natives would be the safest approach and my recommended approach.
We can do it as we do for entEntityID or even TweakDBID. @psiberx @jackhumbert @jac3km4 what do you guys think? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm opening this to discuss more widely about this PR.
As @WSSDude said, it shall be better to provide such overload operators right into this SDK, and simply bind them in CET.
There is a concern about performance and how native global functions already implement such arithmetic operations. There is a tiny benchmark I made (see PR) to provide some insights about what is going on. But it probably needs more investigation to be sure.
I'm willing to contribute here, but I'm not aware on how I could write overload operators without messing with generated files.
Here are some points which I guess needs to be clarified:
Beta Was this translation helpful? Give feedback.
All reactions