aozhiwei 87fa593a36 1
2022-12-26 16:34:48 +08:00

41 lines
968 B
C++

#pragma once
#include <bitset>
namespace mtb
{
class AirRaid
{
public:
a8::reflect::Class* GetClass() const;
int id() const { return id_; };
int time() const { return time_; };
int appear_time() const { return appear_time_; };
const std::string bomb_id() const { return bomb_id_; };
const std::string raid_wave() const { return raid_wave_; };
float rad() const { return rad_; };
bool has_id() const { return __flags__.test(0);};
bool has_time() const { return __flags__.test(1);};
bool has_appear_time() const { return __flags__.test(2);};
bool has_bomb_id() const { return __flags__.test(3);};
bool has_raid_wave() const { return __flags__.test(4);};
bool has_rad() const { return __flags__.test(5);};
protected:
int id_ = 0;
int time_ = 0;
int appear_time_ = 0;
std::string bomb_id_;
std::string raid_wave_;
float rad_ = 0.0f;
public:
std::bitset<6> __flags__;
};
};