Forum begins after the advertisement:
-
::Hello, i was wondering if you could explain the purpose of the hashset of scene names and why we need it? I find that very unclear
::While i am not the creator of the series, sceneNames
helps to maintain a record of player progress and updates the map by showing explored areas as well as where the player is at the time of a saved game.
Although other functions can be used instead of hashset, like dictionary or list, it’s relatively simple to use for this purpose. It can also prevent duplicate names from occuring, however takes a bigger memory space because of how hashsets work.
Advertisement below: