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 support for GMod(source) types #7

Open
moriokii opened this issue Jul 5, 2024 · 3 comments
Open

Add support for GMod(source) types #7

moriokii opened this issue Jul 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@moriokii
Copy link

moriokii commented Jul 5, 2024

Please add support for angle, vector, etc. And make a small note in the README which types are supported. Thanks.
In util.TableToJSON it looks like this:
Angle:
{ "Angle":"{-0.0795 176.6814 -0.0385}" }
Vector:
{ "Vector": "[1 2 3]" }
Color:
{ "Color": { "r": 1.0, "b": 3.0, "a": 255.0, "g":2.0 } }

@moriokii
Copy link
Author

moriokii commented Jul 5, 2024

Or encode all custom types with binary :)

@Fedox-die-Ente Fedox-die-Ente added the enhancement New feature or request label Jul 5, 2024
@moriokii
Copy link
Author

moriokii commented Jul 7, 2024

I'm not experienced developer, but I tried to implement serialization of Angle, Vector types in this commit: moriokii/gmsv_mongo@9a50784
I hope this will help in the future.

@Fedox-die-Ente
Copy link
Owner

I'm not experienced developer, but I tried to implement serialization of Angle, Vector types in this commit: moriokii/gmsv_mongo@9a50784
I hope this will help in the future.

This will help us, thanks.

We are still trying to automate it more so that we don't have to enter all the types manually

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

2 participants