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

#include <DungeonRoomSensorDatabase.h>

Inheritance diagram for UDungeonRoomSensorDatabase:

Public Member Functions

 UDungeonRoomSensorDatabase (const FObjectInitializer &ObjectInitializer)
 
virtual ~UDungeonRoomSensorDatabase () override=default
 
UClass * Select (const uint16_t identifier, const uint8_t depthRatioFromStart, const std::shared_ptr< dungeon::Random > &random) const
 
void OnEndGeneration (UDungeonRandom *synchronizedRandom, const UDungeonAisleGridMap *aisleGridMap, const float verticalGridSize, const std::function< void(const FSoftObjectPath &, const FTransform &)> &spawnActor) const
 

Protected Attributes

EDungeonMeshSetSelectionMethod SelectionMethod = EDungeonMeshSetSelectionMethod::DepthFromStart
 
TArray< TObjectPtr< UClass > > DungeonRoomSensorClass
 
TArray< FSoftObjectPath > SpawnActorInAisle
 

Detailed Description

Database class that manages dungeon room intrusion detection sensors

UDungeonRoomSensorDatabase is a database class that holds and manages multiple UDungeonRoomSensor Database class that holds and manages multiple UDungeonRoomSensors. draws lots and selects available sensors based on set conditions.

ダンジョンの部屋侵入検知センサーを管理するデータベースクラス

UDungeonRoomSensorDatabase は、複数の UDungeonRoomSensor を保持・管理する データベースクラスです。 設定された条件を元に、利用可能なセンサーを抽選し選択します。

Constructor & Destructor Documentation

◆ UDungeonRoomSensorDatabase()

UDungeonRoomSensorDatabase::UDungeonRoomSensorDatabase ( const FObjectInitializer &  ObjectInitializer)
explicit

constructor

Author
Shun Moriya

◆ ~UDungeonRoomSensorDatabase()

virtual UDungeonRoomSensorDatabase::~UDungeonRoomSensorDatabase ( )
overridevirtualdefault

destructor

Member Function Documentation

◆ OnEndGeneration()

void UDungeonRoomSensorDatabase::OnEndGeneration ( UDungeonRandom synchronizedRandom,
const UDungeonAisleGridMap aisleGridMap,
const float  verticalGridSize,
const std::function< void(const FSoftObjectPath &, const FTransform &)> &  spawnActor 
) const

ダンジョン生成終了時に通知されるイベント

Parameters
synchronizedRandomクライアント・サーバー間で同期される乱数
aisleGridMap通路のグリッドを記録したコンテナ
verticalGridSizeグリッドの垂直方向の大きさ
spawnActorアクターをスポーンする関数

◆ Select()

UClass * UDungeonRoomSensorDatabase::Select ( const uint16_t  identifier,
const uint8_t  depthRatioFromStart,
const std::shared_ptr< dungeon::Random > &  random 
) const

Select the DungeonRoomSensor class that matches the condition of the argument

引数の条件にあったDungeonRoomSensorのクラスを選択します

Member Data Documentation

◆ DungeonRoomSensorClass

TArray<TObjectPtr<UClass> > UDungeonRoomSensorDatabase::DungeonRoomSensorClass
protected

Register the RoomSensor to be placed.

配置するRoomSensorを登録して下さい。

◆ SelectionMethod

EDungeonMeshSetSelectionMethod UDungeonRoomSensorDatabase::SelectionMethod = EDungeonMeshSetSelectionMethod::DepthFromStart
protected

Room Sensor Generation Rules ルームセンサーの生成ルール

◆ SpawnActorInAisle

TArray<FSoftObjectPath> UDungeonRoomSensorDatabase::SpawnActorInAisle
protected

Actor spawning in an aisle

通路にスポーンするアクター


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