I was looking on the internet how to do it, but couldn’t find anything. Anyone know how to implement this? I need create a level inside AMarket class, add AItem to this level and save it for later usage.
“Creating a level” at runtime isn’t really a thing. It sounds like you just want to save data for your game, right?
In that case, you should check out Unreal Engine’s robust and easy-to-use
Oh, and even if you want to “modify a level”, and you want to save and load it again, you won’t be able to just save the whole world in place. You’ll have to manually keep track of all of the changes in your savedata object.
Hope this helps!