mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-22 12:30:17 +08:00
Initial commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
package emu.grasscutter.server.packet.send;
|
||||
|
||||
import emu.grasscutter.game.entity.GenshinEntity;
|
||||
import emu.grasscutter.game.props.FightProperty;
|
||||
import emu.grasscutter.net.packet.GenshinPacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify;
|
||||
|
||||
public class PacketEntityFightPropUpdateNotify extends GenshinPacket {
|
||||
|
||||
public PacketEntityFightPropUpdateNotify(GenshinEntity entity, FightProperty prop) {
|
||||
super(PacketOpcodes.EntityFightPropUpdateNotify);
|
||||
|
||||
EntityFightPropUpdateNotify proto = EntityFightPropUpdateNotify.newBuilder()
|
||||
.setEntityId(entity.getId())
|
||||
.putFightPropMap(prop.getId(), entity.getFightProperty(prop))
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user