mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-26 22:10:26 +00:00
Packet Pack: Investigation (#145)
This commit is contained in:
parent
c820d7084b
commit
f1592ac069
@ -1,749 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: GetInvestigationMonsterReq.proto
|
||||
|
||||
package emu.grasscutter.net.proto;
|
||||
|
||||
public final class GetInvestigationMonsterReqOuterClass {
|
||||
private GetInvestigationMonsterReqOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
public interface GetInvestigationMonsterReqOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:GetInvestigationMonsterReq)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return A list containing the cityIdList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getCityIdListList();
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return The count of cityIdList.
|
||||
*/
|
||||
int getCityIdListCount();
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The cityIdList at the given index.
|
||||
*/
|
||||
int getCityIdList(int index);
|
||||
|
||||
/**
|
||||
* <code>bool Unk2700_DEMFDHNFBBJ = 4;</code>
|
||||
* @return The unk2700DEMFDHNFBBJ.
|
||||
*/
|
||||
boolean getUnk2700DEMFDHNFBBJ();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1901
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GetInvestigationMonsterReq}
|
||||
*/
|
||||
public static final class GetInvestigationMonsterReq extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:GetInvestigationMonsterReq)
|
||||
GetInvestigationMonsterReqOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetInvestigationMonsterReq.newBuilder() to construct.
|
||||
private GetInvestigationMonsterReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetInvestigationMonsterReq() {
|
||||
cityIdList_ = emptyIntList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetInvestigationMonsterReq();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetInvestigationMonsterReq(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 24: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
cityIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
cityIdList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
cityIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
cityIdList_.addInt(input.readUInt32());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
|
||||
unk2700DEMFDHNFBBJ_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
cityIdList_.makeImmutable(); // C
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.internal_static_GetInvestigationMonsterReq_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.internal_static_GetInvestigationMonsterReq_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.class, emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CITY_ID_LIST_FIELD_NUMBER = 3;
|
||||
private com.google.protobuf.Internal.IntList cityIdList_;
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return A list containing the cityIdList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getCityIdListList() {
|
||||
return cityIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return The count of cityIdList.
|
||||
*/
|
||||
public int getCityIdListCount() {
|
||||
return cityIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The cityIdList at the given index.
|
||||
*/
|
||||
public int getCityIdList(int index) {
|
||||
return cityIdList_.getInt(index);
|
||||
}
|
||||
private int cityIdListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int UNK2700_DEMFDHNFBBJ_FIELD_NUMBER = 4;
|
||||
private boolean unk2700DEMFDHNFBBJ_;
|
||||
/**
|
||||
* <code>bool Unk2700_DEMFDHNFBBJ = 4;</code>
|
||||
* @return The unk2700DEMFDHNFBBJ.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getUnk2700DEMFDHNFBBJ() {
|
||||
return unk2700DEMFDHNFBBJ_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (getCityIdListList().size() > 0) {
|
||||
output.writeUInt32NoTag(26);
|
||||
output.writeUInt32NoTag(cityIdListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < cityIdList_.size(); i++) {
|
||||
output.writeUInt32NoTag(cityIdList_.getInt(i));
|
||||
}
|
||||
if (unk2700DEMFDHNFBBJ_ != false) {
|
||||
output.writeBool(4, unk2700DEMFDHNFBBJ_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < cityIdList_.size(); i++) {
|
||||
dataSize += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32SizeNoTag(cityIdList_.getInt(i));
|
||||
}
|
||||
size += dataSize;
|
||||
if (!getCityIdListList().isEmpty()) {
|
||||
size += 1;
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32SizeNoTag(dataSize);
|
||||
}
|
||||
cityIdListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
if (unk2700DEMFDHNFBBJ_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(4, unk2700DEMFDHNFBBJ_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq other = (emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq) obj;
|
||||
|
||||
if (!getCityIdListList()
|
||||
.equals(other.getCityIdListList())) return false;
|
||||
if (getUnk2700DEMFDHNFBBJ()
|
||||
!= other.getUnk2700DEMFDHNFBBJ()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (getCityIdListCount() > 0) {
|
||||
hash = (37 * hash) + CITY_ID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCityIdListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + UNK2700_DEMFDHNFBBJ_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getUnk2700DEMFDHNFBBJ());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1901
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GetInvestigationMonsterReq}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:GetInvestigationMonsterReq)
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReqOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.internal_static_GetInvestigationMonsterReq_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.internal_static_GetInvestigationMonsterReq_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.class, emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
cityIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
unk2700DEMFDHNFBBJ_ = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.internal_static_GetInvestigationMonsterReq_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq getDefaultInstanceForType() {
|
||||
return emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq build() {
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq buildPartial() {
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq result = new emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
cityIdList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.cityIdList_ = cityIdList_;
|
||||
result.unk2700DEMFDHNFBBJ_ = unk2700DEMFDHNFBBJ_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq) {
|
||||
return mergeFrom((emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq other) {
|
||||
if (other == emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.getDefaultInstance()) return this;
|
||||
if (!other.cityIdList_.isEmpty()) {
|
||||
if (cityIdList_.isEmpty()) {
|
||||
cityIdList_ = other.cityIdList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureCityIdListIsMutable();
|
||||
cityIdList_.addAll(other.cityIdList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getUnk2700DEMFDHNFBBJ() != false) {
|
||||
setUnk2700DEMFDHNFBBJ(other.getUnk2700DEMFDHNFBBJ());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.Internal.IntList cityIdList_ = emptyIntList();
|
||||
private void ensureCityIdListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
cityIdList_ = mutableCopy(cityIdList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return A list containing the cityIdList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getCityIdListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(cityIdList_) : cityIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return The count of cityIdList.
|
||||
*/
|
||||
public int getCityIdListCount() {
|
||||
return cityIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The cityIdList at the given index.
|
||||
*/
|
||||
public int getCityIdList(int index) {
|
||||
return cityIdList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The cityIdList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCityIdList(
|
||||
int index, int value) {
|
||||
ensureCityIdListIsMutable();
|
||||
cityIdList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @param value The cityIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addCityIdList(int value) {
|
||||
ensureCityIdListIsMutable();
|
||||
cityIdList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @param values The cityIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllCityIdList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureCityIdListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, cityIdList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 city_id_list = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCityIdList() {
|
||||
cityIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean unk2700DEMFDHNFBBJ_ ;
|
||||
/**
|
||||
* <code>bool Unk2700_DEMFDHNFBBJ = 4;</code>
|
||||
* @return The unk2700DEMFDHNFBBJ.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getUnk2700DEMFDHNFBBJ() {
|
||||
return unk2700DEMFDHNFBBJ_;
|
||||
}
|
||||
/**
|
||||
* <code>bool Unk2700_DEMFDHNFBBJ = 4;</code>
|
||||
* @param value The unk2700DEMFDHNFBBJ to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setUnk2700DEMFDHNFBBJ(boolean value) {
|
||||
|
||||
unk2700DEMFDHNFBBJ_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool Unk2700_DEMFDHNFBBJ = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearUnk2700DEMFDHNFBBJ() {
|
||||
|
||||
unk2700DEMFDHNFBBJ_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:GetInvestigationMonsterReq)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:GetInvestigationMonsterReq)
|
||||
private static final emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq();
|
||||
}
|
||||
|
||||
public static emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetInvestigationMonsterReq>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetInvestigationMonsterReq>() {
|
||||
@java.lang.Override
|
||||
public GetInvestigationMonsterReq parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetInvestigationMonsterReq(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetInvestigationMonsterReq> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetInvestigationMonsterReq> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_GetInvestigationMonsterReq_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_GetInvestigationMonsterReq_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n GetInvestigationMonsterReq.proto\"O\n\032Ge" +
|
||||
"tInvestigationMonsterReq\022\024\n\014city_id_list" +
|
||||
"\030\003 \003(\r\022\033\n\023Unk2700_DEMFDHNFBBJ\030\004 \001(\010B\033\n\031e" +
|
||||
"mu.grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_GetInvestigationMonsterReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_GetInvestigationMonsterReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_GetInvestigationMonsterReq_descriptor,
|
||||
new java.lang.String[] { "CityIdList", "Unk2700DEMFDHNFBBJ", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,749 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: WeeklyBossResinDiscountInfo.proto
|
||||
|
||||
package emu.grasscutter.net.proto;
|
||||
|
||||
public final class WeeklyBossResinDiscountInfoOuterClass {
|
||||
private WeeklyBossResinDiscountInfoOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
public interface WeeklyBossResinDiscountInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:WeeklyBossResinDiscountInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 discount_num = 1;</code>
|
||||
* @return The discountNum.
|
||||
*/
|
||||
int getDiscountNum();
|
||||
|
||||
/**
|
||||
* <code>uint32 discount_num_limit = 2;</code>
|
||||
* @return The discountNumLimit.
|
||||
*/
|
||||
int getDiscountNumLimit();
|
||||
|
||||
/**
|
||||
* <code>uint32 resin_cost = 3;</code>
|
||||
* @return The resinCost.
|
||||
*/
|
||||
int getResinCost();
|
||||
|
||||
/**
|
||||
* <code>uint32 original_resin_cost = 4;</code>
|
||||
* @return The originalResinCost.
|
||||
*/
|
||||
int getOriginalResinCost();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code WeeklyBossResinDiscountInfo}
|
||||
*/
|
||||
public static final class WeeklyBossResinDiscountInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:WeeklyBossResinDiscountInfo)
|
||||
WeeklyBossResinDiscountInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use WeeklyBossResinDiscountInfo.newBuilder() to construct.
|
||||
private WeeklyBossResinDiscountInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private WeeklyBossResinDiscountInfo() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new WeeklyBossResinDiscountInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private WeeklyBossResinDiscountInfo(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
|
||||
discountNum_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
discountNumLimit_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
resinCost_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
|
||||
originalResinCost_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.class, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int DISCOUNT_NUM_FIELD_NUMBER = 1;
|
||||
private int discountNum_;
|
||||
/**
|
||||
* <code>uint32 discount_num = 1;</code>
|
||||
* @return The discountNum.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDiscountNum() {
|
||||
return discountNum_;
|
||||
}
|
||||
|
||||
public static final int DISCOUNT_NUM_LIMIT_FIELD_NUMBER = 2;
|
||||
private int discountNumLimit_;
|
||||
/**
|
||||
* <code>uint32 discount_num_limit = 2;</code>
|
||||
* @return The discountNumLimit.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDiscountNumLimit() {
|
||||
return discountNumLimit_;
|
||||
}
|
||||
|
||||
public static final int RESIN_COST_FIELD_NUMBER = 3;
|
||||
private int resinCost_;
|
||||
/**
|
||||
* <code>uint32 resin_cost = 3;</code>
|
||||
* @return The resinCost.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getResinCost() {
|
||||
return resinCost_;
|
||||
}
|
||||
|
||||
public static final int ORIGINAL_RESIN_COST_FIELD_NUMBER = 4;
|
||||
private int originalResinCost_;
|
||||
/**
|
||||
* <code>uint32 original_resin_cost = 4;</code>
|
||||
* @return The originalResinCost.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getOriginalResinCost() {
|
||||
return originalResinCost_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (discountNum_ != 0) {
|
||||
output.writeUInt32(1, discountNum_);
|
||||
}
|
||||
if (discountNumLimit_ != 0) {
|
||||
output.writeUInt32(2, discountNumLimit_);
|
||||
}
|
||||
if (resinCost_ != 0) {
|
||||
output.writeUInt32(3, resinCost_);
|
||||
}
|
||||
if (originalResinCost_ != 0) {
|
||||
output.writeUInt32(4, originalResinCost_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (discountNum_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(1, discountNum_);
|
||||
}
|
||||
if (discountNumLimit_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(2, discountNumLimit_);
|
||||
}
|
||||
if (resinCost_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(3, resinCost_);
|
||||
}
|
||||
if (originalResinCost_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(4, originalResinCost_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo other = (emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo) obj;
|
||||
|
||||
if (getDiscountNum()
|
||||
!= other.getDiscountNum()) return false;
|
||||
if (getDiscountNumLimit()
|
||||
!= other.getDiscountNumLimit()) return false;
|
||||
if (getResinCost()
|
||||
!= other.getResinCost()) return false;
|
||||
if (getOriginalResinCost()
|
||||
!= other.getOriginalResinCost()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + DISCOUNT_NUM_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDiscountNum();
|
||||
hash = (37 * hash) + DISCOUNT_NUM_LIMIT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDiscountNumLimit();
|
||||
hash = (37 * hash) + RESIN_COST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getResinCost();
|
||||
hash = (37 * hash) + ORIGINAL_RESIN_COST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getOriginalResinCost();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code WeeklyBossResinDiscountInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:WeeklyBossResinDiscountInfo)
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.class, emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
discountNum_ = 0;
|
||||
|
||||
discountNumLimit_ = 0;
|
||||
|
||||
resinCost_ = 0;
|
||||
|
||||
originalResinCost_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.internal_static_WeeklyBossResinDiscountInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getDefaultInstanceForType() {
|
||||
return emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo build() {
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo buildPartial() {
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo result = new emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo(this);
|
||||
result.discountNum_ = discountNum_;
|
||||
result.discountNumLimit_ = discountNumLimit_;
|
||||
result.resinCost_ = resinCost_;
|
||||
result.originalResinCost_ = originalResinCost_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo) {
|
||||
return mergeFrom((emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo other) {
|
||||
if (other == emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.getDefaultInstance()) return this;
|
||||
if (other.getDiscountNum() != 0) {
|
||||
setDiscountNum(other.getDiscountNum());
|
||||
}
|
||||
if (other.getDiscountNumLimit() != 0) {
|
||||
setDiscountNumLimit(other.getDiscountNumLimit());
|
||||
}
|
||||
if (other.getResinCost() != 0) {
|
||||
setResinCost(other.getResinCost());
|
||||
}
|
||||
if (other.getOriginalResinCost() != 0) {
|
||||
setOriginalResinCost(other.getOriginalResinCost());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private int discountNum_ ;
|
||||
/**
|
||||
* <code>uint32 discount_num = 1;</code>
|
||||
* @return The discountNum.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDiscountNum() {
|
||||
return discountNum_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 discount_num = 1;</code>
|
||||
* @param value The discountNum to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDiscountNum(int value) {
|
||||
|
||||
discountNum_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 discount_num = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDiscountNum() {
|
||||
|
||||
discountNum_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int discountNumLimit_ ;
|
||||
/**
|
||||
* <code>uint32 discount_num_limit = 2;</code>
|
||||
* @return The discountNumLimit.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getDiscountNumLimit() {
|
||||
return discountNumLimit_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 discount_num_limit = 2;</code>
|
||||
* @param value The discountNumLimit to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setDiscountNumLimit(int value) {
|
||||
|
||||
discountNumLimit_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 discount_num_limit = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearDiscountNumLimit() {
|
||||
|
||||
discountNumLimit_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int resinCost_ ;
|
||||
/**
|
||||
* <code>uint32 resin_cost = 3;</code>
|
||||
* @return The resinCost.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getResinCost() {
|
||||
return resinCost_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 resin_cost = 3;</code>
|
||||
* @param value The resinCost to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setResinCost(int value) {
|
||||
|
||||
resinCost_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 resin_cost = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearResinCost() {
|
||||
|
||||
resinCost_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int originalResinCost_ ;
|
||||
/**
|
||||
* <code>uint32 original_resin_cost = 4;</code>
|
||||
* @return The originalResinCost.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getOriginalResinCost() {
|
||||
return originalResinCost_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 original_resin_cost = 4;</code>
|
||||
* @param value The originalResinCost to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setOriginalResinCost(int value) {
|
||||
|
||||
originalResinCost_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 original_resin_cost = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearOriginalResinCost() {
|
||||
|
||||
originalResinCost_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:WeeklyBossResinDiscountInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:WeeklyBossResinDiscountInfo)
|
||||
private static final emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo();
|
||||
}
|
||||
|
||||
public static emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<WeeklyBossResinDiscountInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<WeeklyBossResinDiscountInfo>() {
|
||||
@java.lang.Override
|
||||
public WeeklyBossResinDiscountInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new WeeklyBossResinDiscountInfo(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<WeeklyBossResinDiscountInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<WeeklyBossResinDiscountInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_WeeklyBossResinDiscountInfo_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n!WeeklyBossResinDiscountInfo.proto\"\200\001\n\033" +
|
||||
"WeeklyBossResinDiscountInfo\022\024\n\014discount_" +
|
||||
"num\030\001 \001(\r\022\032\n\022discount_num_limit\030\002 \001(\r\022\022\n" +
|
||||
"\nresin_cost\030\003 \001(\r\022\033\n\023original_resin_cost" +
|
||||
"\030\004 \001(\rB\033\n\031emu.grasscutter.net.protob\006pro" +
|
||||
"to3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_WeeklyBossResinDiscountInfo_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_WeeklyBossResinDiscountInfo_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_WeeklyBossResinDiscountInfo_descriptor,
|
||||
new java.lang.String[] { "DiscountNum", "DiscountNumLimit", "ResinCost", "OriginalResinCost", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -10,7 +10,6 @@ import emu.grasscutter.game.entity.gadget.chest.BossChestInteractHandler;
|
||||
import emu.grasscutter.game.entity.gadget.chest.ChestInteractHandler;
|
||||
import emu.grasscutter.game.entity.gadget.chest.NormalChestInteractHandler;
|
||||
import emu.grasscutter.game.player.Player;
|
||||
import emu.grasscutter.net.proto.InvestigationMonsterOuterClass;
|
||||
import emu.grasscutter.scripts.ScriptSystem;
|
||||
import emu.grasscutter.server.game.BaseGameSystem;
|
||||
import emu.grasscutter.server.game.GameServer;
|
||||
@ -18,6 +17,7 @@ import emu.grasscutter.utils.Position;
|
||||
import lombok.val;
|
||||
import org.anime_game_servers.gi_lua.models.scene.group.SceneGroup;
|
||||
import org.anime_game_servers.gi_lua.models.scene.group.SceneMonster;
|
||||
import org.anime_game_servers.multi_proto.gi.messages.world.investigation.InvestigationMonster;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@ -97,7 +97,8 @@ public class WorldDataSystem extends BaseGameSystem {
|
||||
}
|
||||
return level;
|
||||
}
|
||||
private InvestigationMonsterOuterClass.InvestigationMonster getInvestigationMonster(Player player, InvestigationMonsterData imd) {
|
||||
|
||||
private InvestigationMonster getInvestigationMonster(Player player, InvestigationMonsterData imd) {
|
||||
if (imd.getGroupIdList().isEmpty() || imd.getMonsterIdList().isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
@ -125,18 +126,18 @@ public class WorldDataSystem extends BaseGameSystem {
|
||||
return null;
|
||||
}
|
||||
|
||||
var builder = InvestigationMonsterOuterClass.InvestigationMonster.newBuilder();
|
||||
var builder = new InvestigationMonster();
|
||||
|
||||
builder.setId(imd.getId())
|
||||
.setCityId(imd.getCityId())
|
||||
.setSceneId(imd.getCityData().getSceneId())
|
||||
.setGroupId(groupId)
|
||||
.setMonsterId(monsterId)
|
||||
.setLevel(getMonsterLevel(monster, player.getWorld()))
|
||||
.setIsAlive(true)
|
||||
.setNextRefreshTime(Integer.MAX_VALUE)
|
||||
.setRefreshInterval(Integer.MAX_VALUE)
|
||||
.setPos(new Position(monsterPos).toProtoOld());
|
||||
builder.setId(imd.getId());
|
||||
builder.setCityId(imd.getCityId());
|
||||
builder.setSceneId(imd.getCityData().getSceneId());
|
||||
builder.setGroupId(groupId);
|
||||
builder.setMonsterId(monsterId);
|
||||
builder.setLevel(getMonsterLevel(monster, player.getWorld()));
|
||||
builder.setAlive(true);
|
||||
builder.setNextRefreshTime(Integer.MAX_VALUE);
|
||||
builder.setRefreshInterval(Integer.MAX_VALUE);
|
||||
builder.setPos(new Position(monsterPos).toProto());
|
||||
|
||||
if ("Boss".equals(imd.getMonsterCategory())) {
|
||||
var bossChest = group.searchBossChestInGroup();
|
||||
@ -145,10 +146,10 @@ public class WorldDataSystem extends BaseGameSystem {
|
||||
builder.setBossChestNum(bossChest.get().getTakeNum());
|
||||
}
|
||||
}
|
||||
return builder.build();
|
||||
return builder;
|
||||
}
|
||||
|
||||
public List<InvestigationMonsterOuterClass.InvestigationMonster> getInvestigationMonstersByCityId(Player player, int cityId) {
|
||||
public List<InvestigationMonster> getInvestigationMonstersByCityId(Player player, int cityId) {
|
||||
var cityData = GameData.getCityDataMap().get(cityId);
|
||||
if (cityData == null) {
|
||||
Grasscutter.getLogger().warn("City not exist {}", cityId);
|
||||
|
@ -1,24 +1,16 @@
|
||||
package emu.grasscutter.server.packet.recv;
|
||||
|
||||
import emu.grasscutter.net.packet.Opcodes;
|
||||
import emu.grasscutter.net.packet.PacketHandler;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.GetInvestigationMonsterReqOuterClass;
|
||||
import emu.grasscutter.net.packet.TypedPacketHandler;
|
||||
import emu.grasscutter.server.game.GameSession;
|
||||
import emu.grasscutter.server.packet.send.PacketGetInvestigationMonsterRsp;
|
||||
import org.anime_game_servers.multi_proto.gi.messages.world.investigation.GetInvestigationMonsterReq;
|
||||
|
||||
@Opcodes(PacketOpcodes.GetInvestigationMonsterReq)
|
||||
public class HandlerGetInvestigationMonsterReq extends PacketHandler {
|
||||
|
||||
public class HandlerGetInvestigationMonsterReq extends TypedPacketHandler<GetInvestigationMonsterReq> {
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
||||
var req = GetInvestigationMonsterReqOuterClass.GetInvestigationMonsterReq.parseFrom(payload);
|
||||
|
||||
public void handle(GameSession session, byte[] header, GetInvestigationMonsterReq req) throws Exception {
|
||||
session.send(new PacketGetInvestigationMonsterRsp(
|
||||
session.getPlayer(),
|
||||
session.getServer().getWorldDataSystem(),
|
||||
req.getCityIdListList()));
|
||||
|
||||
req.getCityIdList()));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,23 +2,19 @@ package emu.grasscutter.server.packet.send;
|
||||
|
||||
import emu.grasscutter.game.player.Player;
|
||||
import emu.grasscutter.game.world.WorldDataSystem;
|
||||
import emu.grasscutter.net.packet.BasePacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.GetInvestigationMonsterRspOuterClass;
|
||||
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||
import lombok.val;
|
||||
import org.anime_game_servers.multi_proto.gi.messages.world.investigation.GetInvestigationMonsterRsp;
|
||||
import org.anime_game_servers.multi_proto.gi.messages.world.investigation.InvestigationMonster;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class PacketGetInvestigationMonsterRsp extends BasePacket {
|
||||
|
||||
public class PacketGetInvestigationMonsterRsp extends BaseTypedPacket<GetInvestigationMonsterRsp> {
|
||||
public PacketGetInvestigationMonsterRsp(Player player, WorldDataSystem worldDataManager, List<Integer> cityIdListList) {
|
||||
|
||||
super(PacketOpcodes.GetInvestigationMonsterRsp);
|
||||
|
||||
var resp = GetInvestigationMonsterRspOuterClass.GetInvestigationMonsterRsp.newBuilder();
|
||||
|
||||
cityIdListList.forEach(id -> resp.addAllMonsterList(worldDataManager.getInvestigationMonstersByCityId(player, id)));
|
||||
|
||||
|
||||
this.setData(resp.build());
|
||||
super(new GetInvestigationMonsterRsp());
|
||||
val monsterList = new ArrayList<InvestigationMonster>();
|
||||
cityIdListList.forEach(id -> monsterList.addAll(worldDataManager.getInvestigationMonstersByCityId(player, id)));
|
||||
proto.setMonsterList(monsterList);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user