Ejemplo n.º 1
0
        public static DetourEvent AddOtherBuffCallback(BuffsDisplayAccessor accessor, BuffAccessor buff)
        {
            var @event = new AddOtherBuffCallbackEvent(new BuffsDisplay(WrappedGame, accessor), new Buff(WrappedGame, buff));

            FireEvent(@event);
            return(@event);
        }
Ejemplo n.º 2
0
 public Buff(StaticContext parent, BuffAccessor accessor) :
     base(parent)
 {
     Underlying = accessor;
 }
Ejemplo n.º 3
0
        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);
        }