Skip to content

Class UDiscreteSpaceBlueprintLibrary

Class UDiscreteSpaceBlueprintLibrary

  • Defined in File DiscreteSpaceBlueprintLibrary.h

Inheritance Relationships

Base Type

  • public UBlueprintFunctionLibrary
class UDiscreteSpaceBlueprintLibrary : public UBlueprintFunctionLibrary

Source: Source/Schola/Public/Common/Spaces/Blueprint/DiscreteSpaceBlueprintLibrary.h

Dependencies: FDiscreteSpace

Blueprint oriented helper functions for creating & inspecting Discrete Space InstancedStructs.

This library provides utility functions for creating and manipulating Discrete Space instances from within Blueprints. These return TInstancedStruct<FDiscreteSpace>.


Public Static Functions

SymbolDetails
Int32ToDiscreteSpaceConverts an integer to a discrete space with a specified upper bound.
DiscreteSpaceToInt32Converts a discrete space to its upper bound.

Int32ToDiscreteSpace

static TInstancedStruct&lt;FDiscreteSpace&gt; Int32ToDiscreteSpace(int32 InHigh)

Converts an integer to a discrete space with a specified upper bound.

Parameters

InHigh – [in] The maximum value (exclusive) in the action space.

Returns:

A new discrete space instance.

#DirectionNameTypeDescription
1InHighint32The maximum value (exclusive) in the action space.

Attributes: static

Source: Source/Schola/Public/Common/Spaces/Blueprint/DiscreteSpaceBlueprintLibrary.h

Implementation: Source/Schola/Private/Common/Spaces/Blueprint/DiscreteSpaceBlueprintLibrary.cpp

DiscreteSpaceToInt32

static int32
DiscreteSpaceToInt32(const TInstancedStruct&lt;FDiscreteSpace&gt; &InDiscreteSpace)

Converts a discrete space to its upper bound.

Parameters

InDiscreteSpace – [in] The discrete space to convert.

Returns:

The upper bound (exclusive) of the discrete space.

#DirectionNameTypeDescription
1InDiscreteSpaceconst TInstancedStruct&lt; FDiscreteSpace &gt; &The discrete space to convert.

Attributes: static

Source: Source/Schola/Public/Common/Spaces/Blueprint/DiscreteSpaceBlueprintLibrary.h

Implementation: Source/Schola/Private/Common/Spaces/Blueprint/DiscreteSpaceBlueprintLibrary.cpp