This commit is contained in:
aozhiwei 2021-03-04 14:45:27 +08:00
parent 0518a66b6b
commit 356534153c
4 changed files with 13 additions and 0 deletions

View File

@ -4,11 +4,17 @@
#include "cs_proto.pb.h" #include "cs_proto.pb.h"
namespace MetaData
{
struct Equip;
}
class Human; class Human;
class Room; class Room;
class Car : public MoveableEntity class Car : public MoveableEntity
{ {
public: public:
MetaData::Equip* meta = nullptr;
Car(); Car();
virtual ~Car() override; virtual ~Car() override;

View File

@ -136,6 +136,10 @@ namespace MetaData
int_param1 = a8::XValue(i->param1()); int_param1 = a8::XValue(i->param1());
float_param1 = a8::XValue(i->param1()).GetDouble(); float_param1 = a8::XValue(i->param1()).GetDouble();
} }
{
int_param2 = a8::XValue(i->param2());
float_param2 = a8::XValue(i->param2()).GetDouble();
}
} }
void EquipUpgrade::Init() void EquipUpgrade::Init()

View File

@ -61,6 +61,8 @@ namespace MetaData
std::array<int, IS_END> volume = {}; std::array<int, IS_END> volume = {};
int int_param1 = 0; int int_param1 = 0;
float float_param1 = 0; float float_param1 = 0;
int int_param2 = 0;
float float_param2 = 0;
void Init(); void Init();
}; };

View File

@ -100,6 +100,7 @@ message Equip
optional int32 drop_id = 40; optional int32 drop_id = 40;
optional int32 explosion_effect = 42; optional int32 explosion_effect = 42;
optional string param1 = 43; optional string param1 = 43;
optional string param2 = 44;
optional int32 reloadtype = 46; optional int32 reloadtype = 46;
optional string inventory_slot = 31; // optional string inventory_slot = 31; //