|
Atrinik Server 2.5
|
#include <map.h>
Data Fields | |
| struct regiondef * | next |
| struct regiondef * | parent |
| char * | name |
| char * | parent_name |
| char * | longname |
| char * | msg |
| char * | jailmap |
| char * | map_first |
| char * | map_bg |
| sint16 | jailx |
| sint16 | jaily |
This is a game region.
Each map is in a given region of the game world and links to a region definition.
| char* regiondef::jailmap |
| char* regiondef::longname |
| char* regiondef::map_bg |
| char* regiondef::map_first |
| char* regiondef::msg |
| char* regiondef::name |
| struct regiondef* regiondef::next |
| struct regiondef* regiondef::parent |
| char* regiondef::parent_name |
So that parent and child regions can be defined in any order, we keep hold of the parent_name during initialization, and the children get assigned to their parents later. (before runtime on the server though) nothing outside the init code should ever use this value.
1.7.4