1
This commit is contained in:
parent
cb4307018f
commit
03714d5473
@ -152,6 +152,7 @@ void InGameVoice::Notify(Human* killer, Human* deader, const mt::InGameVoice* me
|
||||
break;
|
||||
default:
|
||||
{
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ namespace mtb
|
||||
|
||||
std::shared_ptr<a8::reflect::Class> GetClass() const;
|
||||
int event_type() const { return event_type_; };
|
||||
int moba_is_play() const { return moba_is_play_; };
|
||||
int sound_id() const { return sound_id_; };
|
||||
const std::string cond() const { return cond_; };
|
||||
const std::string notify_object() const { return notify_object_; };
|
||||
@ -19,21 +18,21 @@ namespace mtb
|
||||
int play_interval() const { return play_interval_; };
|
||||
int series_kill_interval() const { return series_kill_interval_; };
|
||||
int play_scene() const { return play_scene_; };
|
||||
int id() const { return id_; };
|
||||
|
||||
bool has_event_type() const { return __flags__.test(0);};
|
||||
bool has_moba_is_play() const { return __flags__.test(1);};
|
||||
bool has_sound_id() const { return __flags__.test(2);};
|
||||
bool has_cond() const { return __flags__.test(3);};
|
||||
bool has_notify_object() const { return __flags__.test(4);};
|
||||
bool has_notify_fields() const { return __flags__.test(5);};
|
||||
bool has_play_interval() const { return __flags__.test(6);};
|
||||
bool has_series_kill_interval() const { return __flags__.test(7);};
|
||||
bool has_play_scene() const { return __flags__.test(8);};
|
||||
bool has_sound_id() const { return __flags__.test(1);};
|
||||
bool has_cond() const { return __flags__.test(2);};
|
||||
bool has_notify_object() const { return __flags__.test(3);};
|
||||
bool has_notify_fields() const { return __flags__.test(4);};
|
||||
bool has_play_interval() const { return __flags__.test(5);};
|
||||
bool has_series_kill_interval() const { return __flags__.test(6);};
|
||||
bool has_play_scene() const { return __flags__.test(7);};
|
||||
bool has_id() const { return __flags__.test(8);};
|
||||
|
||||
protected:
|
||||
|
||||
int event_type_ = 0;
|
||||
int moba_is_play_ = 0;
|
||||
int sound_id_ = 0;
|
||||
std::string cond_;
|
||||
std::string notify_object_;
|
||||
@ -41,6 +40,7 @@ namespace mtb
|
||||
int play_interval_ = 0;
|
||||
int series_kill_interval_ = 0;
|
||||
int play_scene_ = 0;
|
||||
int id_ = 0;
|
||||
|
||||
public:
|
||||
std::bitset<9> __flags__;
|
||||
|
@ -135,14 +135,14 @@ namespace mtb
|
||||
if (!meta_class) {
|
||||
meta_class = std::make_shared<a8::reflect::Class>("InGameVoice", 9, 0);
|
||||
meta_class->SetSimpleField(0, "event_type", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, event_type_));
|
||||
meta_class->SetSimpleField(1, "moba_is_play", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, moba_is_play_));
|
||||
meta_class->SetSimpleField(2, "sound_id", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, sound_id_));
|
||||
meta_class->SetSimpleField(3, "cond", a8::reflect::ET_STRING, my_offsetof2(InGameVoice, cond_));
|
||||
meta_class->SetSimpleField(4, "notify_object", a8::reflect::ET_STRING, my_offsetof2(InGameVoice, notify_object_));
|
||||
meta_class->SetSimpleField(5, "notify_fields", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, notify_fields_));
|
||||
meta_class->SetSimpleField(6, "play_interval", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, play_interval_));
|
||||
meta_class->SetSimpleField(7, "series_kill_interval", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, series_kill_interval_));
|
||||
meta_class->SetSimpleField(8, "play_scene", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, play_scene_));
|
||||
meta_class->SetSimpleField(1, "sound_id", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, sound_id_));
|
||||
meta_class->SetSimpleField(2, "cond", a8::reflect::ET_STRING, my_offsetof2(InGameVoice, cond_));
|
||||
meta_class->SetSimpleField(3, "notify_object", a8::reflect::ET_STRING, my_offsetof2(InGameVoice, notify_object_));
|
||||
meta_class->SetSimpleField(4, "notify_fields", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, notify_fields_));
|
||||
meta_class->SetSimpleField(5, "play_interval", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, play_interval_));
|
||||
meta_class->SetSimpleField(6, "series_kill_interval", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, series_kill_interval_));
|
||||
meta_class->SetSimpleField(7, "play_scene", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, play_scene_));
|
||||
meta_class->SetSimpleField(8, "id", a8::reflect::ET_INT32, my_offsetof2(InGameVoice, id_));
|
||||
}
|
||||
return meta_class;
|
||||
}
|
||||
|
@ -68,6 +68,7 @@ message InGameVoice
|
||||
optional int32 play_interval = 7;
|
||||
optional int32 series_kill_interval = 8;
|
||||
optional int32 play_scene = 9;
|
||||
optional int32 id = 10;
|
||||
}
|
||||
|
||||
message MapArea
|
||||
|
Loading…
x
Reference in New Issue
Block a user