1
This commit is contained in:
parent
6babd2b249
commit
a5db73ab7c
@ -498,7 +498,8 @@ A8_DECLARE_ENUM(WorldObjectType_e,
|
||||
kLootType = 1,
|
||||
kBoxType = 2,
|
||||
kCarType = 3,
|
||||
kBornPointType = 4
|
||||
kBornPointType = 4,
|
||||
kMonsterType = 5,
|
||||
);
|
||||
|
||||
enum SwitchTimesType_e
|
||||
|
@ -66,6 +66,15 @@ static void LoadWorldObjects(const std::string& world_object_file,
|
||||
world_objects.push_back(obj);
|
||||
}
|
||||
}
|
||||
{
|
||||
auto thing = root.At("monster");
|
||||
for (int i = 0; i < thing->Size(); ++i) {
|
||||
auto obj = std::make_shared<mt::WorldObject>();
|
||||
obj->object_type = WorldObjectType_e::kMonsterType;
|
||||
parse_func(thing->At(i), obj);
|
||||
world_objects.push_back(obj);
|
||||
}
|
||||
}
|
||||
{
|
||||
auto thing = root.At("human");
|
||||
for (int i = 0; i < thing->Size(); ++i) {
|
||||
|
@ -3220,6 +3220,7 @@ void Room::CreateWorldObjects()
|
||||
break;
|
||||
default:
|
||||
{
|
||||
abort();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -1306,6 +1306,7 @@ message MFSettlementNew
|
||||
optional string battle_uuid = 11; //本次战斗唯一id
|
||||
optional int32 settlement_status = 12; //0: 结算中(读取个人结算数据) 1:已结算(请求小胡接口)
|
||||
optional int32 custom_battle = 13; //是否自定义房间
|
||||
optional string box_payload = 14; //请求宝箱透传数据(空则不需要请求,客户端需做容错判断改字段是否存在(小胡那边不会传这个字段))
|
||||
|
||||
optional int32 pvp_settlement_type = 101; //結算類型0:個人 1:組隊(保留)
|
||||
optional int32 pvp_settlement_color = 102; // 0:灰 1:黃
|
||||
|
Loading…
x
Reference in New Issue
Block a user