1
This commit is contained in:
parent
0518a66b6b
commit
356534153c
@ -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;
|
||||||
|
@ -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()
|
||||||
|
@ -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();
|
||||||
};
|
};
|
||||||
|
@ -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; //库存槽位
|
||||||
|
Loading…
x
Reference in New Issue
Block a user