补全Explosion

This commit is contained in:
Qiuzhizhe 2023-03-17 22:30:48 -07:00
parent 1d9372749e
commit 68fe280544

View File

@ -6,10 +6,24 @@
#define BEFORE_EXTRA
#undef BEFORE_EXTRA
class Actor;
class BlockSource;
class Explosion {
#define AFTER_EXTRA
public:
Vec3 mPos;
float mRadius;
std::unordered_set<BlockPos> mToBlow;
bool mFire;
bool mBreaking;
bool mAllowUnderwater;
Actor *mSource;
BlockSource *mRegion;
float mMaxResistance;
std::optional<bool> mInWaterOverride;
char mRandom[64];
#undef AFTER_EXTRA
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_EXPLOSION