Skip to content

Commit

Permalink
support bypassing the login check on certain events
Browse files Browse the repository at this point in the history
add xp drop event type
  • Loading branch information
NoEffex committed Feb 20, 2019
1 parent f99127b commit bb83930
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions api/src/main/java/com/rsbuddy/osrs/game/GameEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,31 @@ public enum GameEvent {
SEND_CHAT_MESSAGE(SendChatMessage.class),
CHAT_SHORTCUT(ChatShortcut.class),
DRAW_LAYER(Integer.class),
RENDER_TILE(Tile.class),
SKILL_UPDATED(SkillUpdated.class),
XP_DROP_CREATED(Integer.class),
WIDGET_UPDATED(Integer.class),
WIDGET_DRAW_END,
GAME_STATE_CHANGED(GameStateChanged.class),
MAP_REGIONS_CHANGED(MapRegionsChanged.class),
RENDER_TILE(Tile.class);
GAME_STATE_CHANGED(false, GameStateChanged.class),
MAP_REGIONS_CHANGED(MapRegionsChanged.class);

private Class<?> clazz;
private final boolean loginCheck;
private final Class<?> clazz;

GameEvent(Class<?> clazz) {
GameEvent(boolean loginCheck, Class<?> clazz) {
this.loginCheck = loginCheck;
this.clazz = clazz;
}

GameEvent(Class<?> clazz) {
this(true, clazz);
}

GameEvent() {
this(true, null);
}

public boolean loginCheck() {
return loginCheck;
}
}

0 comments on commit bb83930

Please sign in to comment.