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

注册 登录

QQ登录

只需一步,快速开始

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

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

[复制链接]

58

主题

3632

帖子

3万

积分

游戏天王

Rank: 11Rank: 11Rank: 11Rank: 11

贡献度
1735
金元
300089
积分
36949
精华
0
注册时间
2014-3-6
跳转到指定楼层
主题
发表于 2023-1-1 17:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
ModFramework,设计UniqueIDScriptable与统一编辑器(2019),使编写mod更容易
CardSurvivalModDataExample_ModUnityAdapter-21-v0-0-1-1672492313.zip (28.88 KB, 下载次数: 6)
下方原版英文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

查看全部评分

回复

使用道具 举报

97

主题

7万

帖子

9万

积分

游戏之神

傷魚 迷の潜水员

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

贡献度
2469
金元
862581
积分
96134
精华
0
注册时间
2009-2-4

STEAM勋章世界杯锦鲤雷姆尼禄·克劳狄乌斯

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-4-30 09:17 , Processed in 0.036625 second(s), 19 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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