mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-05-10 01:09:26 +00:00
27 lines
661 B
C++
27 lines
661 B
C++
#include "Layout/MapTerrainLayout.h"
|
|
|
|
#include "Library/Layout/LayoutActor.h"
|
|
#include "Library/Layout/LayoutActorUtil.h"
|
|
|
|
#include "System/MapDataHolder.h"
|
|
|
|
MapTerrainLayout::MapTerrainLayout(const char* name) : al::LayoutActor(name) {}
|
|
|
|
bool MapTerrainLayout::tryChangePrintWorld(s32 worldId) {
|
|
if (worldId < 0)
|
|
return false;
|
|
|
|
mMapData = rs::findMapData(this, worldId);
|
|
if (!mMapData)
|
|
return false;
|
|
|
|
al::setPaneTexture(this, "PicMap00", mMapData->mTexture2dMap);
|
|
al::setPaneLocalScale(this, "PicMap00", sead::Vector2f(256.0f, 256.0f));
|
|
|
|
return true;
|
|
}
|
|
|
|
f32 MapTerrainLayout::getPaneSize() const {
|
|
return 2048.0f;
|
|
}
|