SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
NamePosHolder.cpp
1#include "Game/Map/NamePosHolder.hpp"
2#include "Game/Scene/SceneObjHolder.hpp"
3#include "Game/Util/SceneUtil.hpp"
4
5NamePosHolder::NamePosHolder() : NameObj("位置テーブル保持") {
6 mPosNum = 0;
7 mInfos = 0;
8 mPosNum = MR::getGeneralPosNum();
9 mInfos = new NamePosInfo[mPosNum];
10
11 for (s32 i = 0; i < mPosNum; i++) {
12 NamePosInfo* curInf = &mInfos[i];
13 curInf->mLinkInfo = 0;
14 curInf->_20 = 0;
15 MR::getGeneralPosData(&curInf->mName, &curInf->mPosition, &curInf->mRotation, &curInf->mLinkInfo, i);
16 }
17}
18
19NamePosInfo::NamePosInfo() {
20
21}
22
23namespace MR {
24 NamePosHolder* getNamePosHolder() {
25 return reinterpret_cast<NamePosHolder*>(MR::getSceneObjHolder()->getObj(SceneObj_NamePosHolder));
26 }
27};
28
29NamePosHolder::~NamePosHolder() {
30
31}
The most basic form of an object.
Definition NameObj.hpp:11
Class that contains the array of NamePosInfo instances.
Class that contains the NamePos attributes. NamePos defines the spawn location of other actors (ie Po...
JMapLinkInfo * mLinkInfo
The information to link this NamePos to other objects.
TVec3f mRotation
The rotation of the NamePos.
const char * mName
The name of the NamePos.
TVec3f mPosition
The position of the NamePos.