Pegasus Lib 预览图

泰拉瑞亚 (Terraria)

Pegasus Lib

libraryEnglishNoSync1.4.4

最后更新 2026/04/05文件 660.8 KBID 3352276218

模组简介

A collection of code I found myself repeating and recommending to other modders Includes: A system to easily apply shaders to things drawn in multiple parts, and/or apply multiple shaders to one thing (ShaderLayerTargetHandler) A strikethrough font which matches the character spacing of the MouseText font A faster alternative to accessing fields through reflection (FastFieldInfo and FastStaticFieldInfo) Automatic asset loading (AutoLoadingAsset) Custom drawing while using or holding an item (ICustomDrawItem) Various collision methods (CollisionExt) To use (as a player): Install and enable alongside a mod which uses it. To use (as a modder): Perform the normal setup to use a library mod. During loading, call PegasusLib.PegasusLib.Require() with any PegasusLib.LibFeatures your mod needs, to ensure that features relying on them do not fail silently. Alternatively, you can use PegasusLib.PegasusLib.IsFeatureErrored or PegasusLib.PegasusLib.OnFeatureError to handle any issues that may arise in whatever way suits your mod best. These methods exist to ensure that tModLoader updates or mod incompatibilities only interfere with mods that actually use the features they cause errors with, so that players can continue using your mod without having to wait for features it doesn't use to be fixed. Developed By Moonlight Glint

详情图片

条目信息

所属游戏
泰拉瑞亚 (Terraria)
创意工坊 ID
3352276218
文件名
3352276218.bin
文件大小
660.8 KB
最后更新
2026/04/05
内容版本
v1775326621-44c5a886b9325d8f
作者与来源
由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。