Similar to how the Unhollower RegisterTypeInIl2Cpp methods have an attribute for automatically registering, this feature would be an equivalent attribute but for the RegisterTypeInIl2CppWithInterfaces methods.
Example:
using System;
using System.ComponentModel;
using MelonLoader;
using UnityEngine;
[RegisterTypeInIl2CppWithInterfaces]
public class MyBehaviourWithInterfaces : MonoBehaviour, INotifyPropertyChanged
{
public MyBehaviourWithInterfaces(IntPtr ptr) : base(ptr)
{
}
...
}
[RegisterTypeInIl2CppWithInterfaces(logSuccess: true)]
public class MyOtherBehaviourWithInterfaces : MonoBehaviour, INotifyPropertyChanged
{
public MyOtherBehaviourWithInterfaces(IntPtr ptr) : base(ptr)
{
}
...
}
Describe the new feature or enhancement
Similar to how the Unhollower RegisterTypeInIl2Cpp methods have an attribute for automatically registering, this feature would be an equivalent attribute but for the RegisterTypeInIl2CppWithInterfaces methods.
Example: