[Include] Map Zones - Let's end a decade of bad practices...
#4

A smaller update:
  • The amount of areas associated with each map zone is now saved in the array, improving the performance of GetMapZoneAreaCount, which looped through all areas before.
  • New constant MAX_MAP_ZONE_AREAS, which marks the maximum amount of areas associated with a map zone. Also, non-internal constants are now all documented in the readme.
  • Updated how GetMapZoneAreaPos works and has to be used. The example in the readme has been updated. The function essentially only has to loop through zones once instead of up to MAX_MAP_ZONE_AREAS times as before.
  • Added 2D variants for the zone-finding functions. 3D variants now have aliases with 3D suffixes.
Reply


Messages In This Thread
Map Zones - Let's end a decade of bad practices... - by kristo - 02.10.2018, 16:42
Re: Map Zones - Let's end a decade of bad practices... - by kristo - 02.10.2018, 18:36
Re: Map Zones - Let's end a decade of bad practices... - by kristo - 05.10.2018, 16:16
Re: Map Zones - Let's end a decade of bad practices... - by kristo - 17.10.2018, 17:04
Re: Map Zones - Let's end a decade of bad practices... - by PT - 18.10.2018, 12:21
Re: Map Zones - Let's end a decade of bad practices... - by GameOvr - 02.11.2018, 07:30

Forum Jump:


Users browsing this thread: 1 Guest(s)