Dave 馃捑 Powerhoof @dave.powerhoof.com 路 Dec 19

Adventure games use a lot of one-off enums for storing puzzle state. So for PowerQuest I made a shortcut for scripting with these, using some fancy c# reflection. Cleans up code like this- if ( Globals.m_bucket == eBucket.HoleRepaired ) Globals.m_bucket = eBucket.Filled;

29 likes 3 replies

?

Replies

@icelandichitman.bsky.social 路 Dec 20

as long as you don't want to port to a console, great solution. If you want port to consoles, revert now ;)

Nolram 路 Dec 19

Reflection is great but will make your life a headache once IL2CPP or NativeAOT get involved :)

Artem Vodoriz 馃嚭馃嚘馃幃馃帹 路 Dec 19

I love writing scripts in PowerQuest. Thank you so much. 馃敟馃敟馃敟