|
@@ -19,8 +19,8 @@ class Info_Map extends Object_ext {
|
|
function __construct($arg = null) {
|
|
function __construct($arg = null) {
|
|
if (null === $arg) {
|
|
if (null === $arg) {
|
|
// 直接初始化8个大陆的基本数据
|
|
// 直接初始化8个大陆的基本数据
|
|
|
|
+ $this->mainlands = ObjectInit();
|
|
foreach (GameConfig::gate_mainland() as $id => $land) {
|
|
foreach (GameConfig::gate_mainland() as $id => $land) {
|
|
- $this->mainlands = ObjectInit();
|
|
|
|
$ins = new Ins_Mainland();
|
|
$ins = new Ins_Mainland();
|
|
$ins->landId = $id;
|
|
$ins->landId = $id;
|
|
if (1 == $id) { # 第一个大陆, 直接开启第一个区域
|
|
if (1 == $id) { # 第一个大陆, 直接开启第一个区域
|
|
@@ -31,10 +31,10 @@ class Info_Map extends Object_ext {
|
|
$zonecfg = GameConfig::gate_zone_getItem($zoneid);
|
|
$zonecfg = GameConfig::gate_zone_getItem($zoneid);
|
|
my_Assert($zonecfg, ErrCode::err_const_no);
|
|
my_Assert($zonecfg, ErrCode::err_const_no);
|
|
$gateIds = explode(',', $zonecfg->contains);
|
|
$gateIds = explode(',', $zonecfg->contains);
|
|
- $zone->highest = $gateIds[0];
|
|
|
|
|
|
+ $zone->gates[] = $gateIds[0];
|
|
$ins->normal->$zoneid = $zone;
|
|
$ins->normal->$zoneid = $zone;
|
|
}
|
|
}
|
|
- $this->$id = $ins;
|
|
|
|
|
|
+ $this->mainlands->$id = $ins;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
parent::__construct($arg);
|
|
parent::__construct($arg);
|