mirror of
https://github.com/Melledy/Grasscutter.git
synced 2025-02-06 14:18:45 +00:00
11 lines
341 B
Java
11 lines
341 B
Java
|
package emu.grasscutter.utils;
|
||
|
|
||
|
import emu.grasscutter.game.props.PlayerProperty;
|
||
|
import emu.grasscutter.net.proto.PropValueOuterClass.PropValue;
|
||
|
|
||
|
public class ProtoHelper {
|
||
|
public static PropValue newPropValue(PlayerProperty key, int value) {
|
||
|
return PropValue.newBuilder().setType(key.getId()).setIval(value).setVal(value).build();
|
||
|
}
|
||
|
}
|