mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
21 lines
566 B
C++
21 lines
566 B
C++
#include "Game/MapObj/CoconutTree.hpp"
|
|
#include "Game/Util.hpp"
|
|
|
|
CoconutTree::CoconutTree(const char *pName) : LiveActor(pName) {
|
|
|
|
}
|
|
|
|
CoconutTree::~CoconutTree() {
|
|
|
|
}
|
|
|
|
void CoconutTree::init(const JMapInfoIter &rIter) {
|
|
MR::initDefaultPos(this, rIter);
|
|
initModelManagerWithAnm("CoconutTree", nullptr, false);
|
|
MR::connectToSceneMapObj(this);
|
|
initHitSensor(1);
|
|
MR::addBodyMessageSensorMapObj(this);
|
|
MR::initCollisionParts(this, "CoconutTree", getSensor("body"), nullptr);
|
|
MR::setClippingTypeSphere(this, 2000.0f);
|
|
makeActorAppeared();
|
|
} |