MassBattleEnums.h
Source/MassBattle/Public/MassBattleEnums.h
概述Overview
MassBattle 的集中枚举文件:64 个 UENUM(BlueprintType) 枚举,外加一个不对蓝图公开的 EFormationSizingMode 与两个内联辅助(ToBehaviorState 转换函数、MassBattleRenderLocalFlagMask 哈希掩码)。按用途分组:行为(EBehaviorChoice / EBehaviorState / ESwitchToBehavior / EAttackState / EMoveState)、移动与寻路(ENavMode / ETraceMode / EGroundSource / EAvoidanceMode)、空间查询(EMassBattleSpatialTarget / EMassBattleDetectShape / EMassBattleBoneShape)、动画(EAnimState / EMassBattleAnimBucket / EMassBattleAnimPool / EMassBattleAnimPhase / EMassBattleLocoKind / EJumpState / EMontageState / EVATRenderMode)、事件状态(E*EventState 系列)、类型与标志(EEMainType / EHostEntityType / EBattleFlags)、父子关系(ESyncMode / EYawMode / E*Share / EInheritDirection / ETeamJoin / EBindDirection)与投射物/战利品。
The centralized enum file of MassBattle: 64 UENUM(BlueprintType) enums, plus one EFormationSizingMode that is not Blueprint-exposed and two inline helpers (ToBehaviorState, a conversion function, and MassBattleRenderLocalFlagMask, a hash mask). Grouped by purpose: behavior (EBehaviorChoice / EBehaviorState / ESwitchToBehavior / EAttackState / EMoveState), movement and navigation (ENavMode / ETraceMode / EGroundSource / EAvoidanceMode), spatial queries (EMassBattleSpatialTarget / EMassBattleDetectShape / EMassBattleBoneShape), animation (EAnimState / EMassBattleAnimBucket / EMassBattleAnimPool / EMassBattleAnimPhase / EMassBattleLocoKind / EJumpState / EMontageState / EVATRenderMode), event states (the E*EventState family), types and flags (EEMainType / EHostEntityType / EBattleFlags), parent/child relationships (ESyncMode / EYawMode / E*Share / EInheritDirection / ETeamJoin / EBindDirection) and projectile/loot.
EValidityBranches UENUM
有效性分支枚举,表示「有效 / 无效」两种结果。
Validity branch enum representing a valid / invalid outcome.
| 值Value | 说明Description |
|---|---|
Valid | 有效。Valid. |
Invalid | 无效。Invalid. |
EAgentControlMode UENUM
Agent 的控制模式:由 AI 驱动还是由玩家驱动。
Agent control mode: AI-driven or player-driven.
| 值Value | 说明Description |
|---|---|
AI | AI 控制。AI-controlled. |
PlayerDriven | 玩家驱动。Player-driven. |
EAgentInitMode UENUM
MassBattleAgentComponent 的初始化模式,控制组件何时、以何种方式生成其 Mass 实体。
Agent initialization mode for MassBattleAgentComponent — controls when and how the component spawns its Mass entity.
| 值Value | 说明Description |
|---|---|
Auto | 在 BeginPlay 自动生成实体。Automatically spawns the entity in BeginPlay. |
Manual | 手动调用初始化函数生成实体。对象池复用的 actor 也用 Manual。Manually calls the initialization function to spawn the entity. Pool-reused actors also use Manual. |
ESortMode UENUM
排序模式,用于结果列表的排序方式(近远、随机、不排序)。
Sort mode for result lists (near/far, random, or unsorted).
| 值Value | 说明Description |
|---|---|
None | 不排序。Do not sort. |
NearToFar | 从近到远。From near to far. |
FarToNear | 从远到近。From far to near. |
Randomize | 乱序。Random order. |
EMassBattleSpatialTarget UENUM
通用空间检测 API 查询哪一张 hash 网格。一个枚举选定实体大类,检测形状由调用点(或 FDetectShape)给出。
Which hash grid the generic spatial-detection API searches. One enum selects the entity category; the shape comes from the call (or from FDetectShape).
| 值Value | 说明Description |
|---|---|
Agent | agent 哈希网格——每个存活 agent 都已发布;命中检测按其碰撞体胶囊(半径 + 轴杆高 + 身体上向量)计算。无需开启任何参数。Agent hash grid — every live agent is published here; hit tests use its collider capsule (radius + shaft height + body up vector). Nothing to enable. |
Projectile | 投射物哈希网格——按投射物的 Radius 做球检测。默认不入网:只有该投射物自身的配置主动开启后才发布,所以按默认设置任何投射物查询都返回空。开启方式:投射物配置的 Common > Projectile Params 里把 Grid Register Mode 设为 Single Cell 或 Multiple Cells。Projectile hash grid — sphere tests on the projectile's Radius. Not published by default: a projectile enters it only when its own config opts in, so with defaults every projectile query returns nothing. Enable it under the projectile config's Common > Projectile Params by setting Grid Register Mode to Single Cell or Multiple Cells. |
Loot | 战利品哈希网格——按战利品的 Pickup Radius 做球检测。默认已发布:Grid Register Mode 默认为 Multiple Cells。把该字段设为 None 即可让战利品不参与空间查询。Loot hash grid — sphere tests on the loot's Pickup Radius. Published by default: Grid Register Mode defaults to Multiple Cells. Set that field to None to keep a loot out of spatial queries. |
Obstacle | 障碍物哈希网格——胶囊、样条线段与盒三类障碍。始终发布(障碍没有注册模式)。盒障碍按最长半轴的胶囊做命中检测,样条墙按中高度的零半径线段处理。Obstacle hash grid — capsule, spline-segment and box obstacles. Always published (obstacles have no register mode). Box obstacles are hit-tested as a capsule along their longest half-extent, spline walls as a zero-radius segment at mid height. |
EMassBattleDetectShape UENUM
通用空间检测 API 的查询形状。Sphere / Capsule / Sector / Cone / View 是静态形状;带 Sweep 的变体沿 Start→End 平移。
Query shape of the generic spatial-detection API. Sphere / Capsule / Sector / Cone / View are static shapes; the Sweep variants translate along Start→End.
| 值Value | 说明Description |
|---|---|
Sphere | 以 Origin 为心、Radius 为半径的球。Sphere at Origin with Radius. |
SphereSweep | 球体自 Start 扫掠至 End。Sphere swept from Start to End. |
Box | 以 Origin 为心、半边长 Range3D 的有向盒。Oriented box at Origin with half-extents Range3D. |
BoxSweep | 有向盒自 Start 扫掠至 End。Oriented box swept from Start to End. |
Capsule | 位于 Origin 的胶囊,轴向为 Orientation 的 up,轴杆半高 HalfHeight。Capsule at Origin, axis along Orientation up, shaft half-height HalfHeight. |
CapsuleSweep | 胶囊自 Start 扫掠至 End。Capsule swept from Start to End. |
Sector | 2D 扇形:半径 Radius、Direction(XY)周围的全弧角 Angle、垂带高 Height。2D pie slice: Radius, full arc Angle around Direction (XY), vertical band Height. |
Cone | 自 Origin 沿 Direction 的锥体,长 Length,半角 Angle。Cone from Origin along Direction, Length long, half-angle Angle. |
View | 由 ViewPoints 四角决定的视锥。Frustum through the ViewPoints corners. |
EMassBattleBoneShape UENUM
面向单个 agent 已烘物理资产刚体的骨骼级测试形状。所有形状都读 FDetectShape:Point 用 Origin;Sphere 用 Origin+Radius;Capsule 用 Origin+Radius+HalfHeight+Orientation;Box 用 Origin+Range3D+Orientation;Ray 用 Start→End。扫掠类沿 Start→End 平移同一套输入。
Query shape of a bone-level test against one agent's baked physics-asset bodies. Every shape reads FDetectShape: Point uses Origin; Sphere Origin+Radius; Capsule Origin+Radius+HalfHeight+Orientation; Box Origin+Range3D+Orientation; Ray Start→End. The sweeps translate their shape along Start→End using the same inputs.
| 值Value | 说明Description |
|---|---|
Point | 以 Origin 为查询点的点测试。Point test at Origin. |
Sphere | 以 Origin 为心、Radius 为半径的球。Sphere at Origin with Radius. |
Capsule | 位于 Origin 的胶囊:Radius、轴杆半高 HalfHeight,轴向为 Orientation 的 up。Capsule at Origin: Radius, shaft half-height HalfHeight, axis = Orientation up. |
Box | 以 Origin 为心、半边长 Range3D、旋转 Orientation 的有向盒。Oriented box at Origin with half-extents Range3D and rotation Orientation. |
Ray | 自 Start 到 End 的线段;命中返回进入点与到 Start 的距离。Segment from Start to End; a hit reports the entry point and the distance from Start. |
SphereSweep | 半径 Radius 的球自 Start 扫掠至 End——精确,按单个胶囊测试。Sphere of Radius swept from Start to End — exact, tested as one capsule. |
CapsuleSweep | 胶囊自 Start 扫掠至 End,保守地用一个更长的胶囊近似。Capsule swept from Start to End, conservatively approximated by one longer capsule. |
BoxSweep | 有向盒自 Start 扫掠至 End,沿扫掠线采样 8 个位置测试(近似)。Oriented box swept from Start to End, sampled at 8 positions along the sweep (approximation). |
ESpawnOrigin UENUM
生成位置来源:在自身位置还是攻击目标位置。
Spawn origin: at its own position or at the attack target's position.
| 值Value | 说明Description |
|---|---|
AtSelf | 在自身位置。At its own position. |
AtTarget | 在攻击目标位置。At the attack target's position. |
EPlaySoundOrigin UENUM
音效播放来源:2D 无空间音效或 3D 空间音效。
Sound play origin: 2D non-spatial or 3D spatial sound.
| 值Value | 说明Description |
|---|---|
PlaySound2D | 不使用空间音效。Do not use spatial sound. |
PlaySound3D | 使用空间音效(面板显示名 PlaySound3D_AtSelf)。Use spatial sound (shown as PlaySound3D_AtSelf). |
EPlaySoundOrigin_Attack UENUM
攻击音效播放来源,比 EPlaySoundOrigin 多一个「在攻击目标位置播放 3D 音效」选项。
Attack sound origin; adds an "at the attack target's position" option over EPlaySoundOrigin.
| 值Value | 说明Description |
|---|---|
PlaySound2D | 不使用空间音效。Do not use spatial sound. |
PlaySound3D_AtSelf | 在自身位置播放空间音效。Spatial sound at its own position. |
PlaySound3D_AtTarget | 在攻击目标位置播放空间音效。Spatial sound at the attack target's position. |
EInitialRotation UENUM
生成时的初始朝向。值顺序属于资产格式:已保存的 FacePlayer / CustomRotation 保持原意,RandomRotation 追加在末尾。
Initial facing on spawn. The value order is part of the asset format: saved FacePlayer / CustomRotation values keep their meaning, and RandomRotation is appended last.
| 值Value | 说明Description |
|---|---|
FacePlayer | 生成时面朝玩家 0 的方向(面板显示名 FacingPlayer0)。Face the direction of player 0 when spawning (shown as FacingPlayer0). |
CustomRotation | 自定义旋转。Custom rotation. |
RandomRotation | 每个 agent 各自随机朝向,在整圈上均匀分布,取自播种器的确定性种子;忽略自定义旋转。A different facing per agent, uniform over the full circle, drawn from the spawner's deterministic seed; ignores the custom rotation. |
EBehaviorChoice UENUM
单个转移点可选的目标行为,用于 FBehavior 的九个转移点。配合内联函数 ToBehaviorState 转为运行时使用的 EBehaviorState。只选 Aim 表示只瞄准、不出手。
The target behavior a transition point may choose, used by the nine transition points of FBehavior. The inline helper ToBehaviorState converts it to the runtime EBehaviorState. Choosing only Aim means aim without acting.
| 值Value | 说明Description |
|---|---|
Appear | 出生表现。Appear behavior. |
Sleep | 休眠。Sleep behavior. |
Patrol | 巡逻。Patrol behavior. |
Idle | 无激活行为。No active behavior. |
Jump | 跳跃。Jump behavior. |
Attack | 攻击。Attack behavior. |
Aim | 瞄准(只把关节转到目标上,不攻击)。Aim behavior (turns the joint onto the target without attacking). |
EBehaviorState UENUM
Agent 的运行时行为状态集,FBehaving.ActiveBehavior 取其值。互斥行为由行为链持有;追逐等中间状态也在其中。
The runtime behavior state set of an agent; FBehaving.ActiveBehavior holds one of these. Mutually-exclusive behaviors are owned by the behavior chain, and intermediate states such as chase are included.
| 值Value | 说明Description |
|---|---|
Idle | 无激活行为。No active behavior. |
Appear | 出生表现。Appear behavior. |
Sleep | 休眠。Sleep behavior. |
Patrol | 巡逻。Patrol behavior. |
Chase | 追逐。Chase behavior. |
Attack | 攻击。Attack behavior. |
Reinforce | 支援。Reinforce behavior. |
Jump | 跳跃。Jump behavior. |
Aim | 瞄准。Aim behavior. |
方法Methods
将 EBehaviorChoice 映射为对应的 EBehaviorState;未列出的输入一律落到 Idle。
Maps an EBehaviorChoice to the matching EBehaviorState; any unlisted input falls through to Idle.
Input
| 参数Param | 类型Type | 说明Description |
|---|---|---|
Choice | EBehaviorChoice | 要转换的行为选择。The behavior choice to convert. |
Output
返回对应的 EBehaviorState;未知输入返回 Idle。无副作用。
Returns the matching EBehaviorState, or Idle for unknown input. No side effects.
EAttackState UENUM
一个攻击回合的阶段。对准不是它的相位:先由瞄准行为把关节转到目标上,随后的回合走 PreCast → PostCast → Cooling。_FirstExec 后缀表示该阶段的进入帧,用于一次性进入逻辑。
The stages of one attack round. Alignment is not a phase of it: the Aim behaviour turns the joint onto the target first, and the round that follows runs PreCast → PostCast → Cooling. The _FirstExec suffix marks the entry frame of a stage for one-shot entry logic.
| 值Value | 说明Description |
|---|---|
PreCast_FirstExec | 前摇的进入帧。Wind-up entry frame. |
PreCast | 前摇(面板显示名 Begin)。Wind-up (shown as Begin). |
PostCast | 后摇,命中发生在这里(面板显示名 Hit)。Follow-through, where the hit lands (shown as Hit). |
Cooling | 冷却。Cooldown. |
Completed | 完成。Completed. |
ESwitchToBehavior UENUM
通用「下一步切换到什么行为」枚举,用于一次性行为切换。一次性切换后,自然优先级链(Sleep > Patrol,按各自 bEnable)接管。
Generic "what behavior should the agent switch to next" enum for one-shot behavior transitions. After the one-shot, the natural priority chain (Sleep > Patrol, each gated by its own bEnable) takes over.
| 值Value | 说明Description |
|---|---|
Idle | 结束当前行为并进入空闲。依据移动配置原地停留或跟随流场漂移;若 Sleep / Patrol 启用,下一帧仍会自然进入。Stop the current behavior and become idle. Per the move config the agent either holds in place or drifts with the flow field; Sleep or Patrol still engage next frame if enabled. |
Sleep | 进入休眠——本次切换强制置位休眠标志,覆盖 Patrol。需开启 Sleep 的 bEnable;未启用则回退到自然行为链。Enter sleep — this switch sets the sleeping flag explicitly and overrides Patrol. Requires Sleep's bEnable; otherwise the natural chain runs. |
Patrol | 进入巡逻——本次切换强制置位巡逻标志,覆盖默认的 Sleep 优先级。需开启 Patrol 的 bEnable;未启用则无效。Enter patrol — this switch sets the patrolling flag explicitly and overrides the natural Sleep priority. Requires Patrol's bEnable; otherwise it is a no-op. |
Chase | 前往目标丢失时的最后位置。到达后进入自然行为链(Sleep > Patrol > Idle)。适合丢失目标后短暂搜索。Navigate once to the target's last known location. On arrival the natural priority chain takes over (Sleep > Patrol > Idle). Useful for search-after-loss. |
Reinforce | 进入支援行为。Agent 没有自己的目标且 Reinforce 启用时自然进入。Enter reinforce behavior. Natural entry occurs when the agent has no own target and Reinforce is enabled. |
EMoveState UENUM
移动状态机:无目标、移动中、已到达、被推离返回。
Move state machine: no goal, moving, arrived, returning after being pushed away.
| 值Value | 说明Description |
|---|---|
None | 无移动目标,被动状态。No movement goal, passive. |
Moving | 正在向目标移动。Actively traveling toward the goal. |
Arrived | 已到达目标,保持位置。At goal, holding position. |
Returning | 曾到达目标,被推离,正在返回。Was at goal, pushed away, returning. |
ETraceMode UENUM
索敌模式:锁定指定序号的玩家,或按查询做扇形索敌。
Targeting mode: lock onto the player at a given index, or sector-trace by query.
| 值Value | 说明Description |
|---|---|
IsPlayer | 索敌目标为 Player Index 指定的玩家。Target the player at Player Index. |
ByQuery | 按查询进行扇形索敌(候选由共享的 TraceQuery 过滤)。Sector trace by query (candidates filtered by the shared TraceQuery). |
EPoolEventState UENUM
对象池事件状态:出池与入池。
Pool event states: spawn from pool and return to pool.
| 值Value | 说明Description |
|---|---|
PoolSpawn | 出池。Spawn from pool. |
PoolRecycle | 入池。Return to pool. |
ERepresentationMode UENUM
运行时口径的表现方式,渲染侧逐 tick 据它切换。档位本身用 EVATRenderMode 作者化(它把两条网格管线也涵盖在内);烘焙配置上本值由它派生,而旧配置——EVATRenderMode 之前手写的档——靠存储字段维持原本的画法。Sprite 只读单轨(第一帧),并把 AnimBlendLevel 强制归一为 1。
How one band is drawn at runtime; the render side switches on it every tick. Bands are authored with EVATRenderMode (which also covers the two mesh pipelines); on a baked config this value is derived from it, while a legacy config — bands hand-authored before EVATRenderMode — keeps drawing what its stored field says. Sprite reads a single track (frame 0) and force-normalizes AnimBlendLevel to 1.
| 值Value | 说明Description |
|---|---|
Particle | 粒子 + VAT。Particle + VAT. |
Actor | Actor 表现。Actor representation. |
Sprite | 图集 sprite,单轨。Atlas sprite, single track. |
EAvoidanceMode UENUM
避障模式:RVO2(ORCA)互惠速度障碍、基于质量加权斥力场的避障,或两者的混合(Hybrid)。
Avoidance mode: RVO2 (ORCA) reciprocal velocity obstacles, a mass-weighted repulsive force field, or a hybrid of the two.
| 值Value | 说明Description |
|---|---|
RVO2 | 基于互惠速度障碍的合作避障。Reciprocal Velocity Obstacles — cooperative velocity-space avoidance. |
ForceField | 基于质量加权斥力场的避障,更重的 agent 推开更轻的。Mass-weighted repulsive force field — heavier agents push lighter ones. |
Hybrid | 混合模式:除战斗状态(追击/攻击/追击攻击/等待攻击)与正在避让障碍物的单位——两者均用 ORCA——外全部用 ForceField。移动、静止与全部归位者在无障碍近邻期间用 ForceField。Hybrid: ForceField for everything except combat states (chase / attack / attack-chase / attack-wait) and agents currently avoiding obstacles — both ride ORCA. Moving, idle and all returners use ForceField while clear of obstacle neighbors. |
ECustomPathMode UENUM
自定义路径的循环方式:单程、循环、乒乓往返。
Custom path loop modes: one-way, looped, ping-pong.
| 值Value | 说明Description |
|---|---|
OneWay | 从起点走到终点后停止。Follow the path from start to end, then stop. |
Looped | 从起点走到终点后回到起点重新开始。Follow the path from start to end, then restart from the start. |
PingPong | 从起点走到终点,然后反向走回起点,如此往复。Follow the path from start to end, then reverse back to the start, and repeat. |
EGroundSource UENUM
地面高度来源:始终射线检测、优先流场(失败回退射线)、严格流场(失败视为无地面/坠落)。
Ground height source: always raycast; flow field first with raycast fallback; or strict flow field (no ground on failure, i.e. falling).
| 值Value | 说明Description |
|---|---|
Raycast | 始终射线检测(最高质量,最昂贵)。Always raycast (highest quality, most expensive). |
FlowField | 优先尝试流场;失败时自动回退到射线检测(最佳平衡)。Try the flow field first; automatically fall back to raycast on failure (best balance). |
FlowField_Strict | 尝试流场;失败则假设没有地面(坠落)。用于飞行单位或极端优化。Try the flow field; on failure assume no ground (falling). For flying units or extreme optimization. |
事件状态枚举Event State Enums
以下 E*EventState 系列枚举供事件回调数据携带状态,由各行为/能力在事件触发时写入。事件开关本身在 AgentConfig 的事件配置里逐项开启。
The following E*EventState enums are carried by event callback payloads and written by behaviors / capabilities when the event fires. Whether an event is emitted is enabled per event on the AgentConfig's event config.
EAppearEventState UENUM
| 值Value | 说明Description |
|---|---|
Delay | 延时。Delay. |
Begin | 开始。Begin. |
End | 结束。End. |
ETraceEventState UENUM
| 值Value | 说明Description |
|---|---|
Begin | 索敌开始。Trace begin. |
End_Reason_Succeed | 索敌成功结束。Trace ended with success. |
End_Reason_Fail | 索敌失败结束。Trace ended with failure. |
EMoveEventState UENUM
| 值Value | 说明Description |
|---|---|
Moving | 开始向目标移动。Started moving toward the goal. |
Arrived | 已到达目标。Arrived at the goal. |
Returning | 被推离目标,正在返回。Pushed away from the goal, returning. |
ESleepEventState UENUM
| 值Value | 说明Description |
|---|---|
Enter | 进入休眠状态。Entered sleep state. |
Exit | 退出休眠状态。Exited sleep state. |
EPatrolEventState UENUM
| 值Value | 说明Description |
|---|---|
Enter | 进入巡逻状态。Entered patrol state. |
Exit | 退出巡逻状态。Exited patrol state. |
Patrolling | 移动至巡逻点。Moving to patrol point. |
Waiting | 在巡逻点等待。Waiting at patrol point. |
EReinforceMode UENUM
支援模式——bEnable 是总开关;Mode 选择开启后的行为路径。
Reinforce mode — bEnable is the master switch; Mode selects which paths are active when enabled.
| 值Value | 说明Description |
|---|---|
ReportOnly | 只上报目标给指挥中心。Only report targets to the command center. |
ReinforceOnly | 只向共享目标支援。Only reinforce toward shared targets. |
Full | 既上报也支援。Both report and reinforce. |
EReinforceEventState UENUM
| 值Value | 说明Description |
|---|---|
Enter | 进入支援状态。Entered reinforce state. |
Exit | 退出支援状态。Exited reinforce state. |
EChaseEventState UENUM
| 值Value | 说明Description |
|---|---|
Enter | 进入追逐状态。Entered chase state. |
Exit | 退出追逐状态。Exited chase state. |
Chasing | 追逐目标中。Chasing the target. |
Reached | 已追到目标。Reached the chase target. |
EAttackEventState UENUM
| 值Value | 说明Description |
|---|---|
Aiming | 瞄准中。Aiming. |
Begin | 攻击开始。Attack begin. |
Hit | 击中。Hit. |
Cooling | 冷却中。Cooldown. |
End_Reason_InvalidTarget | 攻击目标失效而结束。Ended: attack target invalid. |
End_Reason_NotInATKRange | 不在攻击范围内而结束。Ended: not in attack range. |
End_Reason_AimTimeout | 瞄准超时失败而结束。Ended: failed to aim within max time. |
End_Reason_Complete | 正常完成。Ended: complete. |
EHitEventState UENUM
| 值Value | 说明Description |
|---|---|
Begin | 受击开始。Hit begin. |
EDeathEventState UENUM
| 值Value | 说明Description |
|---|---|
OutOfHealth | 生命值归零。Health reached zero. |
OutOfLifeSpan | 寿命归零。Lifespan reached zero. |
SuicideAttack | 自杀攻击。Suicide attack. |
KillZ | 低于强制移除高度。Below kill Z. |
ActorDestroyed | 绑定 Actor 在实体存活期间被销毁(组件 EndPlay 补发)。Binding actor destroyed while the entity was still live (component EndPlay backfill). |
ESelectEventState UENUM
| 值Value | 说明Description |
|---|---|
BeingSelect | 正在选中(瞬态)。Being selected (transient state). |
Selected | 已选中(持久态)。Fully selected (persistent state). |
EAnimState UENUM
遗留动画状态,由蒙太奇机与跳跃机派生。它不是作者配置:片段选择走相位表。Jumping 是跳跃机的起跳相位,Land 是它的落地相位;配置未命名片段的相位改画它所取代的那个移动状态。
The legacy animation state, derived from the montage and jump machines. It is not an authored setting — clip selection goes through the phase table. Jumping is the jump machine's takeoff phase and Land its landing phase; a phase whose config names no clip draws the locomotion state it replaced.
| 值Value | 说明Description |
|---|---|
Dirty | 待重新计算。Pending recompute. |
Idle | 空闲。Idle. |
Move | 移动。Move. |
BS_IdleMove | 空闲-移动混合空间(面板显示名 Blendspace_Idle-Move)。Idle-move blend space (shown as Blendspace_Idle-Move). |
Appearing | 出生表现。Appearing. |
Sleeping | 休眠。Sleeping. |
Attacking | 攻击。Attacking. |
BeingHit | 受击。Being hit. |
Dying | 死亡。Dying. |
Falling | 坠落。Falling. |
Jumping | 跳跃的起跳相位。The jump takeoff phase. |
Montage | 蒙太奇播放。Montage playback. |
Land | 跳跃的落地相位。The jump landing phase. |
动画枚举Animation Enums
动画系统的地址空间由三组枚举共同定义:桶是旧地址(已从作者概念退役),池是寻址单位,相位才是作者单位——每个相位在所属池里占一段连续槽。三台状态机(移动 / 跳跃 / 蒙太奇)各拥有自己的相位,新增片段时选的是相位。
Three enum groups define the animation address space: the bucket is the old address (retired as an authoring concept), the pool is the addressing unit, and the phase is the authoring unit — each phase owns a contiguous band of slots inside its pool. The three machines (locomotion / jump / montage) own their phases, and a new clip is assigned a phase.
EMassBattleAnimBucket UENUM
扁平作者槽所属的动画桶,也是 ATT 片段行上的遗留标签。枚举顺序就是桶空间(共 8 个)。桶本身已从作者概念退役:今天它只经 PhaseOfBucket 指代某个相位——作者在 ATT 上选的是相位,桶只在旧资产迁移时被读取。Move 指向行走相位;该桶早于行走/奔跑拆分。
The animation bucket a flat author slot belongs to, and the legacy tag on an ATT clip row. The enum order is the bucket space (8 entries). The bucket itself is retired as an authoring concept: today it only addresses a phase through PhaseOfBucket — an author picks a phase on the ATT, and the bucket is read only when migrating old assets. Move addresses the walk phase; the bucket predates the walk/run split.
| 值Value | 说明Description |
|---|---|
Idle | 待机。映射到 Locomotion_Idle。Idle. Maps to Locomotion_Idle. |
Move | 移动(遗留)。映射到 Locomotion_Walk。Move (legacy). Maps to Locomotion_Walk. |
Fall | 下落(遗留)。映射到 Jump_FallingLoop。Fall (legacy). Maps to Jump_FallingLoop. |
Appear | 出生。映射到 Montage_Appear。Appear. Maps to Montage_Appear. |
Attack | 攻击。映射到 Montage_Attack。Attack. Maps to Montage_Attack. |
Hit | 受击。映射到 Montage_Hit。Hit. Maps to Montage_Hit. |
Death | 死亡。映射到 Montage_Death。Death. Maps to Montage_Death. |
Other | 其它。映射到 Montage_Generic。Other. Maps to Montage_Generic. |
EMassBattleAnimPool UENUM
三台状态机的片段池。池是寻址单位,相位才是作者单位——每个相位在所属池里占一段连续槽。
The clip pools of the three state machines. A pool is an addressing unit; the phases are the authoring unit — each phase owns a contiguous band of slots inside its pool.
| 值Value | 说明Description |
|---|---|
Locomotion | 移动池:Idle / Walk / Run 三个相位。Locomotion pool: the Idle / Walk / Run phases. |
Jump | 跳跃池:JumpStart / FallingLoop / Land 三个相位。Jump pool: the JumpStart / FallingLoop / Land phases. |
Montage | 蒙太奇池:Appear / Attack / Hit / Death / Generic 五个相位。Montage pool: the Appear / Attack / Hit / Death / Generic phases. |
EMassBattleAnimPhase UENUM
动画系统能画的全部片段,按表内段号排列。顺序就是段号:每个相位占一段槽(32 个)。这些值是存盘的——ATT 行的相位与已烘的片段表都序列化它们,资产上已有的值必须保持原意,因此不得插入、删除或重排。Locomotion_Run 追加在末尾(它的段在最后);Locomotion_Walk 留用旧 Locomotion_Move 的位置。
Every clip the animation system can draw, in table-band order. The order is the band index: each phase occupies a band of 32 slots. These values are stored — ATT rows and the baked clip table serialize them, so a value already on an asset must keep its meaning; nothing may be inserted, removed or reordered. Locomotion_Run is appended last (its band is last), and Locomotion_Walk keeps the slot the old Locomotion_Move held.
| 值Value | 面板显示名Display | 说明Description |
|---|---|---|
Locomotion_Idle | Locomotion: Idle | 待机。Idle. |
Locomotion_Walk | Locomotion: Walk | 行走片段;遗留 Move 桶映射到的段。Walk clips; the band the legacy Move bucket maps to. |
Jump_JumpStart | Jump: Jump Start | 起跳窗口。The takeoff window. |
Jump_FallingLoop | Jump: Falling Loop | 下落循环(遗留 Fall 桶映射到的段)。The falling loop (the band the legacy Fall bucket maps to). |
Jump_Land | Jump: Land | 落地尾巴。The landing tail. |
Montage_Appear | Montage: Appear | 出生表现覆盖。The appear overlay. |
Montage_Attack | Montage: Attack | 攻击覆盖。The attack overlay. |
Montage_Hit | Montage: Hit | 受击覆盖。The hit overlay. |
Montage_Death | Montage: Death | 死亡覆盖。The death overlay. |
Montage_Generic | Montage: Generic | 通用蒙太奇(直接 Play Montage 走的槽)。The generic montage (the slot a direct Play Montage uses). |
Locomotion_Run | Locomotion: Run | 奔跑片段,独立的一段(追加在末尾)。Run clips, their own band (appended last). |
EMassBattleLocoKind UENUM
三种作者化的移动片段类别。一类只有一条片段:采样点只写它属于哪一类,具体取自哪个相位、哪个槽由配置的逐类引用决定。同一片段因此可以在任意多个速度上出现,而不会多出一个身份。
The three authored locomotion clip kinds. One kind is one clip: a sample only names its kind, and the config's per-kind clip refs say which phase and slot that kind plays. The same clip can therefore appear at any number of speeds without gaining a second identity.
| 值Value | 说明Description |
|---|---|
Idle | 待机类。The idle kind. |
Walk | 行走类。The walk kind. |
Run | 奔跑类。The run kind. |
EJumpState UENUM
跳跃状态机的相位。空中被拆成起跳窗口与循环两段;接触地面打开一段定时的 Land 尾巴,让落地片段播得完。坠落不是独立状态——它是本机的循环相位,遗留 Fall 桶因此喂给 FallingLoop。
The jump machine's phases. Airborne splits into a takeoff window and a loop; ground contact opens a timed Land tail so a landing clip can finish. Falling is not a state of its own — it is this machine's loop phase, which is why the legacy Fall bucket feeds FallingLoop.
| 值Value | 说明Description |
|---|---|
Grounded | 站在地面。On the ground. |
JumpStart | 起跳窗口。The takeoff window. |
FallingLoop | 空中循环(遗留意义上的坠落)。The airborne loop (falling in the legacy sense). |
Land | 落地尾巴。The landing tail. |
EMontageState UENUM
蒙太奇机的种类。五种都是带时长的一次性覆盖,区别在于谁触发、怎么结束。受击在目标形态里是叠加层(第 5 轨),今天它仍与其它几种争同一条覆盖轨。Generic 是直接 Play Montage 走的通用槽。
The montage machine's kinds. All five are one-shot overlays with a duration; they differ in who starts them and how they end. Hit is the additive layer in the target design (the fifth track) but still competes for the single overlay track today. Generic is the slot a direct Play Montage uses.
| 值Value | 说明Description |
|---|---|
None | 没有蒙太奇。No montage. |
Appear | 出生覆盖。Appear overlay. |
Attack | 攻击覆盖。Attack overlay. |
Hit | 受击覆盖。Hit overlay. |
Death | 死亡覆盖。Death overlay. |
Generic | 通用覆盖。Generic overlay. |
投射物 / 战利品枚举 Projectile &Loot Enums
EProjectileMoveMode UENUM
| 值Value | 说明Description |
|---|---|
Static | 静态。Static. |
Interped | 插值运动。Interpolated. |
Ballistic | 抛物线。Ballistic. |
Tracking | 跟踪目标。Tracking. |
EProjectileDamageMode UENUM
| 值Value | 说明Description |
|---|---|
Point | 点伤害。Point. |
Radial | 球形范围伤害。Radial. |
Beam | 光束。Beam. |
ELootMoveMode UENUM
| 值Value | 说明Description |
|---|---|
Ballistic | 抛物线生成运动。Ballistic spawn movement. |
Interped | 插值收集运动。Interpolated collection movement. |
ELootState UENUM
| 值Value | 说明Description |
|---|---|
Spawning | 抛物线生成阶段。Ballistic spawn phase. |
Ready | 准备被收集。Ready to be collected. |
BeingCollected | 飞向收集者。Flying to the gatherer. |
Collected | 成功收集。Successfully collected. |
Expired | 寿命过期。Lifespan expired. |
EMassAgentSyncMode UENUM
实体与 Actor/Component 之间的变换同步方向,由 Agent 表示层使用。
Transform sync direction between entity and actor/component, used by the agent representation layer.
| 值Value | 说明Description |
|---|---|
None | 不同步。No synchronization. |
EntityToActor | 实体驱动 Actor 变换(ControlAgent 模式)。Entity drives the Actor transform (ControlAgent mode). |
EntityToComponent | 实体驱动组件变换。Entity drives the Component transform. |
ComponentToEntity | 组件驱动实体变换(ControlCharacter 模式)。Component drives the Entity transform (ControlCharacter mode). |
父子关系枚举Parent/Child Enums
这些枚举描述一个绑定关系的三个独立维度:变换同步方向(ESyncMode)、偏航归属(EYawMode)、共享方向(受击反应、索敌目标)、生成时一次性复制(EInheritDirection / ETeamJoin)与运行期事件传播(EBindDirection)。方向相反的规则彼此独立,所以紧密总成可以作为一个整体反应。
These enums describe three independent dimensions of one binding: transform sync direction (ESyncMode), yaw ownership (EYawMode), sharing direction (hit reaction, trace target), one-shot spawn copies (EInheritDirection / ETeamJoin) and live event propagation (EBindDirection). Opposite directions are independent, so a tight assembly can react as one.
ESyncMode UENUM
组件变换同步的唯一运行期权威。一个决定覆盖整套变换;按轴的表达能力只保留在绑定期的附着规则里。
The single runtime authority for a component's transform sync. One decision covers the whole transform; per-axis expressiveness lives only in the bind-time attach rules.
| 值Value | 说明Description |
|---|---|
None | 不同步。No synchronization. |
ComponentDrivesEntity | 组件驱动实体(角色 / 载具宿主)。Component drives the entity (character / vehicle host). |
EntityDrivesComponent | 实体驱动组件(镜像;挂载视觉跟随)。Entity drives the component (mirror; attached visuals follow). |
EntityDrivesActor | 实体驱动整个 Actor。Entity drives the whole actor. |
EYawMode UENUM
偏航策略——「谁的偏航说了算」的唯一开关。
Yaw policy — the single switch for "whose yaw wins".
| 值Value | 说明Description |
|---|---|
Inherit | 偏航跟随源变换。Yaw follows the source transform. |
Free | 无摩擦万向节:保留接收方自身的世界偏航,源的旋转不传递(独立瞄准)。Frictionless gimbal: keep the receiver's own world yaw; the source's rotation does not transfer (independent aiming). |
Relative | 刚性环架:源的旋转全额传递;接收方只驱动绕源局部 up 的相对角(车体上的炮塔)。Rigid ring: the source's rotation transfers in full; the receiver drives only the relative angle about the source-local up (a turret on a chassis). |
Absolute | 偏航钉在作者值上。Pin yaw to the authored value. |
EHitReactionShare UENUM
| 值Value | 说明Description |
|---|---|
None | 各部件各自反应。Each part reacts on its own. |
Down | 父体挨打 → 子体一起闪。Parent hit → children flash. |
Up | 子体中弹 → 父体抖动。Child hit → parent flinches. |
Both | 任一部件受击 → 整个总成一起反应。Either part hit → the whole assembly reacts. |
ETraceTargetShare UENUM
Down 与 Up 互斥——子体镜像父目标的同时父体又收养子目标会互相锁死,所以刻意不设 Both。
Down and Up are mutually exclusive — a child mirroring the parent's target while the parent adopts the child's would lock the pair into a feedback loop, so there is deliberately no Both.
| 值Value | 说明Description |
|---|---|
None | 各自索敌。Each side acquires its own target. |
Down | 子体每 tick 镜像父级当前目标。The child mirrors the parent's current target every tick. |
Up | 子体目标可被父体收养(底盘配合炮塔)。The child's target is a candidate for the parent's adoption (a chassis following its turret). |
EInheritDirection UENUM
生成时属性复制的方向。复制是一次性的(生成时刻施加);持续共享归共享类枚举管。
Direction of a spawn-time property copy. Copies are one-shot (applied at spawn); continuous sharing is the share enums' job.
| 值Value | 说明Description |
|---|---|
None | 不复制——各自保留。No copy — each side keeps its own. |
Down | 子体在生成时复制父级当前值。The child copies the parent's current value at spawn. |
Up | 父体在生成时采纳子体的配置值。The parent adopts the child's authored value at spawn. |
ETeamJoin UENUM
子体关系上的队伍加入。刻意无 Up——agent 配置不写队伍(队伍是生成时参数,刚生成的子体没有可上行的队伍值),非法方向用类型结构排除。
Team join on an agent-child relationship. There is deliberately no Up — an agent config does not author a team (team is a spawn-time parameter, and a freshly spawned child has no team value to push up), so the invalid direction is structurally unexpressible.
| 值Value | 说明Description |
|---|---|
None | 以队伍 0 生成。Spawn on team 0. |
Down | 生成时加入父级队伍。Join the parent's team at spawn. |
EBindDirection UENUM
父/子绑定上「活」事件传播的方向。与 EInheritDirection 形状相同但刻意是两个类型:一个管生成时一次性复制,一个管运行期传播。
Direction of live event propagation on a parent/child binding. Same shape as EInheritDirection but deliberately a separate type: one handles one-shot spawn copies, the other runtime propagation.
| 值Value | 说明Description |
|---|---|
None | 不传播。No propagation. |
Down | 父级事件触发子体。A parent event triggers the children. |
Up | 子体事件触发父级。A child event triggers the parent. |
EVATRenderMode UENUM
一个 LOD 档怎么画。档位选的是整个渲染模式,Sprite/Actor 与两条网格管线平级,不是网格管线内部的子模式。两条网格项的数值冻结:BoneCS 保持 0、VatVert 保持 1,使存盘的数值数据与调用方 JSON 的 mode 字段含义不变;声明顺序即显示顺序。
How one LOD band is drawn. A band picks the whole render mode, and Sprite/Actor are siblings of the two mesh pipelines rather than sub-modes inside one. The two mesh values are frozen: BoneCS stays 0 and VatVert stays 1, so stored numeric data and a caller's JSON mode field keep their meaning; declaration order is display order.
| 值Value | 数值Number | 说明Description |
|---|---|---|
Actor | 2 | 该档生成一个 Actor 表现(不走 Niagara 网格)。需要 ActorClass。Spawn an actor for this band (no Niagara mesh). Requires ActorClass. |
BoneCS | 0 | 骨骼 CS 的 VAT:骨骼纹理 + 顶点里的蒙皮权重,逐批材质实例。Bone compute-shader VAT: bone textures plus skin weights in the vertices, a material instance per batch. |
VatVert | 1 | 逐顶点 VAT:逐 LOD 的位置/法线纹理。一个 VatVert 档绑一个几何级。Per-vertex VAT: position/normal textures per LOD. One VatVert band binds one geometry level. |
Sprite | 3 | 图集公告板:四边形取自 sprite 预填资产,朝相机的网格渲染器,静态图集材质。Atlas billboard: the quad comes from the sprite prep asset, camera-facing mesh renderer, static atlas material. |
None | 4 | 该档什么都不画:agent 不被任何渲染器绘制(也不生成 Actor)。Draw nothing for this band: the agent is rendered by no renderer (and no actor is spawned). |
EBattleFlags UENUM
MassBattle 特有的实体标志。这些标志映射到 MassAPI 的 EEntityFlags(两个 64 位掩码,共 128 个标志):0-63 存于低位,64-127 存于高位。值数量必须与 EEntityFlags 匹配,EBattleFlags_MAX 是计数哨兵。命名条目在模块启动时注册进标志表(FlagNN 占位条目跳过)。渲染/选择类标志是端侧本地的,共识哈希通过 MassBattleRenderLocalFlagMask() 在两处折叠点掩掉它们。
MassBattle-specific entity flags. They map onto MassAPI's EEntityFlags (two 64-bit masks, 128 flags total): flags 0-63 live in the low mask, 64-127 in the high one. The value count must match EEntityFlags, and EBattleFlags_MAX is the counting sentinel. Named entries register into the flag table at module startup (the FlagNN placeholders are skipped). Render/selection flags are peer-local; the consensus hash masks them out at both fold sites through MassBattleRenderLocalFlagMask().
命名标志(低位 0-63)Named flags, low bits 0-63
| 值Value | 说明Description |
|---|---|
Appearing | 出生表现中。Appearing. |
AppearAnim | 出生动画播放中。Appear animation playing. |
AppearDissolve | 出生溶解效果。Appear dissolve effect. |
Sleeping | 休眠中。Sleeping. |
Patrolling | 巡逻中。Patrolling. |
Attacking | 攻击中。Attacking. |
AttackAnim | 攻击动画播放中。Attack animation playing. |
Falling | 坠落中。Falling. |
FallAnim | 坠落动画播放中。Fall animation playing. |
BeingPushed | 被推挤中(避障)。Being pushed (avoidance). |
Launching | 被击退中。Launching (knockback). |
Chasing | 追逐中。Chasing. |
Approaching | 接近中。Approaching. |
BeingHit | 受击中。Being hit. |
HitAnim | 受击动画播放中。Hit animation playing. |
HitGlow | 受击发光效果。Hit glow effect. |
HitJiggle | 受击抖动效果。Hit jiggle effect. |
Dying | 死亡中。Dying. |
DeathAnim | 死亡动画播放中。Death animation playing. |
DeathDissolve | 死亡溶解效果。Death dissolve effect. |
Activated | 已激活。Activated. |
AI | AI 控制。AI-controlled. |
BurstFx | 爆发特效。Burst FX. |
AttachedFx | 附着特效。Attached FX. |
Rendering | 渲染中(端侧本地,不进共识哈希)。Rendering (peer-local, excluded from the consensus hash). |
NotRendering | 不渲染(端侧本地)。Not rendering (peer-local). |
Agent | agent 实体。Agent entity. |
Obstacle | 障碍物实体。Obstacle entity. |
Projectile | 投射物实体。Projectile entity. |
Prop | 道具 / 静态物实体。Prop entity. |
Slowing | 减速减益生效中。Slow debuff active. |
TemporalDamaging | 持续伤害减益生效中。Temporal damage debuff active. |
RenderingWithParticle | 粒子表现(端侧本地)。Rendering with a particle (peer-local). |
RenderingWithActor | Actor 表现(端侧本地)。Rendering with an actor (peer-local). |
PauseAnimChange | 暂停动画切换。Pause animation change. |
PendingDestroy | 待销毁。Pending destroy. |
Loot | 战利品实体。Loot entity. |
AStarMovingTo | A* 寻路移动中。Moving via A* pathfinding. |
Selected | 已选中(端侧本地)。Selected (peer-local). |
BeingSelect | 正在被选中(瞬态,端侧本地)。Being selected (transient, peer-local). |
Idle | 无优先级链行为拥有该 agent 时置位(非 Dying / Appearing / Sleeping / Patrolling / Attacking / Aiming / Chasing / Returning 中的任何一个)。在行为链各环节运行之后维护,读者看到的是本帧节后状态。并发的反应层(BeingHit / Falling / Launching 等)不参与判定——被击退的 agent 属于「空闲但在反应」。外部查询(蓝图、任务认领、AI 导演)用它判断「该 agent 是否空闲」;行为链内部不要用它——部分环节在本标志更新之前运行,同帧读到的是旧值,那些地方必须直接查各自的行为标志。Set when no priority-chain behavior owns the agent (none of Dying / Appearing / Sleeping / Patrolling / Attacking / Aiming / Chasing / Returning is set). Maintained after the behavior chain has run, so readers see the post-section state for the frame. Concurrent reaction layers (BeingHit, Falling, Launching, …) do not count — a knocked-back agent is "idle but reacting". Use it for external "is this agent free?" queries (Blueprint, task claim, AI director); do not use it inside the chain — parts of the chain run before it is updated, so within the same frame it is stale and those places must check the individual flags. |
Returning | 被推离后返回中。Returning after being pushed away. |
BPTask_MoveTo | 用户可用标志:某个 AgentsMoveTo 蓝图任务正在驱动该 Agent 移动时为 true,任务释放时清除。任务内部的锁定 / 挂起状态不在这里。User-facing flag: set while an AgentsMoveTo Blueprint task drives this agent's movement; cleared on release. Internal task lock / suspend state is not here. |
BPTask_ChaseAttack | 用户可用标志:某个 AgentsChaseAttack 蓝图任务正在驱动该 Agent 攻击指定目标时为 true,任务释放时清除。User-facing flag: set while an AgentsChaseAttack Blueprint task drives this agent's trace target; cleared on release. |
Reinforcing | 支援中。Reinforcing. |
PlayerDriven | 玩家驱动。Player-driven. |
Jumping | 起跳冲量施加时置位,保持到落地那一帧。它是互斥行为标志;动画跳跃机靠它在离地宽限耗尽之前就把起跳帧当作空中处理。Set by the takeoff impulse and held until the landing frame. It is a mutually-exclusive behavior flag; the animation jump machine reads it to treat the takeoff tick as airborne before the coyote-time grace expires. |
Aiming | 瞄准行为持有该 agent 时置位:移动层与外部查询在瞄准期间读的就是这面「站定 / 战斗」旗标——还在对齐枪口的单位不算待机。Set while the Aim behavior owns the agent: the planted / combat flag the move layer and external queries read during aiming — a unit still aligning its shot is not idle. |
Flag48 … Flag63 | 未命名占位标志(低位剩余 16 个)。Unnamed placeholder flags (the remaining 16 low bits). |
高位 64-127High bits 64-127
Flag64 至 Flag127 全部为未命名占位标志(存于高位掩码),保留给未来使用;它们与 Flag48-63 一样不进入标志表。
Flag64 through Flag127 are all unnamed placeholders in the high mask, reserved for future use; like Flag48-63 they do not enter the flag table.
EUObjectOptType UENUM
对 actor/object 执行的操作类型:生成、销毁、应用变换。
Operation type to perform on an actor/object: spawn, destroy, apply transform.
| 值Value | 说明Description |
|---|---|
Spawn | 生成新对象,Transform 用于初始位置 / 旋转 / 缩放。Spawn a new object. Transform is the initial location/rotation/scale. |
Destroy | 销毁引用的对象,Transform 被忽略。Destroy the referenced object. Transform is ignored. |
Transform | 给引用的对象应用新变换。Apply a new transform to the referenced object. |
ESelectState UENUM
选中状态:瞬态的选中中、持久的已选中,以及「全部」通配(用于取消选择)。
Selection states: transient being-selected, persistent selected, and an "All" wildcard (for deselecting).
| 值Value | 说明Description |
|---|---|
BeingSelect | 正在选中(瞬态)。Being selected (transient). |
Selected | 已选中(持久态)。Fully selected (persistent). |
All | 两种状态都匹配(用于 DeselectAgents)。Both states (for DeselectAgents). |
EInterpMode UENUM
合批特效的插值模式:GPU = Niagara Custom HLSL 外推;CPU = 每帧 VInterpTo。仅在特效子类型不是 None 时生效。
Batched FX interpolation mode: GPU = Niagara Custom HLSL extrapolation; CPU = per-frame VInterpTo. Only applies when the FX subtype is not None.
| 值Value | 说明Description |
|---|---|
GPU | GPU Custom HLSL 外推——需要含 Custom HLSL 的 GPU 发射器。GPU Custom HLSL extrapolation — requires a GPU emitter with Custom HLSL. |
CPU | CPU 逐帧 VInterpTo / QInterpTo——兼容任意发射器类型。CPU per-frame VInterpTo / QInterpTo — works with any emitter type. |
EHostEntityType UENUM
标识宿主实体的类型用于池化。FxCPU 有独立池,避免池复用时 GPU/CPU 插值模式切换导致的原型变更。
Identifies the host entity type for pooling. FxCPU has its own pool to avoid archetype changes when switching between GPU/CPU interp modes at pool reuse.
| 值Value | 说明Description |
|---|---|
Actor | Actor 宿主。Actor host. |
Fx | 特效宿主。FX host. |
Sound | 音效宿主。Sound host. |
Projectile | 投射物宿主。Projectile host. |
Agent | agent 宿主。Agent host. |
Loot | 战利品宿主。Loot host. |
FxCPU | CPU 插值特效宿主的独立池。Separate pool for CPU-interp FX hosts. |
EEMainType UENUM
主要实体类型——存于主类型 fragment,用于 O(1) 类型分发。
Primary entity type — stored in the main-type fragment for O(1) type dispatch.
| 值Value | 说明Description |
|---|---|
Agent | agent。Agent. |
Projectile | 投射物。Projectile. |
Loot | 战利品。Loot. |
Obstacle | 障碍物。Obstacle. |
Debuff | 减益。Debuff. |
Host | 宿主。Host. |
FxEntity | 特效实体。FX entity. |
EAgentBehaviorState UENUM
agent 行为的简版状态枚举(对外暴露用)。
Compact agent behavior state enum (for external exposure).
| 值Value | 说明Description |
|---|---|
None | 无状态。None. |
Appearing | 出生表现中。Appearing. |
Sleeping | 休眠中。Sleeping. |
Patrolling | 巡逻中。Patrolling. |
Attacking | 攻击中。Attacking. |
Hit | 受击中。Hit. |
Dying | 死亡中。Dying. |
阵型相关枚举Formation Enums
EFormationAssignmentMode UENUM
控制 Agent 如何分配到阵型槽位。
Controls how agents are assigned to formation slots.
| 值Value | 说明Description |
|---|---|
KeepFormation | 保持 Agent 的相对位置关系——左边的留在左边,前面的留在前面。Preserve agents' relative arrangement — agents on the left stay on the left, etc. |
ReformTheLine | 忽略当前排列——每个 Agent 移动到离自己最近的可用槽位。Ignore the current arrangement — each agent moves to the nearest available slot. |
EAgentBoundMode UENUM
生成阵型时采样 Agent 边界半径的来源:FromCollider 用胶囊体碰撞体的 XY 投影边界圆半径;FromAvoidance 用避障椭圆的长轴(主/副轴较大值),即边界圆半径 × max(AvoidDistMult.X, AvoidDistMult.Y)。
Source for sampling an agent's bounding radius when generating formations: FromCollider uses the capsule collider's XY-projected bounding-circle radius; FromAvoidance uses the avoidance ellipse's long axis (max of major/minor), i.e. bounding-circle radius scaled by max(AvoidDistMult.X, AvoidDistMult.Y).
| 值Value | 说明Description |
|---|---|
FromCollider | 来自碰撞体。From the collider. |
FromAvoidance | 来自避障椭圆长轴。From the avoidance ellipse's long axis. |
EFormationSizingMode enum class
为已禁用的 Fixed 尺寸分支保留——不对蓝图公开(非 UENUM)。阵型尺寸目前仅 FitAgents;要恢复模式选择,需重新打开固定尺寸分支并重新公开结构体的尺寸模式字段。
Retained for the disabled Fixed sizing branches — NOT Blueprint-exposed (it is not a UENUM). Formation sizing is FitAgents-only at present; restoring mode selection means re-enabling the fixed-size branch and re-exposing the struct's sizing-mode field.
| 值Value | 说明Description |
|---|---|
Fixed | 固定尺寸(当前禁用)。Fixed size (currently disabled). |
FitAgents | 按 Agent 数量适配尺寸(当前唯一模式)。Fit the size to the agent count (the only active mode). |
补充说明Notes
① 存盘的枚举值不得重排:EMassBattleAnimPhase、EMassBattleAnimBucket、EVATRenderMode 与 EInitialRotation 的值会被写进资产;插入、删除或重排会让已保存的数据改变含义,所以新增值只能追加。
② 三组动画地址:桶只用于读旧地址,池是寻址单位,相位是作者单位。作者在 ATT 上选的是相位,槽号由烘焙分配。
③ 方向类枚举的取舍:ETraceTargetShare 刻意没有 Both,ETeamJoin 刻意没有 Up——不是遗漏,而是非法组合在类型层面就不可表达。
④ 标志的端侧本地位:渲染与选择类标志不进共识哈希;模拟逻辑不得把它们当作权威状态读取。
⑤ 本页范围:EDmgType 等按子系统分文件的枚举不在这里;伤害类型的取值见对应的伤害页。
① Stored enum values must not be reordered: the values of EMassBattleAnimPhase, EMassBattleAnimBucket, EVATRenderMode and EInitialRotation are written into assets; inserting, removing or reordering changes what saved data means, so new values may only be appended.
② Three animation address groups: the bucket only reads old addresses, the pool is the addressing unit, and the phase is the authoring unit. Authors pick a phase on the ATT; the bake assigns the slot.
③ Deliberate gaps in direction enums: ETraceTargetShare has no Both and ETeamJoin has no Up — not an oversight, but an illegal combination made unexpressible in the type.
④ Peer-local flag bits: render and selection flags are excluded from the consensus hash; simulation logic must not read them as authoritative state.
⑤ Scope of this page: enums that live in per-subsystem files (for example EDmgType) are not listed here; see the matching damage page for its values.