Search in sources :

Example 1 with SpotAnimDefinition

use of net.runelite.cache.definitions.SpotAnimDefinition in project runelite by runelite.

the class SpotAnimLoader method load.

public SpotAnimDefinition load(int id, byte[] b) {
    SpotAnimDefinition def = new SpotAnimDefinition();
    InputStream is = new InputStream(b);
    def.id = id;
    while (true) {
        int opcode = is.readUnsignedByte();
        if (opcode == 0) {
            break;
        }
        this.decodeValues(opcode, def, is);
    }
    return def;
}
Also used : InputStream(net.runelite.cache.io.InputStream) SpotAnimDefinition(net.runelite.cache.definitions.SpotAnimDefinition)

Aggregations

SpotAnimDefinition (net.runelite.cache.definitions.SpotAnimDefinition)1 InputStream (net.runelite.cache.io.InputStream)1