예제 #1
0
        public static DetourEvent OnLoadNewAreaCallback(GameLocationAccessor accessor)
        {
            var @event = new OnLoadNewAreaEvent(new GameLocation(WrappedGame, accessor));

            FireEvent(@event);
            return(@event);
        }
예제 #2
0
        public static DetourEvent PreMailboxActionCallback(GameLocationAccessor accessor)
        {
            var @event = new PreMailboxActionEvent(new GameLocation(WrappedGame, accessor));

            FireEvent(@event);
            return(@event);
        }
예제 #3
0
        public static DetourEvent WarpFarmerCallback(GameLocationAccessor location, int tileX, int tileY, int facingDirection, bool isStructure)
        {
            var @event = new WarpFarmerEvent(new GameLocation(WrappedGame, location),
                                             tileX, tileY, facingDirection, isStructure);

            FireEvent(@event);
            return(@event);
        }
예제 #4
0
 public GameLocation(StaticContext parent, GameLocationAccessor accessor) :
     base(parent)
 {
     Underlying = accessor;
 }
예제 #5
0
        public static DetourEvent PostCropNewDayCallback(CropAccessor accessor, int state, int fertilizer, int xTile, int yTile, GameLocationAccessor environment)
        {
            var @event = new PostCropNewDayEvent(new Crop(WrappedGame, accessor), state, fertilizer, xTile, yTile, new GameLocation(WrappedGame, environment));

            FireEvent(@event);
            return(@event);
        }
예제 #6
0
        public static DetourEvent ShouldCollideWithBuildingLayerCallback(CharacterAccessor accessor, GameLocationAccessor gameLocationAccessor)
        {
            var @event = new ShouldCollideWithBuildingLayerEvent(new Character(WrappedGame, accessor),
                                                                 gameLocationAccessor == null ? null : new GameLocation(WrappedGame, gameLocationAccessor));

            FireEvent(@event);
            return(@event);
        }
예제 #7
0
        public static DetourEvent PostObjectDayUpdateCallback(ObjectAccessor accessor, GameLocationAccessor locAccessor)
        {
            var @event = new PostObjectDayUpdateEvent(
                new ObjectItem(WrappedGame, accessor),
                locAccessor == null ? null : new GameLocation(WrappedGame, locAccessor));

            FireEvent(@event);
            return(@event);
        }
예제 #8
0
        public static DetourEvent PostDayUpdateHoeDirtCallback(HoeDirtAccessor accessor, GameLocationAccessor location, Vector2 tileLocation)
        {
            var @event = new PostDayUpdateHoeDirtEvent(new HoeDirt(WrappedGame, accessor),
                                                       location == null ? null : new GameLocation(WrappedGame, location),
                                                       tileLocation);

            FireEvent(@event);
            return(@event);
        }