2023-12-13 00:40:16 -05:00
|
|
|
#include "Game/Map/OceanRingBloomDrawer.hpp"
|
|
|
|
|
#include "Game/Map/OceanRingDrawer.hpp"
|
|
|
|
|
#include "Game/Map/OceanRing.hpp"
|
2022-11-19 00:43:15 -05:00
|
|
|
|
|
|
|
|
OceanRingBloomDrawer::OceanRingBloomDrawer(OceanRing *pRing) : NameObj("オーシャンリング[ブルーム描画]") {
|
|
|
|
|
mRing = pRing;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void OceanRingBloomDrawer::init(const JMapInfoIter &rIter) {
|
|
|
|
|
MR::connectToScene(this, -1, -1, -1, 0x21);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void OceanRingBloomDrawer::draw() const {
|
|
|
|
|
if (!MR::isValidDraw(mRing) || !MR::isCameraInWater()) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mRing->mRingDrawer->drawBloom();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
OceanRingBloomDrawer::~OceanRingBloomDrawer() {
|
|
|
|
|
|
|
|
|
|
}
|