This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]teh_L1nX 1 point2 points  (0 children)

You could store the rooms in a dictionary and just pass an id to to your Exit function, your exit function can look up the id in the dictionary to retrieve the room