Merge pull request #4667 from deathbeam/move-index-to-db

Move isOverlayOutdated to IndexDatabase
This commit is contained in:
Tomas Slusny
2018-08-06 09:31:38 +02:00
committed by GitHub
8 changed files with 28 additions and 31 deletions

View File

@@ -327,6 +327,13 @@ public interface Client extends GameEngine
*/
IndexDataBase getIndexSprites();
/**
* Gets the script index database.
*
* @return the script database
*/
IndexDataBase getIndexScripts();
/**
* Returns the x-axis base coordinate.
* <p>

View File

@@ -29,4 +29,8 @@ package net.runelite.api;
*/
public interface IndexDataBase
{
/**
* Returns true if any cache overlay in this index is outdated due to hash mismatch
*/
boolean isOverlayOutdated();
}

View File

@@ -28,7 +28,6 @@ import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import net.runelite.api.IndexDataBase;
import net.runelite.api.MainBufferProvider;
/**
@@ -164,12 +163,4 @@ public interface Callbacks
* @param keyEvent the key event
*/
void keyTyped(KeyEvent keyEvent);
/**
* Called whenever a cache overlay fails to load due to a hash mismatch
* @param indexDataBase
* @param archiveId
* @param fileId
*/
void overlayLoadFailed(IndexDataBase indexDataBase, int archiveId, int fileId);
}