cache: Include id in StructDefinition
This commit is contained in:
@@ -30,5 +30,6 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
public class StructDefinition
|
public class StructDefinition
|
||||||
{
|
{
|
||||||
|
public final int id;
|
||||||
public Map<Integer, Object> params = null;
|
public Map<Integer, Object> params = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,10 +30,9 @@ import net.runelite.cache.io.InputStream;
|
|||||||
|
|
||||||
public class StructLoader
|
public class StructLoader
|
||||||
{
|
{
|
||||||
|
|
||||||
public StructDefinition load(int id, byte[] b)
|
public StructDefinition load(int id, byte[] b)
|
||||||
{
|
{
|
||||||
StructDefinition def = new StructDefinition();
|
StructDefinition def = new StructDefinition(id);
|
||||||
InputStream is = new InputStream(b);
|
InputStream is = new InputStream(b);
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
|||||||
Reference in New Issue
Block a user