Orion teams framework

From OrionUE/Orion_FreeEdition · View interactive version

Orion teams framework is an AI agent skill from the GitHub repository OrionUE/Orion_FreeEdition. Use when Codex works on Unreal Engine team logic in this framework: Teams folders, IGenericTeamAgentInterface, FGenericTeamId, IOrionTeamAgentInterface, UOrionTeamSubsystem, AOrionTeamInfoBase, AOrionTeamPublicInfo, AOrionTeamPrivateInfo, UOrionTeamDisplayAsset, UOrionTeamCreationComponent, team tag

How to use this skill

Skill file

Unreal Teams Framework

本 Skill 用于处理队伍身份、团队元数据、AI 敌友态度、出生点队伍分配,以及玩法通过 GameFeature/Experience 接入团队规则。

详细说明:

references/teams-framework.zh-CN.md

工作流

  1. 先判断需求属于团队身份、AI 敌友态度、团队展示数据、团队创建、玩家队伍分配、角色出生点分组、友军伤害,还是 UI/消息展示。
  2. 需要让 Actor/Controller/Pawn 被引擎 AI 系统识别为某队时,实现 IOrionTeamAgentInterface 或 IGenericTeamAgentInterface,并覆盖 GetGenericTeamId;只写接口继承不够。
  3. 需要队伍名、颜色、图标、tag 计数等共享元数据时,使用 TeamInfo/TeamSubsystem 体系;不要把这些数据散落到 PlayerState 或 GameMode。
  4. 需要随玩法启停创建队伍或挂载队伍组件时,优先通过 GameFeature Add Components 把派生的 TeamCreationComponent 挂到 GameState,再由 Experience 组合。
  5. 需要角色按队伍出生时,配合角色/玩家 Skill 检查 CharacterSpawner、PlayerSpawningManagerComponent、PlayerController 和玩家账户的数据流。
  6. 需要伤害、锁定、感知、敌我判断时,优先用 FGenericTeamId / GetTeamAttitudeTowards;GAS 伤害执行中不要调用当前框架没有公开实现的队伍伤害 API。
  7. 修改或创建 TeamDisplayAsset、TeamInfo 蓝图、GameFeature 资产前,读取资产管理 Skill,确认命名、目录和保存方式。
  8. 实现后至少验证:服务器授权设置队伍、客户端复制 TeamInfo、AI Perception 敌友过滤、玩家登录/重生队伍选择、GameFeature 反激活清理。

路由

约束

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.