Bit of a convenience thing, really, so one can for example look up the levelinfo of the next map and check if we're traversing between maps in same/different hub, or check if the next map resets inventory and run special code for that, and so on. The only alternative would be to use a static thinker to transfer data between one WorldUnloaded event and the next WorldLoaded, but this wouldn't allow you to do stuff BEFORE the actual map transition.
If this is feasible and acceptable, I'd gladly implement it myself, as it's fairly straightforward to add with how things are currently structured (just adding an extra parameter, basically).
Pass next level to WorldUnloaded
Moderator: GZDoom Developers
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
-
-
- Posts: 17454
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Pass next level to WorldUnloaded
Sounds useful, just do the PR hahaha
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
Re: Pass next level to WorldUnloaded
Very well. I'll do this one and three other extra features in separate posts afterwards.
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
Re: Pass next level to WorldUnloaded
And as promised here's the pull request.
-
- Posts: 8192
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Pass next level to WorldUnloaded
Added by Graf.