Card Survival: Tropical Island
0 of 0

File information

Last updated

Original upload

Created by

Typeunknow

Uploaded by

Typeunknow

Virus scan

Safe to use

Tags for this mod

About this mod

ModFramework,Designing UniqueIDScriptable with unity editor (2019), Making writing mod easier

Permissions and credits
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.

in v0.0.2
Optimize the structure of the adapter (adds an option to change or not for each field of all MyUniqueIDScriptable), GenGameResources.dll is used to generate references to in-game resources (an empty MyUniqueIDScriptable resource except that its UniqueID is set to the one to be ), CustomRenderByOdin.dll contains only a simple OdinDrawer, which will probably be used later to make a custom render with the same functionality as unity's original

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