找回密码
 立即注册

[游戏] N网mod搬运,Card Survival mod ModFramework,使编写mod更容易

[复制链接]
发表于 4 天前 | 显示全部楼层 |阅读模式
ModFramework,设计UniqueIDScriptable与统一编辑器(2019),使编写mod更容易

下方原版英文mod说明:
Thanks to "computerfan97" for pointing out the reason for the "Some suspicious files".

This is a module framework, the main purpose is to allow module developers to design or modify the CardData and other UniqueIDScriptable type objects through the unity editor2019.
I designed the MyUniqueIDScriptable<T> type to implement the conversion (call the IntoGame function to convert the MyUniqueIDScriptable object to the corresponding UniqueIDScriptable), for all the UniqueIDScriptable implementations MyUniqueIDScriptable.
Setting the UniqueID to the UniqueID of the original in-game object will reference the in-game UniqueIDScriptable object, setting ChangeRaw to True will change the data of the original UniqueIDScriptable.
It is best to do the conversion before GameLoad.Awake is executed, so that GameLoad will call the Init function, otherwise you need to call the Init function of UniqueIDScriptable manually.
The file contains a complete unity2019 project, just open it with the unity editor and start designing.
Your mod needs to reference Assets\Scripts\ModUnityAdapter.dll to load all the MyUniqueIDScriptable types
The ScriptableObjects I added are all under the ModData tab.

Translated with www.DeepL.com/Translator (free version)

声明
1,本帖内容及资源来源于网络,仅代表作者本人观点,不代表本网站立场,已发布作品作者文责自负,版权归版权方所有!
2,本站全站附件、内容、文字、图片等,仅供学习交流,请勿非法使用,否则后果自负!请勿转载!谢谢。请下载后24小时内删除!
3,本帖内容附件资源,仅供参考使用,本站不对其安全性,正确性等作出保证。但本站会尽量审核会员发表的内容
4,如您认为本帖内容侵犯了您的权益,请与我们联系删帖处理,>>点我处理!<<!我们将在24小时内做出处理!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

云纾阁 X3.5

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表