mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 11:24:47 +01:00
Merge pull request #127 from yarik0chka/development
Implemented sitting
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package emu.grasscutter.server.packet.send;
|
||||
|
||||
import emu.grasscutter.net.packet.GenshinPacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify;
|
||||
|
||||
public class PacketEvtAvatarSitDownNotify extends GenshinPacket {
|
||||
|
||||
public PacketEvtAvatarSitDownNotify(EvtAvatarSitDownNotify notify) {
|
||||
super(PacketOpcodes.EvtAvatarSitDownNotify);
|
||||
|
||||
EvtAvatarSitDownNotify proto = EvtAvatarSitDownNotify.newBuilder()
|
||||
.setEntityId(notify.getEntityId())
|
||||
.setPosition(notify.getPosition())
|
||||
.setChairId(notify.getChairId())
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package emu.grasscutter.server.packet.send;
|
||||
|
||||
import emu.grasscutter.net.packet.GenshinPacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.SitRspOuterClass.SitRsp;
|
||||
import emu.grasscutter.utils.Position;
|
||||
|
||||
public class PacketSitRsp extends GenshinPacket {
|
||||
|
||||
public PacketSitRsp(long chairId, Position pos, int EntityId) {
|
||||
super(PacketOpcodes.SitRsp);
|
||||
|
||||
SitRsp proto = SitRsp.newBuilder()
|
||||
.setEntityId(EntityId)
|
||||
.setPosition(pos.toProto())
|
||||
.setChairId(chairId)
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user