MassBattle Docsv1.19.20

TextPopConfig.h

USTRUCT ×1

Source/MassBattle/Public/Fragments/TextPopConfig.h

概述 Overview

单条弹字请求的数据载体 FTextPopConfig——不是 fragment,是伤害处理器构造、弹字缓冲消费的一次性请求记录(属主、数值、样式、缩放、半径、位置)。提供默认构造与值构造两种方式。

Data carrier for a single popup request FTextPopConfig — not a fragment; a one-shot request record built by damage processors and consumed by the popup buffers (owner, value, style, scale, radius, location). Provides a default constructor and a value constructor.

FTextPopConfig USTRUCT

弹字请求记录。所有字段为普通数据,无 UPROPERTY 配置暴露;由弹字系统按 Style 选择显示样式、按 Radius 与 Location 定位。

Popup request record. All fields are plain data with no config UPROPERTY exposure; the popup system picks the display style by Style and positions by Radius / Location.

成员变量 Members

名称 Name类型 Type默认值说明 Description
OwnerFEntityHandle—弹字属主实体。Owner entity of the popup.
Valuefloat0弹字数值(如伤害量)。Popup value (e.g. damage amount).
Stylefloat0弹字样式索引。Popup style index.
Scalefloat1弹字缩放。Popup scale.
Radiusfloat0弹字偏移半径(围绕属主的位置偏移)。Popup offset radius (positional offset around the owner).
LocationFVectorZeroVector弹字世界位置。Popup world location.

方法 Methods

FTextPopConfig() constructor

默认构造:属主空句柄、数值 0、样式 0、缩放 1、半径 0、位置零向量。

Default constructor: empty owner handle, value 0, style 0, scale 1, radius 0, zero location.

Input

无参数。

No parameters.

Output

构造结果对象;无副作用。

Constructs the result object; no side effects.

FTextPopConfig(值构造) constructor

值构造:按传入参数一次性设置全部六个字段。

Value constructor: sets all six fields from the passed parameters.

Input
参数 Param类型 Type说明 Description
InOwnerconst FEntityHandle&弹字属主实体。Popup owner entity.
InValuefloat弹字数值。Popup value.
InStylefloat弹字样式索引。Popup style index.
InScalefloat弹字缩放。Popup scale.
InRadiusfloat弹字偏移半径。Popup offset radius.
InLocationconst FVector&弹字世界位置。Popup world location.
Output

构造结果对象;无副作用。

Constructs the result object; no side effects.

管线角色 Pipeline Role

FTextPopConfig 在 MassBattle 管线中的位置:伤害结算路径构造该记录(数值来自 FStatistics 关联的伤害事件),写入 FTextPop 的运行时缓冲,最终由渲染处理器弹出。具体调用点见 FTextPop 页的管线角色。

Position of FTextPopConfig in the MassBattle pipeline: the damage-settlement path builds this record (value from the damage event associated with FStatistics), writes it into the FTextPop runtime buffer, and the render processor finally pops it. See the FTextPop page's Pipeline Role for the call sites.