struct sectionData
{
unsigned int currentSectionNumber;
unsigned int currentObjNum;
unsigned int sectionNumberToGoIn;
int camFocus;
Object obj; // this is the object i want to store in the struct. how to do it?
};
// store data too struct
sectionData sectData;
// pushback container
game.sectionInfo.push_back(sectData);
// apply info
sectData.currentSectionNumber = 1;
sectData.currentObjNum = 20;
sectData.sectionNumberToGoIn = 0;
sectData.camfocus = 1;
sectData.Object = gameObject; // ?? not sure what to do here
// retrieve info
how to retrieve Object??
Any suggestion?






