mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 11:42:32 +08:00
Implement script support needed for dungeons
Only a few are supported right now You will need certain script files in ./resources/Scripts
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package emu.grasscutter.server.packet.send;
|
||||
|
||||
import emu.grasscutter.game.entity.EntityGadget;
|
||||
import emu.grasscutter.net.packet.BasePacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.GadgetStateNotifyOuterClass.GadgetStateNotify;
|
||||
|
||||
public class PacketGadgetStateNotify extends BasePacket {
|
||||
|
||||
public PacketGadgetStateNotify(EntityGadget gadget, int newState) {
|
||||
super(PacketOpcodes.GadgetStateNotify);
|
||||
|
||||
GadgetStateNotify proto = GadgetStateNotify.newBuilder()
|
||||
.setGadgetEntityId(gadget.getId())
|
||||
.setGadgetState(newState)
|
||||
.setIsEnableInteract(true)
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user