Hogwarts Legacy did a great job translating the world of Harry Potter, that fans knew from the books and films, over to an open-world video game format. Though it was obviously set considerably earlier than Harry's school years, it featured so much in the way of recognisable features that the whole thing felt like fan service with an original story (in a good way).
A big part of that is obviously the recognisable features of the castle itself and the surrounding areas like Hogsmeade, but more than that, it's about heading off to classes and learning the same magic that saw Harry, Hermione and Ron manage to come out on top against Voldemort.
That meant that the developers did include plenty of the casts that we know and love, including Protego to keep us safe and Alohamora to gain entry i