did stuff
[riven-wahrk.git] / src / Plst.cpp
blob48f23c552071b9465c9d7ec3e6104fcbb1b9d092
3 #include "Plst.h"
6 Plst::Plst (Stack *stackIn, int id) {
8 stack = stackIn;
9 file = new File (stack, Resource::PLST, id);
10 count = file->readUShort (0);
14 Plst::get (int index, uint16_t *bmpId, uint16_t *left, uint16_t *top, uint16_t *right, uint16_t *bottom) {
16 for (int=0; i<count; i++) {
17 if (index == file->readUShort (2 + 12*i)) {
19 *bmpId = file->readUShort (2 + 12*i + 2);
20 *left = file->readUShort (2 + 12*i + 4);
21 *top = file->readUShort (2 + 12*i + 6);
22 *right = file->readUShort (2 + 12*i + 8);
23 *bottom = file->readUShort (2 + 12*i + 10);
24 break;
30 Plst::draw (int record, Framebuffer *buffer) {