What I have so far is a class that holds a vector<Psystem*> of all the different particle systems that can be used.
It also has a vector<cActiveParticleData> when a Unit fires it's weapon it can add to this list.(Renders and processed list)
This is where my problem is.
Should I give the unit a index to the element in vector<cActiveParticleData> and let the unit update this data(no smart ptr needed in this case).
but the particle may end and then the particle system will remove it from the list needs to tell the unit about it.???
should cActiveParticleData have a smart pointer to the unit and let the particle manager use this pointer to get the
position data for the emitter.(unit may die before it gets here but)
none of the above;
I'm asking because I have not yet used any smart pointers.
maybe I'm just making a excuse to use them lol.
I looked into