跳到主要内容
版本:0.2.1

PreludeLib.Attributes

Classes

HarmonyTargetMethodHint

When declaring a TargetMethod method in your patch class, you must decorate it with this attribute.

Structs

In<T>

Use in HarmonyTargetMethodHint parameter list to indicate that the parameter is an in parameter. This is required for Harmony to correctly identify the method when matching signatures, as in parameters are treated differently than regular parameters.

Out<T>

Use in HarmonyTargetMethodHint parameter list to indicate that the parameter is an out parameter. This is required for Harmony to correctly identify the method when matching signatures, as out parameters are treated differently than regular parameters.

Ref<T>

Use in HarmonyTargetMethodHint parameter list to indicate that the parameter is an ref parameter. This is required for Harmony to correctly identify the method when matching signatures, as ref parameters are treated differently than regular parameters.