Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
UsesEffectAttribute.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 
4 namespace Loot.Api.Attributes
5 {
14  [AttributeUsage(AttributeTargets.Class, Inherited = true)]
15  public sealed class UsesEffectAttribute : Attribute
16  {
17  private readonly List<Type> _effects;
18 
19  public List<Type> Effects => new List<Type>(_effects);
20 
21  public UsesEffectAttribute(params Type[] types)
22  {
23  // Get a list of effects, try adding them
24  _effects = new List<Type>(types);
25  }
26  }
27 }
This attribute is used to attach a certain Modifier to given ModifierEffects (can be attached to more...