Skip to main content
在 Manus 中运行任何 Skill
一键导入

timefall-script-binding

星标4
分支0
更新时间2026年6月3日 19:25

Expose an existing C++ engine capability to C# scripting in the Timefall engine across its P/Invoke boundary (ScriptGlue.cpp → NativeCalls.cs → Entity.cs/Components.cs). Use this whenever a script needs to call a native engine function that isn't available yet — reading or writing a component field from C#, an entity operation (parent, destroy, query-by-component), or input/scene/physics/audio access. Trigger even without the word "binding" — "expose X to C#", "let scripts read/set Y", "add a script API for Z", "call this from a script", "scripts can't access W yet", or an EntryPointNotFoundException on a new native call all mean this skill. Covers the marshalling gotchas (glm↔Vector, UUID↔ulong, count-then-fill arrays). Not for introducing a brand-new native component type (that is timefall-add-component), for writing gameplay scripts with the API that already exists, or for general or OS-level P/Invoke to non-engine DLLs.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly