Saving structures data?

I know how to make it work I just not sure how to make the game save all of those things