Files
netease-modsdk-wiki/docs/mcguide/20-玩法开发/13-模组SDK编程/2-Python脚本开发/8-组件简介.md
2025-03-18 14:46:12 +08:00

13 lines
637 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
front:
hard: 入门
time: 分钟
---
# <span id="组件简介"></span>组件简介
- 组件是为了完成某个或某些特定逻辑功能的数据集合组件只会保存数据并不会执行相应的逻辑只有组件在System中更新的时候System从判断组件是否需要更新从组件中拿到需要更新的数据来执行相应的逻辑功能。
- 组件分为引擎组件和自定义组件。引擎组件的参数类型和功能都是确定好的玩家可以创建Create或获取Get组件来完成逻辑功能。自定义组件需要自定义组件的数据结构自定义组件的更新逻辑。