StructureSaver 界面示例
StructureSaver Interface Example
76561198125172811
Steam工坊
预览截图
1 张图片
主预览图
左右滑动查看更多 · 点击图片查看原图
模组介绍
StructureSaver2 的公共修改接口
查看英文原文
Public modding interfaces for StructureSaver2
This mod is an example mod, not to be used in normal games.
StructureSaver2 (starting from v2.7) contains a public modding interface to allow other mods to save and restore structure specific states and perform some additional initialization upon restoration.
Documentation for the interfaces and the interface files can be found from here: https://github.com/Peanhua/StructureSaverInterfaces
For a tutorial about interfaces, check ZenRowe's Wildcard Workshop #11: Blueprint Interfaces.
Contents of this example mod:
You can find the source code for this example mod from here: https://github.com/Peanhua/StructureSaverWeb/tree/master/mod_interfaces
This example mod contains a single structure that must be spawned in:
cheat giveitem "Blueprint'/Game/Mods/StructureSaverInterfaceExample/PrimalItemStructure_StorageBox_Small_SSIE.PrimalItemStructure_StorageBox_Small_SSIE'" 1 0 0
When that structure (a small storage box variant) is placed down, it'll get assigned a random number and the number is shown on the structure (as a high priority multiuse entry). And the structure uses the interface to save and restore that random number.