JohnW63
I know this must be a beginners question, with C++, but my web surfing hasn't answered it, because most examples talk about programs with a main() not working with DLLs.. Here goes.
I want to use some conditional statements that use both tire temps and if the car is in the pits. The temps are referred to in the ExampleInternalsPlugin::UpdateTelemetry section of the Examples.cpp file and the check for being in the pits is referred to in the ExampleInternalsPlugin::UpdateScoring section of the same file. If these are separate Object instances, is there a way to pull data from each one to be able to use, or do I have to stay within the Object to use that data ?
Obviously, both of these point to structs in the header file, InternalsPlugin.hpp
Ideally, I would like to have my own Object that has pointers pointing at both scoring data and telemetry data.
My C++ instruction was almost 20 years ago, so please excuse my ignorance.
I want to use some conditional statements that use both tire temps and if the car is in the pits. The temps are referred to in the ExampleInternalsPlugin::UpdateTelemetry section of the Examples.cpp file and the check for being in the pits is referred to in the ExampleInternalsPlugin::UpdateScoring section of the same file. If these are separate Object instances, is there a way to pull data from each one to be able to use, or do I have to stay within the Object to use that data ?
Obviously, both of these point to structs in the header file, InternalsPlugin.hpp
Ideally, I would like to have my own Object that has pointers pointing at both scoring data and telemetry data.
My C++ instruction was almost 20 years ago, so please excuse my ignorance.