GateId) == 1; } /** * @return /sm_gate 模板数据 */ public function mo() { return GameConfig::gate_getItem($this->GateId); } /** * 从gateId中提取关卡类型 * @param type $gateId * @return int 1 主线剧情, 2 主线挑战, 9 爬塔挑战 */ public static function GateTypeFromId($gateId) { return Ints::Slice($gateId, 0, 1); } /** * 从gateId中提取关卡地图资源类型(前端用) * @param type $gateId 1 无限地图 2 上下地图 3 有限地图 * @return int 0..999 */ public static function GateMapRes($gateId) { return Ints::Slice($gateId, 1, 4); } /** * 从gateId中提取关卡难度(挑战关卡分1,2,3) * @param type $gateId * @return int */ public static function GateDifficultyFromId($gateId) { return Ints::Slice($gateId, 5, 1); } /** * 关卡序号(最大999) * @param type $gateId * @return int */ public static function gateNum($gateId) { return Ints::Slice($gateId, 6, 3); } }