3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 725|回复: 1
打印 上一主题 下一主题

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

[复制链接]

58

主题

3620

帖子

3万

积分

勤勤恳恳

Rank: 12Rank: 12Rank: 12

贡献度
1728
金元
297576
积分
36670
精华
0
注册时间
2014-3-6
跳转到指定楼层
主题
发表于 2023-1-1 17:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

评分

1

查看全部评分

回复

使用道具 举报

97

主题

7万

帖子

8万

积分

游戏之神

傷魚 迷の潜水员

Rank: 13Rank: 13Rank: 13Rank: 13

贡献度
1820
金元
779905
积分
85271
精华
0
注册时间
2009-2-4

STEAM勋章世界杯

舒服的沙发
发表于 2023-1-1 23:51 | 只看该作者
感谢搬运
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2025-3-15 05:25 , Processed in 0.096636 second(s), 16 queries , Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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