mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-22 13:44:31 +00:00
19 lines
430 B
C#
19 lines
430 B
C#
using System;
|
|
|
|
namespace WeaveLoader.API.Mixins;
|
|
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class InjectAttribute : Attribute
|
|
{
|
|
public string Method { get; }
|
|
public At At { get; }
|
|
public int Require { get; set; } = 0;
|
|
public bool Cancellable { get; set; } = false;
|
|
|
|
public InjectAttribute(string method, At at = At.Head)
|
|
{
|
|
Method = method;
|
|
At = at;
|
|
}
|
|
}
|