Closed crosire closed 9 years ago
Well, that won't be possible that way I guess.
Every Zone is again parted into little zones (I'm calling them part-zones), little quote from popzone.ipl:
Z_GOLF1, -1414.06, -38.121, 0.0, -1108.57, 225.116, 1250.0, Golf, 0 Z_GOLF3, -1108.57, -38.121, 0.0, -1035.49, 82.4809, 1250.1, Golf, 0
Calling _GET_ZONE_BY_NAME
with Z_GOLF1
will give you the id 2, but Z_GOLF3
will give you the id 3. Maybe I'm missing something, but AFAIK we only can relate part-zones with zones by providing a dictionary or something.
Zone should be changed to an enum in camelcase convention instead of using strings. This would then remove the need for ZoneID too. There are several natives which work with integers to identify zones (like GET_ZONE_AT_COORDS), so this is the more obvious way to do it.
Created the enum already, but I yet need to find all the values for it. _GET_ZONE_BY_NAME might help for that matter, but I don't know which name to pass to it.