public static DetourEvent OnLoadNewAreaCallback(GameLocationAccessor accessor) { var @event = new OnLoadNewAreaEvent(new GameLocation(WrappedGame, accessor)); FireEvent(@event); return(@event); }
public static DetourEvent PreMailboxActionCallback(GameLocationAccessor accessor) { var @event = new PreMailboxActionEvent(new GameLocation(WrappedGame, accessor)); FireEvent(@event); return(@event); }
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); }
public GameLocation(StaticContext parent, GameLocationAccessor accessor) : base(parent) { Underlying = accessor; }
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); }
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); }
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); }
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); }