1
This commit is contained in:
parent
5b17e9bb9b
commit
5514453ffa
@ -1,5 +1,5 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mtb/BattleBasicAttribute.h"
|
||||
#include "mt/BattleBasicAttribute.h"
|
||||
|
||||
IMPL_TABLE(mt::BattleBasicAttribute)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mtb/BattleLevelAttribute.h"
|
||||
#include "mt/BattleLevelAttribute.h"
|
||||
|
||||
IMPL_TABLE(mt::BattleLevelAttribute)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mtb/BattleRandAttribute.h"
|
||||
#include "mt/BattleRandAttribute.h"
|
||||
|
||||
IMPL_TABLE(mt::BattleRandAttribute)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mtb/BattleWeaponAttribute.h"
|
||||
#include "mt/BattleWeaponAttribute.h"
|
||||
|
||||
IMPL_TABLE(mt::BattleWeaponAttribute)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mtb/Condition.h"
|
||||
#include "mt/Condition.h"
|
||||
|
||||
IMPL_TABLE(mt::Condition)
|
||||
|
@ -11,7 +11,6 @@ namespace mtb
|
||||
|
||||
std::shared_ptr<a8::reflect::Class> GetClass() const;
|
||||
int id() const { return id_; };
|
||||
const std::string template() const { return template_; };
|
||||
const std::string param1() const { return param1_; };
|
||||
const std::string param2() const { return param2_; };
|
||||
const std::string param3() const { return param3_; };
|
||||
@ -19,17 +18,15 @@ namespace mtb
|
||||
const std::string param5() const { return param5_; };
|
||||
|
||||
bool has_id() const { return __flags__.test(0);};
|
||||
bool has_template() const { return __flags__.test(1);};
|
||||
bool has_param1() const { return __flags__.test(2);};
|
||||
bool has_param2() const { return __flags__.test(3);};
|
||||
bool has_param3() const { return __flags__.test(4);};
|
||||
bool has_param4() const { return __flags__.test(5);};
|
||||
bool has_param5() const { return __flags__.test(6);};
|
||||
bool has_param1() const { return __flags__.test(1);};
|
||||
bool has_param2() const { return __flags__.test(2);};
|
||||
bool has_param3() const { return __flags__.test(3);};
|
||||
bool has_param4() const { return __flags__.test(4);};
|
||||
bool has_param5() const { return __flags__.test(5);};
|
||||
|
||||
protected:
|
||||
|
||||
int id_ = 0;
|
||||
std::string template_;
|
||||
std::string param1_;
|
||||
std::string param2_;
|
||||
std::string param3_;
|
||||
@ -37,7 +34,7 @@ namespace mtb
|
||||
std::string param5_;
|
||||
|
||||
public:
|
||||
std::bitset<7> __flags__;
|
||||
std::bitset<6> __flags__;
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -995,14 +995,13 @@ namespace mtb
|
||||
{
|
||||
std::shared_ptr<a8::reflect::Class> meta_class = nullptr;
|
||||
if (!meta_class) {
|
||||
meta_class = std::make_shared<a8::reflect::Class>("Condition", 7, 0);
|
||||
meta_class = std::make_shared<a8::reflect::Class>("Condition", 6, 0);
|
||||
meta_class->SetSimpleField(0, "id", a8::reflect::ET_INT32, my_offsetof2(Condition, id_));
|
||||
meta_class->SetSimpleField(1, "template", a8::reflect::ET_STRING, my_offsetof2(Condition, template_));
|
||||
meta_class->SetSimpleField(2, "param1", a8::reflect::ET_STRING, my_offsetof2(Condition, param1_));
|
||||
meta_class->SetSimpleField(3, "param2", a8::reflect::ET_STRING, my_offsetof2(Condition, param2_));
|
||||
meta_class->SetSimpleField(4, "param3", a8::reflect::ET_STRING, my_offsetof2(Condition, param3_));
|
||||
meta_class->SetSimpleField(5, "param4", a8::reflect::ET_STRING, my_offsetof2(Condition, param4_));
|
||||
meta_class->SetSimpleField(6, "param5", a8::reflect::ET_STRING, my_offsetof2(Condition, param5_));
|
||||
meta_class->SetSimpleField(1, "param1", a8::reflect::ET_STRING, my_offsetof2(Condition, param1_));
|
||||
meta_class->SetSimpleField(2, "param2", a8::reflect::ET_STRING, my_offsetof2(Condition, param2_));
|
||||
meta_class->SetSimpleField(3, "param3", a8::reflect::ET_STRING, my_offsetof2(Condition, param3_));
|
||||
meta_class->SetSimpleField(4, "param4", a8::reflect::ET_STRING, my_offsetof2(Condition, param4_));
|
||||
meta_class->SetSimpleField(5, "param5", a8::reflect::ET_STRING, my_offsetof2(Condition, param5_));
|
||||
}
|
||||
return meta_class;
|
||||
}
|
||||
|
@ -737,7 +737,7 @@ message BattleUnit
|
||||
message Condition
|
||||
{
|
||||
optional int32 id = 1;
|
||||
optional string template = 2;
|
||||
//optional string template = 2;
|
||||
optional string param1 = 3;
|
||||
optional string param2 = 4;
|
||||
optional string param3 = 5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user