modelize titles and backgrounds
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { bitmap } from "./_bitmap";
|
||||
import { LoadStockerResponse } from "../response/loadStocker";
|
||||
|
||||
export function loadStocker(res: LoadStockerResponse) {
|
||||
@@ -5,8 +6,7 @@ export function loadStocker(res: LoadStockerResponse) {
|
||||
|
||||
buf.writeInt16LE(0x00a8, 0x0000);
|
||||
buf.writeUInt8(res.status, 0x0002);
|
||||
//buf.fill(0xff, 0x0003, 0x000a);
|
||||
buf.writeUInt8(0x08, 0x0008);
|
||||
bitmap(res.backgrounds, 0x24).copy(buf, 0x0003);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user