refactor: Store item data in ScriptableObject
Opened this issue · 0 comments
Bli-AIk commented
refactor: Store item data in ScriptableObject
Is your feature request related to a specific issue? Please describe.
The current project uses a text file to define items and relies on an ID-based system to access item-related functionality. This should be refactored to store item data using ScriptableObjects.
Describe the solution you'd like
- Deprecate the old item system.
- Add an item class that inherits from ScriptableObject.
- Update all content related to the old item system to be associated with the new item class.
Describe alternatives you've considered
None so far.
Additional context
None so far.
refactor: 将item数据存储在ScriptableObject中
您的功能需求是否与某个问题相关?请描述
目前项目内使用的是txt文本设置 item + 通过 id 获取 item 的方式来运行所有与 item 相关的功能。
这应当被重构为通过 ScriptableObject 存储 item 数据。
描述您希望的解决方案
- 废弃旧的 item 系统。
- 添加继承自 ScriptableObject 的 item 类。
- 将所有与 旧 item 系统 相关联的内容改为与新 item 类关联。
描述您考虑过的替代方案
暂无。
其他相关信息
暂无。