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

Add KeyValueInt to CBaseEntity #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mikusch
Copy link
Member

@Mikusch Mikusch commented Feb 12, 2025

No description provided.

Copy link
Collaborator

@KitRifty KitRifty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I have no issues with this as-is, but I'd like to note that in #30, @Kenzzer preferred these to be implemented as natives to reduce transitions between C++ and SP. Unless you'd be willing to do it now, the native implementation could be done on a separate PR while this can be taken in as a temporary substitute, but I want to see his opinion on this first.

@Kenzzer
Copy link
Collaborator

Kenzzer commented Feb 12, 2025

I'm okay with taking this in as-is, those functions are meant to be called only on entity creation so it's okay we can always change the definition later (don't forget to product version bump), but yes I'd prefer a C++ implem just for performance.

However for collisionchanged/etc (outside this PR's scope) my stance remains the same, if ever added as natives they must be C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants