1
This commit is contained in:
parent
2b30c000e0
commit
7177667e23
@ -88,6 +88,13 @@ namespace mt
|
|||||||
//skill_pb->set_skill_cd(float_cd);
|
//skill_pb->set_skill_cd(float_cd);
|
||||||
//skill_cd_ = _float_cd;
|
//skill_cd_ = _float_cd;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
std::vector<std::string> strings;
|
||||||
|
a8::Split(effect_list(), strings, '|');
|
||||||
|
for (auto& str : strings) {
|
||||||
|
_effect_list.push_back(a8::XValue(str));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,8 @@ namespace mt
|
|||||||
int _int_cd = 0;
|
int _int_cd = 0;
|
||||||
float _float_cd = 0;
|
float _float_cd = 0;
|
||||||
|
|
||||||
|
std::vector<int> _effect_list;
|
||||||
|
|
||||||
void Init1();
|
void Init1();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -29,6 +29,7 @@ namespace mtb
|
|||||||
float buff_time() const { return buff_time_; };
|
float buff_time() const { return buff_time_; };
|
||||||
const std::string probability() const { return probability_; };
|
const std::string probability() const { return probability_; };
|
||||||
int explosion_effect() const { return explosion_effect_; };
|
int explosion_effect() const { return explosion_effect_; };
|
||||||
|
const std::string effect_list() const { return effect_list_; };
|
||||||
|
|
||||||
bool has_skill_id() const { return __flags__.test(0);};
|
bool has_skill_id() const { return __flags__.test(0);};
|
||||||
bool has_skill_type() const { return __flags__.test(1);};
|
bool has_skill_type() const { return __flags__.test(1);};
|
||||||
@ -49,6 +50,7 @@ namespace mtb
|
|||||||
bool has_buff_time() const { return __flags__.test(16);};
|
bool has_buff_time() const { return __flags__.test(16);};
|
||||||
bool has_probability() const { return __flags__.test(17);};
|
bool has_probability() const { return __flags__.test(17);};
|
||||||
bool has_explosion_effect() const { return __flags__.test(18);};
|
bool has_explosion_effect() const { return __flags__.test(18);};
|
||||||
|
bool has_effect_list() const { return __flags__.test(19);};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -71,9 +73,10 @@ namespace mtb
|
|||||||
float buff_time_ = 0.0f;
|
float buff_time_ = 0.0f;
|
||||||
std::string probability_;
|
std::string probability_;
|
||||||
int explosion_effect_ = 0;
|
int explosion_effect_ = 0;
|
||||||
|
std::string effect_list_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
std::bitset<19> __flags__;
|
std::bitset<20> __flags__;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -398,7 +398,7 @@ namespace mtb
|
|||||||
{
|
{
|
||||||
a8::reflect::Class* meta_class = nullptr;
|
a8::reflect::Class* meta_class = nullptr;
|
||||||
if (!meta_class) {
|
if (!meta_class) {
|
||||||
meta_class = new a8::reflect::Class("SkillNumber", 19, 0);
|
meta_class = new a8::reflect::Class("SkillNumber", 20, 0);
|
||||||
meta_class->SetSimpleField(0, "skill_id", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, skill_id_));
|
meta_class->SetSimpleField(0, "skill_id", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, skill_id_));
|
||||||
meta_class->SetSimpleField(1, "skill_type", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, skill_type_));
|
meta_class->SetSimpleField(1, "skill_type", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, skill_type_));
|
||||||
meta_class->SetSimpleField(2, "number", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, number_));
|
meta_class->SetSimpleField(2, "number", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, number_));
|
||||||
@ -418,6 +418,7 @@ namespace mtb
|
|||||||
meta_class->SetSimpleField(16, "buff_time", a8::reflect::ET_FLOAT, my_offsetof2(SkillNumber, buff_time_));
|
meta_class->SetSimpleField(16, "buff_time", a8::reflect::ET_FLOAT, my_offsetof2(SkillNumber, buff_time_));
|
||||||
meta_class->SetSimpleField(17, "probability", a8::reflect::ET_STRING, my_offsetof2(SkillNumber, probability_));
|
meta_class->SetSimpleField(17, "probability", a8::reflect::ET_STRING, my_offsetof2(SkillNumber, probability_));
|
||||||
meta_class->SetSimpleField(18, "explosion_effect", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, explosion_effect_));
|
meta_class->SetSimpleField(18, "explosion_effect", a8::reflect::ET_INT32, my_offsetof2(SkillNumber, explosion_effect_));
|
||||||
|
meta_class->SetSimpleField(19, "effect_list", a8::reflect::ET_STRING, my_offsetof2(SkillNumber, effect_list_));
|
||||||
}
|
}
|
||||||
return meta_class;
|
return meta_class;
|
||||||
}
|
}
|
||||||
|
@ -330,6 +330,7 @@ message SkillNumber
|
|||||||
optional float buff_time = 17;
|
optional float buff_time = 17;
|
||||||
optional string probability = 18;
|
optional string probability = 18;
|
||||||
optional int32 explosion_effect = 19;
|
optional int32 explosion_effect = 19;
|
||||||
|
optional string effect_list = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NpcStandard
|
message NpcStandard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user