Orion player framework

From OrionUE/Orion_FreeEdition · View interactive version

Orion player framework is an AI agent skill from the GitHub repository OrionUE/Orion_FreeEdition. Use when Codex works on the reusable Unreal Engine player framework in this codebase: CorePlayerController, CorePlayerState, CoreLocalPlayer, AsyncAction_PlayerStateReady, host-game Player folder classes, FOrionPlayerID, UOrionUserSubsystem, UOrionPlayerInfoComponent, UOrionPlayerManager, UOrionPlay

How to use this skill

Skill file

Unreal Player Framework

本 Skill 用于处理玩家 ID、玩家账户、玩家信息组件、玩家玩法状态组件、玩家生成管理、好友资料查询,以及这些玩家逻辑如何通过 Experience 和 GameFeature 接入。

详细说明:

references/player-framework.zh-CN.md

工作流

  1. 先判断需求属于玩家身份、玩家存档、玩家进入/退出、玩法内玩家状态、出生点管理、好友资料、LocalPlayer 设置,还是 PlayerController/PlayerState/Pawn 初始化链。
  2. 默认不要修改核心框架层。玩家通用能力先从宿主 Game 的 Player 类继承,玩法专属逻辑放到对应 GameFeature runtime module。
  3. 玩家账户类继承 UOrionPlayerAccount,在 Experience 的 PlayerAccountClass 指定;玩家数据类型继承 UOrionPlayerData 或玩家 Archive 类型。
  4. 玩家进入/退出和玩法内状态优先继承 UOrionPlayerGameplayComponent,通过 GameFeature Add Components 挂到 PlayerController,不要把具体玩法状态写进 GameMode。
  5. 玩家出生点和重生规则优先继承 UOrionPlayerSpawningManagerComponent,通过 GameFeature Add Components 挂到 GameState。
  6. 依赖玩家 ID 或账户数据的逻辑必须等待 UOrionPlayerInfoComponent::CallOrRegister_OnPlayerInfoInitialized 或对应 gameplay component 的 OnPlayerInitialized。
  7. 通过 MCP/编辑器自动化挂组件时,先读取 ../orion-mcp-project-toolsets/SKILL.md 并用 describe_toolset 确认 AddComponentActionEntry schema。

路由

约束

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.