I have a very simple game where items are added to rooms in the following manner:
basement.add(box)
box is an Item that was declared earlier.
I've been looking around for a way to be able to have the initial items stored in a file. For example, if I had this in the text file:
basement,box
basement,lamp
What would be the best way to translate this to
basement.add(box);
basement.add(lamp);
When the program runs?
Any help is appreciated. Thanks.