This commit is contained in:
aozhiwei 2024-01-23 14:31:11 +08:00
parent 6babd2b249
commit a5db73ab7c
4 changed files with 13 additions and 1 deletions

View File

@ -498,7 +498,8 @@ A8_DECLARE_ENUM(WorldObjectType_e,
kLootType = 1, kLootType = 1,
kBoxType = 2, kBoxType = 2,
kCarType = 3, kCarType = 3,
kBornPointType = 4 kBornPointType = 4,
kMonsterType = 5,
); );
enum SwitchTimesType_e enum SwitchTimesType_e

View File

@ -66,6 +66,15 @@ static void LoadWorldObjects(const std::string& world_object_file,
world_objects.push_back(obj); 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"); auto thing = root.At("human");
for (int i = 0; i < thing->Size(); ++i) { for (int i = 0; i < thing->Size(); ++i) {

View File

@ -3220,6 +3220,7 @@ void Room::CreateWorldObjects()
break; break;
default: default:
{ {
abort();
} }
break; break;
} }

View File

@ -1306,6 +1306,7 @@ message MFSettlementNew
optional string battle_uuid = 11; //id optional string battle_uuid = 11; //id
optional int32 settlement_status = 12; //0: () 1() optional int32 settlement_status = 12; //0: () 1()
optional int32 custom_battle = 13; // optional int32 custom_battle = 13; //
optional string box_payload = 14; //(,())
optional int32 pvp_settlement_type = 101; //0: 1: optional int32 pvp_settlement_type = 101; //0: 1:
optional int32 pvp_settlement_color = 102; // 0 1 optional int32 pvp_settlement_color = 102; // 0 1