public static DetourEvent AddOtherBuffCallback(BuffsDisplayAccessor accessor, BuffAccessor buff) { var @event = new AddOtherBuffCallbackEvent(new BuffsDisplay(WrappedGame, accessor), new Buff(WrappedGame, buff)); FireEvent(@event); return(@event); }
public Buff(StaticContext parent, BuffAccessor accessor) : base(parent) { Underlying = accessor; }
public static DetourEvent TryToAddFoodBuffCallback(BuffsDisplayAccessor accessor, BuffAccessor buff, int duration) { var @event = new TryToAddFoodBuffCallbackEvent(new BuffsDisplay(WrappedGame, accessor), new Buff(WrappedGame, buff), duration); FireEvent(@event); return(@event); }