package com.runescape.io.packets.outgoing.impl;

import com.runescape.io.ByteBuffer;
import com.runescape.io.packets.outgoing.OutgoingPacket;

public class ObjectOption2 implements OutgoingPacket {

	int id;
	int val1;
	int val2;
	public ObjectOption2(int id, int val1, int val2) {
		this.id = id;
		this.val1 = val1;
		this.val2 = val2;
	}
	
	@Override
	public void buildPacket(ByteBuffer buf) {
		buf.putOpcode(252);
		buf.writeSignedBigEndian(id);
		buf.writeUnsignedWordBigEndian(val1);
		buf.writeUnsignedWordA(val2);
	}
}
