Esempio n. 1
0
        public static DetourEvent PostPullFishFromWaterCallback(FishingRodAccessor accessor, int whichFish, int fishSize, int fishQuality, int fishDifficulty, bool treasureCaught, bool wasPerfect)
        {
            var @event = new PostPullFishFromWaterEvent(new FishingRod(WrappedGame, accessor),
                                                        whichFish, fishSize, fishQuality, fishDifficulty, treasureCaught, wasPerfect);

            FireEvent(@event);
            return(@event);
        }
Esempio n. 2
0
        public static DetourEvent PreFishingRodDrawCallback(FishingRodAccessor accessor, SpriteBatch sprite)
        {
            var @event = new PreFishingRodDrawEvent(
                new FishingRod(WrappedGame, accessor),
                sprite);

            FireEvent(@event);
            return(@event);
        }
Esempio n. 3
0
        public static DetourEvent PostFishingRodTickUpdateCallback(FishingRodAccessor accessor, GameTime time, FarmerAccessor who)
        {
            var @event = new PostFishingRodTickUpdateEvent(
                new FishingRod(WrappedGame, accessor),
                time,
                who == null ? null : new Farmer(WrappedGame, who));

            FireEvent(@event);
            return(@event);
        }
Esempio n. 4
0
        public static DetourEvent PostDoneFishingCallback(FishingRodAccessor accessor, FarmerAccessor who, bool consumeBaitAndTackle)
        {
            var @event = new PostDoneFishingEvent(
                new FishingRod(WrappedGame, accessor),
                who == null ? null : new Farmer(WrappedGame, who),
                consumeBaitAndTackle);

            FireEvent(@event);
            return(@event);
        }
Esempio n. 5
0
 public FishingRod(StaticContext parent, FishingRodAccessor accessor) :
     base(parent, accessor)
 {
 }