-
Notifications
You must be signed in to change notification settings - Fork 29
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/surface #86
Feature/surface #86
Conversation
Jacob-Mango
commented
Jan 5, 2022
Tested in Expansion for getting vehicle surface information. Works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know this kind of stuff was needed but looks like it could save someone a bit of pain so alrighty ...
I would suggest you change the constructors of the Surfaces to protected so they can only be constructed once (singleton) internally. Also I would then recommend to make the class members constant to avoid someone modifying the instances?
I'll have to make it
Unfortunately, that will result in a compile error. |
I think you can do do The idea would be to store the values in static buffers which can be private to the class. Then have a static CF_Surface.Create(...) method where you accept all the values as parameters. Assign them to the buffers, then create a real If the error you got was unrelated to assigning cost variables let me know which one it was. |
You never "completed" the previous review so consider this the notification to re-review |