mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
8c32438b52
Simple implementation of a part of the gadget support, very rough, hard code variables, I am very sorry for that. It can now handle part of the gadget rig. More features and better support await PRs from others. if no one else does, I'll give it a try.
19 lines
584 B
Java
19 lines
584 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.SetWidgetSlotRspOuterClass;
|
|
|
|
public class PacketSetWidgetSlotRsp extends BasePacket {
|
|
|
|
public PacketSetWidgetSlotRsp(int materialId) {
|
|
super(PacketOpcodes.SetWidgetSlotRsp);
|
|
|
|
SetWidgetSlotRspOuterClass.SetWidgetSlotRsp proto = SetWidgetSlotRspOuterClass.SetWidgetSlotRsp.newBuilder()
|
|
.setMaterialId(materialId)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|