Keeping inventory items and other data between levels

I thought about this a few times. The identifier is a good thing, like a unique ID. You would save the ID and the state if the monster.
You could have things in your level that aren’t destroyed but used, so i would try to give each actor a State (an ENUM for example)
which tells you if it is destroyed, used or available. Then you save the ID and the State and later on iterate through them.