Skip to content

Commit

Permalink
add map regions changed event and render tile event
Browse files Browse the repository at this point in the history
  • Loading branch information
NoEffex committed Feb 13, 2019
1 parent 8ea5d0e commit f99127b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions api/src/main/java/com/rsbuddy/osrs/event/MapRegionsChanged.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.rsbuddy.osrs.event;

public interface MapRegionsChanged {

int[] mapRegions();

int mapRegion(final int index);

int count();

}
4 changes: 3 additions & 1 deletion api/src/main/java/com/rsbuddy/osrs/game/GameEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public enum GameEvent {
SKILL_UPDATED(SkillUpdated.class),
WIDGET_UPDATED(Integer.class),
WIDGET_DRAW_END,
GAME_STATE_CHANGED(GameStateChanged.class);
GAME_STATE_CHANGED(GameStateChanged.class),
MAP_REGIONS_CHANGED(MapRegionsChanged.class),
RENDER_TILE(Tile.class);

private Class<?> clazz;

Expand Down

0 comments on commit f99127b

Please sign in to comment.