Dungeon Generator  1.6.6
Procedural 3D dungeon generator plugin for Unreal Engine 5. Easy generation of levels, mini-maps and missions.
UDungeonMiniMapTextureLayer Class Reference

#include <DungeonMiniMapTextureLayer.h>

Inheritance diagram for UDungeonMiniMapTextureLayer:

Public Member Functions

 UDungeonMiniMapTextureLayer (const FObjectInitializer &initializer)
 
virtual ~UDungeonMiniMapTextureLayer () override=default
 
uint32_t GetTextureSideLength () const noexcept
 
FVector2D GetTextureSize () const noexcept
 
int32 GetFloorHeight () const noexcept
 
UDungeonMiniMapTextureGetByFloor (const uint8 floor) const noexcept
 
UDungeonMiniMapTextureGetByHeight (const float height) const noexcept
 
UDungeonMiniMapTextureGetTextureByFloor (const uint8 floor) const noexcept
 
UDungeonMiniMapTextureGetTextureByHeight (const float height) const noexcept
 
UDungeonMiniMapMaskTextureGetMaskTextureByFloor (const uint8 floor) const noexcept
 
UDungeonMiniMapMaskTextureGetMaskTextureByHeight (const float height) const noexcept
 
void GetTexturesByFloor (UDungeonMiniMapTexture *&texture, UDungeonMiniMapMaskTexture *&maskTexture, const uint8 floor) const noexcept
 
void GetTexturesByHeight (UDungeonMiniMapTexture *&texture, UDungeonMiniMapMaskTexture *&maskTexture, const float height) const noexcept
 
FVector2D ToRelative (const FVector &location) const
 
FVector2D ToRelativeWithScale (const FVector &location, const float scale) const
 
FVector2D ToRelativeAndFloor (uint8 &floor, const FVector &location) const
 
FVector2D ToNormalize (const FVector &location) const
 
bool CalculateMiniMapScale (FVector2D &miniMapScale, const FVector2D &viewPort) const noexcept
 
bool CalculateMiniMapTranslationAndPivot (FVector2D &miniMapTranslation, FVector2D &miniMapPivot, const FVector &playerWorldLocation, const FVector2D &viewPort) const noexcept
 
bool TransformWorldToRadar (FVector2D &radarLocation, const FVector &playerWorldLocation, const float cameraAngle, const FVector2D &viewPort, const FVector &actorWorldLocation) const noexcept
 
bool TransformWorldToRadarWithLayer (FVector2D &radarLocation, const FVector &playerWorldLocation, const float cameraAngle, const FVector2D &viewPort, const FVector &actorWorldLocation) const noexcept
 
void DrawCircle (const FVector &worldLocation, const float worldRadius)
 
void DrawRectangle (const FBox &bounds)
 
void CopyTextureMaskWithResize (const UDungeonMiniMapTextureLayer *sourceTextureLayer)
 

Protected Attributes

float GeneratedScale = 1.f
 

Friends

class ADungeonGenerateActor
 
class FDungeonGenerateEditorModule
 

Detailed Description

Mini-map texture layer ミニマップテクスチャレイヤー

Constructor & Destructor Documentation

◆ UDungeonMiniMapTextureLayer()

UDungeonMiniMapTextureLayer::UDungeonMiniMapTextureLayer ( const FObjectInitializer &  initializer)
inlineexplicit

constructor

◆ ~UDungeonMiniMapTextureLayer()

virtual UDungeonMiniMapTextureLayer::~UDungeonMiniMapTextureLayer ( )
overridevirtualdefault

destructor

Member Function Documentation

◆ GetByFloor()

UDungeonMiniMapTexture * UDungeonMiniMapTextureLayer::GetByFloor ( const uint8  floor) const
noexcept

Get DungeonMiniMapTexture from level

◆ GetByHeight()

UDungeonMiniMapTexture * UDungeonMiniMapTextureLayer::GetByHeight ( const float  height) const
noexcept

Get DungeonMiniMapTexture from height

◆ GetFloorHeight()

int32 UDungeonMiniMapTextureLayer::GetFloorHeight ( ) const
inlinenoexcept

Get the total number of levels

◆ GetMaskTextureByFloor()

UDungeonMiniMapMaskTexture * UDungeonMiniMapTextureLayer::GetMaskTextureByFloor ( const uint8  floor) const
noexcept

◆ GetMaskTextureByHeight()

UDungeonMiniMapMaskTexture * UDungeonMiniMapTextureLayer::GetMaskTextureByHeight ( const float  height) const
noexcept

Get DungeonMiniMapMaskTexture from height

◆ GetTextureByFloor()

UDungeonMiniMapTexture * UDungeonMiniMapTextureLayer::GetTextureByFloor ( const uint8  floor) const
noexcept

Get DungeonMiniMapTexture from level

◆ GetTextureByHeight()

UDungeonMiniMapTexture * UDungeonMiniMapTextureLayer::GetTextureByHeight ( const float  height) const
noexcept

Get DungeonMiniMapTexture from height

◆ GetTexturesByFloor()

void UDungeonMiniMapTextureLayer::GetTexturesByFloor ( UDungeonMiniMapTexture *&  texture,
UDungeonMiniMapMaskTexture *&  maskTexture,
const uint8  floor 
) const
noexcept

Get DungeonMiniMapTexture and DungeonMiniMapMaskTexture from level

◆ GetTexturesByHeight()

void UDungeonMiniMapTextureLayer::GetTexturesByHeight ( UDungeonMiniMapTexture *&  texture,
UDungeonMiniMapMaskTexture *&  maskTexture,
const float  height 
) const
noexcept

Get DungeonMiniMapTexture and DungeonMiniMapMaskTexture from height

◆ GetTextureSideLength()

uint32_t UDungeonMiniMapTextureLayer::GetTextureSideLength ( ) const
noexcept

Size of a piece of square texture 正方形テクスチャの一片のサイズ

Author
Shun Moriya

◆ GetTextureSize()

FVector2D UDungeonMiniMapTextureLayer::GetTextureSize ( ) const
noexcept

Get UDungeonMiniMapTexture from height

◆ ToNormalize()

FVector2D UDungeonMiniMapTextureLayer::ToNormalize ( const FVector &  location) const

Converts from world coordinates to normalized coordinates (0 to 1)

◆ ToRelative()

FVector2D UDungeonMiniMapTextureLayer::ToRelative ( const FVector &  location) const

Converts from world coordinates to screen coordinates

◆ ToRelativeAndFloor()

FVector2D UDungeonMiniMapTextureLayer::ToRelativeAndFloor ( uint8 &  floor,
const FVector &  location 
) const

Converts from world coordinates to screen coordinates and level

◆ ToRelativeWithScale()

FVector2D UDungeonMiniMapTextureLayer::ToRelativeWithScale ( const FVector &  location,
const float  scale 
) const
inline

Converts from world coordinates to screen coordinates


The documentation for this class was generated from the following files: