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

Implement CVariant functions #569

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

zonical
Copy link
Collaborator

@zonical zonical commented Sep 1, 2024

Very work in progress - working on it in small bits at a time

This PR aims to implement functions to CVariant which accesses data from variant_t on the C++ side. Useful for functions that hook into the Entity IO system. Unsure if a Set function is needed - but it can probably be done.

@zonical
Copy link
Collaborator Author

zonical commented Sep 1, 2024

I've also added a function to get a string from a CUtlSymbolLarge class for plugin authors that wish to hook into AcceptInput without dealing with memory shenanigans on the C# side. Does not appear to have an easy way to modify it (from my little knowledge of hl2sdk) so it will remain as read-only.

@Yarukon
Copy link
Contributor

Yarukon commented Sep 16, 2024

you can just use fieldtype_t to replace VariantFieldTypes, fieldtype_t is generated from the schema

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.

2 participants