diff --git a/src/generated/main/java/emu/grasscutter/net/proto/MapLayerInfoOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/MapLayerInfoOuterClass.java new file mode 100644 index 000000000..4ca3d34bd --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/MapLayerInfoOuterClass.java @@ -0,0 +1,1059 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MapLayerInfo.proto + +package emu.grasscutter.net.proto; + +public final class MapLayerInfoOuterClass { + private MapLayerInfoOuterClass() {} + 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 MapLayerInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:MapLayerInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return A list containing the unlockedMapLayerIdList. + */ + java.util.List getUnlockedMapLayerIdListList(); + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return The count of unlockedMapLayerIdList. + */ + int getUnlockedMapLayerIdListCount(); + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @param index The index of the element to return. + * @return The unlockedMapLayerIdList at the given index. + */ + int getUnlockedMapLayerIdList(int index); + + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return A list containing the unlockedMapLayerFloorIdList. + */ + java.util.List getUnlockedMapLayerFloorIdListList(); + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return The count of unlockedMapLayerFloorIdList. + */ + int getUnlockedMapLayerFloorIdListCount(); + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @param index The index of the element to return. + * @return The unlockedMapLayerFloorIdList at the given index. + */ + int getUnlockedMapLayerFloorIdList(int index); + + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return A list containing the unlockedMapLayerGroupIdList. + */ + java.util.List getUnlockedMapLayerGroupIdListList(); + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return The count of unlockedMapLayerGroupIdList. + */ + int getUnlockedMapLayerGroupIdListCount(); + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @param index The index of the element to return. + * @return The unlockedMapLayerGroupIdList at the given index. + */ + int getUnlockedMapLayerGroupIdList(int index); + } + /** + *
+   *obf NHFPBBLCHKH
+   * 
+ * + * Protobuf type {@code MapLayerInfo} + */ + public static final class MapLayerInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:MapLayerInfo) + MapLayerInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use MapLayerInfo.newBuilder() to construct. + private MapLayerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MapLayerInfo() { + unlockedMapLayerIdList_ = emptyIntList(); + unlockedMapLayerFloorIdList_ = emptyIntList(); + unlockedMapLayerGroupIdList_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MapLayerInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MapLayerInfo( + 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_ & 0x00000004) != 0)) { + unlockedMapLayerGroupIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000004; + } + unlockedMapLayerGroupIdList_.addInt(input.readUInt32()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { + unlockedMapLayerGroupIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + unlockedMapLayerGroupIdList_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 88: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + unlockedMapLayerIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + unlockedMapLayerIdList_.addInt(input.readUInt32()); + break; + } + case 90: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + unlockedMapLayerIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + unlockedMapLayerIdList_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 120: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unlockedMapLayerFloorIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + unlockedMapLayerFloorIdList_.addInt(input.readUInt32()); + break; + } + case 122: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { + unlockedMapLayerFloorIdList_ = newIntList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + unlockedMapLayerFloorIdList_.addInt(input.readUInt32()); + } + input.popLimit(limit); + 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_ & 0x00000004) != 0)) { + unlockedMapLayerGroupIdList_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000001) != 0)) { + unlockedMapLayerIdList_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unlockedMapLayerFloorIdList_.makeImmutable(); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.class, emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.Builder.class); + } + + public static final int UNLOCKED_MAP_LAYER_ID_LIST_FIELD_NUMBER = 11; + private com.google.protobuf.Internal.IntList unlockedMapLayerIdList_; + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return A list containing the unlockedMapLayerIdList. + */ + @java.lang.Override + public java.util.List + getUnlockedMapLayerIdListList() { + return unlockedMapLayerIdList_; + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return The count of unlockedMapLayerIdList. + */ + public int getUnlockedMapLayerIdListCount() { + return unlockedMapLayerIdList_.size(); + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @param index The index of the element to return. + * @return The unlockedMapLayerIdList at the given index. + */ + public int getUnlockedMapLayerIdList(int index) { + return unlockedMapLayerIdList_.getInt(index); + } + private int unlockedMapLayerIdListMemoizedSerializedSize = -1; + + public static final int UNLOCKED_MAP_LAYER_FLOOR_ID_LIST_FIELD_NUMBER = 15; + private com.google.protobuf.Internal.IntList unlockedMapLayerFloorIdList_; + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return A list containing the unlockedMapLayerFloorIdList. + */ + @java.lang.Override + public java.util.List + getUnlockedMapLayerFloorIdListList() { + return unlockedMapLayerFloorIdList_; + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return The count of unlockedMapLayerFloorIdList. + */ + public int getUnlockedMapLayerFloorIdListCount() { + return unlockedMapLayerFloorIdList_.size(); + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @param index The index of the element to return. + * @return The unlockedMapLayerFloorIdList at the given index. + */ + public int getUnlockedMapLayerFloorIdList(int index) { + return unlockedMapLayerFloorIdList_.getInt(index); + } + private int unlockedMapLayerFloorIdListMemoizedSerializedSize = -1; + + public static final int UNLOCKED_MAP_LAYER_GROUP_ID_LIST_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.IntList unlockedMapLayerGroupIdList_; + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return A list containing the unlockedMapLayerGroupIdList. + */ + @java.lang.Override + public java.util.List + getUnlockedMapLayerGroupIdListList() { + return unlockedMapLayerGroupIdList_; + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return The count of unlockedMapLayerGroupIdList. + */ + public int getUnlockedMapLayerGroupIdListCount() { + return unlockedMapLayerGroupIdList_.size(); + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @param index The index of the element to return. + * @return The unlockedMapLayerGroupIdList at the given index. + */ + public int getUnlockedMapLayerGroupIdList(int index) { + return unlockedMapLayerGroupIdList_.getInt(index); + } + private int unlockedMapLayerGroupIdListMemoizedSerializedSize = -1; + + 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 (getUnlockedMapLayerGroupIdListList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(unlockedMapLayerGroupIdListMemoizedSerializedSize); + } + for (int i = 0; i < unlockedMapLayerGroupIdList_.size(); i++) { + output.writeUInt32NoTag(unlockedMapLayerGroupIdList_.getInt(i)); + } + if (getUnlockedMapLayerIdListList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(unlockedMapLayerIdListMemoizedSerializedSize); + } + for (int i = 0; i < unlockedMapLayerIdList_.size(); i++) { + output.writeUInt32NoTag(unlockedMapLayerIdList_.getInt(i)); + } + if (getUnlockedMapLayerFloorIdListList().size() > 0) { + output.writeUInt32NoTag(122); + output.writeUInt32NoTag(unlockedMapLayerFloorIdListMemoizedSerializedSize); + } + for (int i = 0; i < unlockedMapLayerFloorIdList_.size(); i++) { + output.writeUInt32NoTag(unlockedMapLayerFloorIdList_.getInt(i)); + } + 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 < unlockedMapLayerGroupIdList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(unlockedMapLayerGroupIdList_.getInt(i)); + } + size += dataSize; + if (!getUnlockedMapLayerGroupIdListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + unlockedMapLayerGroupIdListMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < unlockedMapLayerIdList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(unlockedMapLayerIdList_.getInt(i)); + } + size += dataSize; + if (!getUnlockedMapLayerIdListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + unlockedMapLayerIdListMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < unlockedMapLayerFloorIdList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(unlockedMapLayerFloorIdList_.getInt(i)); + } + size += dataSize; + if (!getUnlockedMapLayerFloorIdListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + unlockedMapLayerFloorIdListMemoizedSerializedSize = dataSize; + } + 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.MapLayerInfoOuterClass.MapLayerInfo)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo other = (emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo) obj; + + if (!getUnlockedMapLayerIdListList() + .equals(other.getUnlockedMapLayerIdListList())) return false; + if (!getUnlockedMapLayerFloorIdListList() + .equals(other.getUnlockedMapLayerFloorIdListList())) return false; + if (!getUnlockedMapLayerGroupIdListList() + .equals(other.getUnlockedMapLayerGroupIdListList())) 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 (getUnlockedMapLayerIdListCount() > 0) { + hash = (37 * hash) + UNLOCKED_MAP_LAYER_ID_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUnlockedMapLayerIdListList().hashCode(); + } + if (getUnlockedMapLayerFloorIdListCount() > 0) { + hash = (37 * hash) + UNLOCKED_MAP_LAYER_FLOOR_ID_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUnlockedMapLayerFloorIdListList().hashCode(); + } + if (getUnlockedMapLayerGroupIdListCount() > 0) { + hash = (37 * hash) + UNLOCKED_MAP_LAYER_GROUP_ID_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUnlockedMapLayerGroupIdListList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo 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; + } + /** + *
+     *obf NHFPBBLCHKH
+     * 
+ * + * Protobuf type {@code MapLayerInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:MapLayerInfo) + emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.class, emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.Builder.class); + } + + // Construct using emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.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(); + unlockedMapLayerIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + unlockedMapLayerFloorIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + unlockedMapLayerGroupIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_descriptor; + } + + @java.lang.Override + public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo getDefaultInstanceForType() { + return emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.getDefaultInstance(); + } + + @java.lang.Override + public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo build() { + emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo buildPartial() { + emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo result = new emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + unlockedMapLayerIdList_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unlockedMapLayerIdList_ = unlockedMapLayerIdList_; + if (((bitField0_ & 0x00000002) != 0)) { + unlockedMapLayerFloorIdList_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unlockedMapLayerFloorIdList_ = unlockedMapLayerFloorIdList_; + if (((bitField0_ & 0x00000004) != 0)) { + unlockedMapLayerGroupIdList_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unlockedMapLayerGroupIdList_ = unlockedMapLayerGroupIdList_; + 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.MapLayerInfoOuterClass.MapLayerInfo) { + return mergeFrom((emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo other) { + if (other == emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.getDefaultInstance()) return this; + if (!other.unlockedMapLayerIdList_.isEmpty()) { + if (unlockedMapLayerIdList_.isEmpty()) { + unlockedMapLayerIdList_ = other.unlockedMapLayerIdList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnlockedMapLayerIdListIsMutable(); + unlockedMapLayerIdList_.addAll(other.unlockedMapLayerIdList_); + } + onChanged(); + } + if (!other.unlockedMapLayerFloorIdList_.isEmpty()) { + if (unlockedMapLayerFloorIdList_.isEmpty()) { + unlockedMapLayerFloorIdList_ = other.unlockedMapLayerFloorIdList_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnlockedMapLayerFloorIdListIsMutable(); + unlockedMapLayerFloorIdList_.addAll(other.unlockedMapLayerFloorIdList_); + } + onChanged(); + } + if (!other.unlockedMapLayerGroupIdList_.isEmpty()) { + if (unlockedMapLayerGroupIdList_.isEmpty()) { + unlockedMapLayerGroupIdList_ = other.unlockedMapLayerGroupIdList_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnlockedMapLayerGroupIdListIsMutable(); + unlockedMapLayerGroupIdList_.addAll(other.unlockedMapLayerGroupIdList_); + } + onChanged(); + } + 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.MapLayerInfoOuterClass.MapLayerInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.Internal.IntList unlockedMapLayerIdList_ = emptyIntList(); + private void ensureUnlockedMapLayerIdListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unlockedMapLayerIdList_ = mutableCopy(unlockedMapLayerIdList_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return A list containing the unlockedMapLayerIdList. + */ + public java.util.List + getUnlockedMapLayerIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(unlockedMapLayerIdList_) : unlockedMapLayerIdList_; + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return The count of unlockedMapLayerIdList. + */ + public int getUnlockedMapLayerIdListCount() { + return unlockedMapLayerIdList_.size(); + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @param index The index of the element to return. + * @return The unlockedMapLayerIdList at the given index. + */ + public int getUnlockedMapLayerIdList(int index) { + return unlockedMapLayerIdList_.getInt(index); + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @param index The index to set the value at. + * @param value The unlockedMapLayerIdList to set. + * @return This builder for chaining. + */ + public Builder setUnlockedMapLayerIdList( + int index, int value) { + ensureUnlockedMapLayerIdListIsMutable(); + unlockedMapLayerIdList_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @param value The unlockedMapLayerIdList to add. + * @return This builder for chaining. + */ + public Builder addUnlockedMapLayerIdList(int value) { + ensureUnlockedMapLayerIdListIsMutable(); + unlockedMapLayerIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @param values The unlockedMapLayerIdList to add. + * @return This builder for chaining. + */ + public Builder addAllUnlockedMapLayerIdList( + java.lang.Iterable values) { + ensureUnlockedMapLayerIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unlockedMapLayerIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_id_list = 11; + * @return This builder for chaining. + */ + public Builder clearUnlockedMapLayerIdList() { + unlockedMapLayerIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList unlockedMapLayerFloorIdList_ = emptyIntList(); + private void ensureUnlockedMapLayerFloorIdListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unlockedMapLayerFloorIdList_ = mutableCopy(unlockedMapLayerFloorIdList_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return A list containing the unlockedMapLayerFloorIdList. + */ + public java.util.List + getUnlockedMapLayerFloorIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(unlockedMapLayerFloorIdList_) : unlockedMapLayerFloorIdList_; + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return The count of unlockedMapLayerFloorIdList. + */ + public int getUnlockedMapLayerFloorIdListCount() { + return unlockedMapLayerFloorIdList_.size(); + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @param index The index of the element to return. + * @return The unlockedMapLayerFloorIdList at the given index. + */ + public int getUnlockedMapLayerFloorIdList(int index) { + return unlockedMapLayerFloorIdList_.getInt(index); + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @param index The index to set the value at. + * @param value The unlockedMapLayerFloorIdList to set. + * @return This builder for chaining. + */ + public Builder setUnlockedMapLayerFloorIdList( + int index, int value) { + ensureUnlockedMapLayerFloorIdListIsMutable(); + unlockedMapLayerFloorIdList_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @param value The unlockedMapLayerFloorIdList to add. + * @return This builder for chaining. + */ + public Builder addUnlockedMapLayerFloorIdList(int value) { + ensureUnlockedMapLayerFloorIdListIsMutable(); + unlockedMapLayerFloorIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @param values The unlockedMapLayerFloorIdList to add. + * @return This builder for chaining. + */ + public Builder addAllUnlockedMapLayerFloorIdList( + java.lang.Iterable values) { + ensureUnlockedMapLayerFloorIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unlockedMapLayerFloorIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_floor_id_list = 15; + * @return This builder for chaining. + */ + public Builder clearUnlockedMapLayerFloorIdList() { + unlockedMapLayerFloorIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList unlockedMapLayerGroupIdList_ = emptyIntList(); + private void ensureUnlockedMapLayerGroupIdListIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unlockedMapLayerGroupIdList_ = mutableCopy(unlockedMapLayerGroupIdList_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return A list containing the unlockedMapLayerGroupIdList. + */ + public java.util.List + getUnlockedMapLayerGroupIdListList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(unlockedMapLayerGroupIdList_) : unlockedMapLayerGroupIdList_; + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return The count of unlockedMapLayerGroupIdList. + */ + public int getUnlockedMapLayerGroupIdListCount() { + return unlockedMapLayerGroupIdList_.size(); + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @param index The index of the element to return. + * @return The unlockedMapLayerGroupIdList at the given index. + */ + public int getUnlockedMapLayerGroupIdList(int index) { + return unlockedMapLayerGroupIdList_.getInt(index); + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @param index The index to set the value at. + * @param value The unlockedMapLayerGroupIdList to set. + * @return This builder for chaining. + */ + public Builder setUnlockedMapLayerGroupIdList( + int index, int value) { + ensureUnlockedMapLayerGroupIdListIsMutable(); + unlockedMapLayerGroupIdList_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @param value The unlockedMapLayerGroupIdList to add. + * @return This builder for chaining. + */ + public Builder addUnlockedMapLayerGroupIdList(int value) { + ensureUnlockedMapLayerGroupIdListIsMutable(); + unlockedMapLayerGroupIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @param values The unlockedMapLayerGroupIdList to add. + * @return This builder for chaining. + */ + public Builder addAllUnlockedMapLayerGroupIdList( + java.lang.Iterable values) { + ensureUnlockedMapLayerGroupIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unlockedMapLayerGroupIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 unlocked_map_layer_group_id_list = 3; + * @return This builder for chaining. + */ + public Builder clearUnlockedMapLayerGroupIdList() { + unlockedMapLayerGroupIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + 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:MapLayerInfo) + } + + // @@protoc_insertion_point(class_scope:MapLayerInfo) + private static final emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo(); + } + + public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapLayerInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MapLayerInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_MapLayerInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_MapLayerInfo_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\022MapLayerInfo.proto\"\206\001\n\014MapLayerInfo\022\"\n" + + "\032unlocked_map_layer_id_list\030\013 \003(\r\022(\n unl" + + "ocked_map_layer_floor_id_list\030\017 \003(\r\022(\n u" + + "nlocked_map_layer_group_id_list\030\003 \003(\rB\033\n" + + "\031emu.grasscutter.net.protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_MapLayerInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_MapLayerInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_MapLayerInfo_descriptor, + new java.lang.String[] { "UnlockedMapLayerIdList", "UnlockedMapLayerFloorIdList", "UnlockedMapLayerGroupIdList", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/generated/main/java/emu/grasscutter/net/proto/NHFPBBLCHKHOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/NHFPBBLCHKHOuterClass.java deleted file mode 100644 index 65f0c44f5..000000000 --- a/src/generated/main/java/emu/grasscutter/net/proto/NHFPBBLCHKHOuterClass.java +++ /dev/null @@ -1,1050 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: NHFPBBLCHKH.proto - -package emu.grasscutter.net.proto; - -public final class NHFPBBLCHKHOuterClass { - private NHFPBBLCHKHOuterClass() {} - 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 NHFPBBLCHKHOrBuilder extends - // @@protoc_insertion_point(interface_extends:NHFPBBLCHKH) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return A list containing the pAIGHFEEELO. - */ - java.util.List getPAIGHFEEELOList(); - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return The count of pAIGHFEEELO. - */ - int getPAIGHFEEELOCount(); - /** - * repeated uint32 PAIGHFEEELO = 11; - * @param index The index of the element to return. - * @return The pAIGHFEEELO at the given index. - */ - int getPAIGHFEEELO(int index); - - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return A list containing the dIDEMJFOGLD. - */ - java.util.List getDIDEMJFOGLDList(); - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return The count of dIDEMJFOGLD. - */ - int getDIDEMJFOGLDCount(); - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @param index The index of the element to return. - * @return The dIDEMJFOGLD at the given index. - */ - int getDIDEMJFOGLD(int index); - - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return A list containing the jBNJGMIGFFJ. - */ - java.util.List getJBNJGMIGFFJList(); - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return The count of jBNJGMIGFFJ. - */ - int getJBNJGMIGFFJCount(); - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @param index The index of the element to return. - * @return The jBNJGMIGFFJ at the given index. - */ - int getJBNJGMIGFFJ(int index); - } - /** - * Protobuf type {@code NHFPBBLCHKH} - */ - public static final class NHFPBBLCHKH extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:NHFPBBLCHKH) - NHFPBBLCHKHOrBuilder { - private static final long serialVersionUID = 0L; - // Use NHFPBBLCHKH.newBuilder() to construct. - private NHFPBBLCHKH(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NHFPBBLCHKH() { - pAIGHFEEELO_ = emptyIntList(); - dIDEMJFOGLD_ = emptyIntList(); - jBNJGMIGFFJ_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NHFPBBLCHKH(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NHFPBBLCHKH( - 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_ & 0x00000004) != 0)) { - jBNJGMIGFFJ_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - jBNJGMIGFFJ_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - jBNJGMIGFFJ_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - jBNJGMIGFFJ_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 88: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pAIGHFEEELO_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - pAIGHFEEELO_.addInt(input.readUInt32()); - break; - } - case 90: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - pAIGHFEEELO_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - pAIGHFEEELO_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 120: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dIDEMJFOGLD_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - dIDEMJFOGLD_.addInt(input.readUInt32()); - break; - } - case 122: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - dIDEMJFOGLD_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - dIDEMJFOGLD_.addInt(input.readUInt32()); - } - input.popLimit(limit); - 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_ & 0x00000004) != 0)) { - jBNJGMIGFFJ_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - pAIGHFEEELO_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - dIDEMJFOGLD_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.internal_static_NHFPBBLCHKH_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.internal_static_NHFPBBLCHKH_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.class, emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.Builder.class); - } - - public static final int PAIGHFEEELO_FIELD_NUMBER = 11; - private com.google.protobuf.Internal.IntList pAIGHFEEELO_; - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return A list containing the pAIGHFEEELO. - */ - @java.lang.Override - public java.util.List - getPAIGHFEEELOList() { - return pAIGHFEEELO_; - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return The count of pAIGHFEEELO. - */ - public int getPAIGHFEEELOCount() { - return pAIGHFEEELO_.size(); - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @param index The index of the element to return. - * @return The pAIGHFEEELO at the given index. - */ - public int getPAIGHFEEELO(int index) { - return pAIGHFEEELO_.getInt(index); - } - private int pAIGHFEEELOMemoizedSerializedSize = -1; - - public static final int DIDEMJFOGLD_FIELD_NUMBER = 15; - private com.google.protobuf.Internal.IntList dIDEMJFOGLD_; - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return A list containing the dIDEMJFOGLD. - */ - @java.lang.Override - public java.util.List - getDIDEMJFOGLDList() { - return dIDEMJFOGLD_; - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return The count of dIDEMJFOGLD. - */ - public int getDIDEMJFOGLDCount() { - return dIDEMJFOGLD_.size(); - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @param index The index of the element to return. - * @return The dIDEMJFOGLD at the given index. - */ - public int getDIDEMJFOGLD(int index) { - return dIDEMJFOGLD_.getInt(index); - } - private int dIDEMJFOGLDMemoizedSerializedSize = -1; - - public static final int JBNJGMIGFFJ_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList jBNJGMIGFFJ_; - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return A list containing the jBNJGMIGFFJ. - */ - @java.lang.Override - public java.util.List - getJBNJGMIGFFJList() { - return jBNJGMIGFFJ_; - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return The count of jBNJGMIGFFJ. - */ - public int getJBNJGMIGFFJCount() { - return jBNJGMIGFFJ_.size(); - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @param index The index of the element to return. - * @return The jBNJGMIGFFJ at the given index. - */ - public int getJBNJGMIGFFJ(int index) { - return jBNJGMIGFFJ_.getInt(index); - } - private int jBNJGMIGFFJMemoizedSerializedSize = -1; - - 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 (getJBNJGMIGFFJList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(jBNJGMIGFFJMemoizedSerializedSize); - } - for (int i = 0; i < jBNJGMIGFFJ_.size(); i++) { - output.writeUInt32NoTag(jBNJGMIGFFJ_.getInt(i)); - } - if (getPAIGHFEEELOList().size() > 0) { - output.writeUInt32NoTag(90); - output.writeUInt32NoTag(pAIGHFEEELOMemoizedSerializedSize); - } - for (int i = 0; i < pAIGHFEEELO_.size(); i++) { - output.writeUInt32NoTag(pAIGHFEEELO_.getInt(i)); - } - if (getDIDEMJFOGLDList().size() > 0) { - output.writeUInt32NoTag(122); - output.writeUInt32NoTag(dIDEMJFOGLDMemoizedSerializedSize); - } - for (int i = 0; i < dIDEMJFOGLD_.size(); i++) { - output.writeUInt32NoTag(dIDEMJFOGLD_.getInt(i)); - } - 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 < jBNJGMIGFFJ_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(jBNJGMIGFFJ_.getInt(i)); - } - size += dataSize; - if (!getJBNJGMIGFFJList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - jBNJGMIGFFJMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < pAIGHFEEELO_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(pAIGHFEEELO_.getInt(i)); - } - size += dataSize; - if (!getPAIGHFEEELOList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - pAIGHFEEELOMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < dIDEMJFOGLD_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dIDEMJFOGLD_.getInt(i)); - } - size += dataSize; - if (!getDIDEMJFOGLDList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - dIDEMJFOGLDMemoizedSerializedSize = dataSize; - } - 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH)) { - return super.equals(obj); - } - emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH other = (emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH) obj; - - if (!getPAIGHFEEELOList() - .equals(other.getPAIGHFEEELOList())) return false; - if (!getDIDEMJFOGLDList() - .equals(other.getDIDEMJFOGLDList())) return false; - if (!getJBNJGMIGFFJList() - .equals(other.getJBNJGMIGFFJList())) 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 (getPAIGHFEEELOCount() > 0) { - hash = (37 * hash) + PAIGHFEEELO_FIELD_NUMBER; - hash = (53 * hash) + getPAIGHFEEELOList().hashCode(); - } - if (getDIDEMJFOGLDCount() > 0) { - hash = (37 * hash) + DIDEMJFOGLD_FIELD_NUMBER; - hash = (53 * hash) + getDIDEMJFOGLDList().hashCode(); - } - if (getJBNJGMIGFFJCount() > 0) { - hash = (37 * hash) + JBNJGMIGFFJ_FIELD_NUMBER; - hash = (53 * hash) + getJBNJGMIGFFJList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH 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 NHFPBBLCHKH} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:NHFPBBLCHKH) - emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKHOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.internal_static_NHFPBBLCHKH_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.internal_static_NHFPBBLCHKH_fieldAccessorTable - .ensureFieldAccessorsInitialized( - emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.class, emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.Builder.class); - } - - // Construct using emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.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(); - pAIGHFEEELO_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - dIDEMJFOGLD_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - jBNJGMIGFFJ_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.internal_static_NHFPBBLCHKH_descriptor; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH getDefaultInstanceForType() { - return emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.getDefaultInstance(); - } - - @java.lang.Override - public emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH build() { - emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH buildPartial() { - emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH result = new emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - pAIGHFEEELO_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pAIGHFEEELO_ = pAIGHFEEELO_; - if (((bitField0_ & 0x00000002) != 0)) { - dIDEMJFOGLD_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dIDEMJFOGLD_ = dIDEMJFOGLD_; - if (((bitField0_ & 0x00000004) != 0)) { - jBNJGMIGFFJ_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jBNJGMIGFFJ_ = jBNJGMIGFFJ_; - 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH) { - return mergeFrom((emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH other) { - if (other == emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH.getDefaultInstance()) return this; - if (!other.pAIGHFEEELO_.isEmpty()) { - if (pAIGHFEEELO_.isEmpty()) { - pAIGHFEEELO_ = other.pAIGHFEEELO_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePAIGHFEEELOIsMutable(); - pAIGHFEEELO_.addAll(other.pAIGHFEEELO_); - } - onChanged(); - } - if (!other.dIDEMJFOGLD_.isEmpty()) { - if (dIDEMJFOGLD_.isEmpty()) { - dIDEMJFOGLD_ = other.dIDEMJFOGLD_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDIDEMJFOGLDIsMutable(); - dIDEMJFOGLD_.addAll(other.dIDEMJFOGLD_); - } - onChanged(); - } - if (!other.jBNJGMIGFFJ_.isEmpty()) { - if (jBNJGMIGFFJ_.isEmpty()) { - jBNJGMIGFFJ_ = other.jBNJGMIGFFJ_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJBNJGMIGFFJIsMutable(); - jBNJGMIGFFJ_.addAll(other.jBNJGMIGFFJ_); - } - onChanged(); - } - 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.NHFPBBLCHKHOuterClass.NHFPBBLCHKH parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList pAIGHFEEELO_ = emptyIntList(); - private void ensurePAIGHFEEELOIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - pAIGHFEEELO_ = mutableCopy(pAIGHFEEELO_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return A list containing the pAIGHFEEELO. - */ - public java.util.List - getPAIGHFEEELOList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(pAIGHFEEELO_) : pAIGHFEEELO_; - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return The count of pAIGHFEEELO. - */ - public int getPAIGHFEEELOCount() { - return pAIGHFEEELO_.size(); - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @param index The index of the element to return. - * @return The pAIGHFEEELO at the given index. - */ - public int getPAIGHFEEELO(int index) { - return pAIGHFEEELO_.getInt(index); - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @param index The index to set the value at. - * @param value The pAIGHFEEELO to set. - * @return This builder for chaining. - */ - public Builder setPAIGHFEEELO( - int index, int value) { - ensurePAIGHFEEELOIsMutable(); - pAIGHFEEELO_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @param value The pAIGHFEEELO to add. - * @return This builder for chaining. - */ - public Builder addPAIGHFEEELO(int value) { - ensurePAIGHFEEELOIsMutable(); - pAIGHFEEELO_.addInt(value); - onChanged(); - return this; - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @param values The pAIGHFEEELO to add. - * @return This builder for chaining. - */ - public Builder addAllPAIGHFEEELO( - java.lang.Iterable values) { - ensurePAIGHFEEELOIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pAIGHFEEELO_); - onChanged(); - return this; - } - /** - * repeated uint32 PAIGHFEEELO = 11; - * @return This builder for chaining. - */ - public Builder clearPAIGHFEEELO() { - pAIGHFEEELO_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList dIDEMJFOGLD_ = emptyIntList(); - private void ensureDIDEMJFOGLDIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dIDEMJFOGLD_ = mutableCopy(dIDEMJFOGLD_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return A list containing the dIDEMJFOGLD. - */ - public java.util.List - getDIDEMJFOGLDList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(dIDEMJFOGLD_) : dIDEMJFOGLD_; - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return The count of dIDEMJFOGLD. - */ - public int getDIDEMJFOGLDCount() { - return dIDEMJFOGLD_.size(); - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @param index The index of the element to return. - * @return The dIDEMJFOGLD at the given index. - */ - public int getDIDEMJFOGLD(int index) { - return dIDEMJFOGLD_.getInt(index); - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @param index The index to set the value at. - * @param value The dIDEMJFOGLD to set. - * @return This builder for chaining. - */ - public Builder setDIDEMJFOGLD( - int index, int value) { - ensureDIDEMJFOGLDIsMutable(); - dIDEMJFOGLD_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @param value The dIDEMJFOGLD to add. - * @return This builder for chaining. - */ - public Builder addDIDEMJFOGLD(int value) { - ensureDIDEMJFOGLDIsMutable(); - dIDEMJFOGLD_.addInt(value); - onChanged(); - return this; - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @param values The dIDEMJFOGLD to add. - * @return This builder for chaining. - */ - public Builder addAllDIDEMJFOGLD( - java.lang.Iterable values) { - ensureDIDEMJFOGLDIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dIDEMJFOGLD_); - onChanged(); - return this; - } - /** - * repeated uint32 DIDEMJFOGLD = 15; - * @return This builder for chaining. - */ - public Builder clearDIDEMJFOGLD() { - dIDEMJFOGLD_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList jBNJGMIGFFJ_ = emptyIntList(); - private void ensureJBNJGMIGFFJIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jBNJGMIGFFJ_ = mutableCopy(jBNJGMIGFFJ_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return A list containing the jBNJGMIGFFJ. - */ - public java.util.List - getJBNJGMIGFFJList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(jBNJGMIGFFJ_) : jBNJGMIGFFJ_; - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return The count of jBNJGMIGFFJ. - */ - public int getJBNJGMIGFFJCount() { - return jBNJGMIGFFJ_.size(); - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @param index The index of the element to return. - * @return The jBNJGMIGFFJ at the given index. - */ - public int getJBNJGMIGFFJ(int index) { - return jBNJGMIGFFJ_.getInt(index); - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @param index The index to set the value at. - * @param value The jBNJGMIGFFJ to set. - * @return This builder for chaining. - */ - public Builder setJBNJGMIGFFJ( - int index, int value) { - ensureJBNJGMIGFFJIsMutable(); - jBNJGMIGFFJ_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @param value The jBNJGMIGFFJ to add. - * @return This builder for chaining. - */ - public Builder addJBNJGMIGFFJ(int value) { - ensureJBNJGMIGFFJIsMutable(); - jBNJGMIGFFJ_.addInt(value); - onChanged(); - return this; - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @param values The jBNJGMIGFFJ to add. - * @return This builder for chaining. - */ - public Builder addAllJBNJGMIGFFJ( - java.lang.Iterable values) { - ensureJBNJGMIGFFJIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jBNJGMIGFFJ_); - onChanged(); - return this; - } - /** - * repeated uint32 JBNJGMIGFFJ = 3; - * @return This builder for chaining. - */ - public Builder clearJBNJGMIGFFJ() { - jBNJGMIGFFJ_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - 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:NHFPBBLCHKH) - } - - // @@protoc_insertion_point(class_scope:NHFPBBLCHKH) - private static final emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH(); - } - - public static emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NHFPBBLCHKH parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NHFPBBLCHKH(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public emu.grasscutter.net.proto.NHFPBBLCHKHOuterClass.NHFPBBLCHKH getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_NHFPBBLCHKH_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_NHFPBBLCHKH_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\021NHFPBBLCHKH.proto\"L\n\013NHFPBBLCHKH\022\023\n\013PA" + - "IGHFEEELO\030\013 \003(\r\022\023\n\013DIDEMJFOGLD\030\017 \003(\r\022\023\n\013" + - "JBNJGMIGFFJ\030\003 \003(\rB\033\n\031emu.grasscutter.net" + - ".protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_NHFPBBLCHKH_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_NHFPBBLCHKH_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_NHFPBBLCHKH_descriptor, - new java.lang.String[] { "PAIGHFEEELO", "DIDEMJFOGLD", "JBNJGMIGFFJ", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/emu/grasscutter/data/GameData.java b/src/main/java/emu/grasscutter/data/GameData.java index a1436b8d2..e1d692362 100644 --- a/src/main/java/emu/grasscutter/data/GameData.java +++ b/src/main/java/emu/grasscutter/data/GameData.java @@ -276,6 +276,9 @@ public final class GameData { @Getter private static final Int2ObjectMap mapLayerDataMap = new Int2ObjectOpenHashMap<>(); + @Getter + private static final Int2ObjectMap mapLayerFloorDataMap = new Int2ObjectOpenHashMap<>(); + @Getter private static final Int2ObjectMap mapLayerGroupDataMap = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/grasscutter/data/excels/scene/MapLayerFloorData.java b/src/main/java/emu/grasscutter/data/excels/scene/MapLayerFloorData.java new file mode 100644 index 000000000..5a92bc16f --- /dev/null +++ b/src/main/java/emu/grasscutter/data/excels/scene/MapLayerFloorData.java @@ -0,0 +1,31 @@ +package emu.grasscutter.data.excels.scene; + +import emu.grasscutter.data.GameResource; +import emu.grasscutter.data.ResourceType; +import lombok.AccessLevel; +import lombok.Getter; +import lombok.experimental.FieldDefaults; + +import java.util.List; + +@ResourceType(name = "MapLayerFloorExcelConfigData.json") +@Getter +@FieldDefaults(level = AccessLevel.PRIVATE) +public final class MapLayerFloorData extends GameResource { + @Getter(onMethod_ = @Override) + int id; + int PJDGAAAGOPO; + int LCGNJBLMDHA; + long NDAGFKELEAP; // prob text map hash. + CKNDNKLCAHC CKNDNKLCAHC; + long BHEMLJCFHPI; // prob desc text map hash. + + public static class CKNDNKLCAHC { + Unk_Type type; + List paramList; + + public enum Unk_Type { + MAP_FLOOR_NAME_CHANGE_QUEST + } + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerEnterChildMapLayerNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerEnterChildMapLayerNotify.java new file mode 100644 index 000000000..0e91fc821 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerEnterChildMapLayerNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.BMODMHEPOFFOuterClass; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.BMODMHEPOFF) +public class HandlerPlayerEnterChildMapLayerNotify extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + var fromClient = BMODMHEPOFFOuterClass.BMODMHEPOFF.parseFrom(payload); + // probably + Grasscutter.getLogger().info("player entered child map layer: id {}", fromClient.getHJMMAOMEHOL()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerEnterMapLayerNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerEnterMapLayerNotify.java new file mode 100644 index 000000000..fc7ddfab4 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerEnterMapLayerNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ACDCLDJFDFKOuterClass; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.ACDCLDJFDFK) +public class HandlerPlayerEnterMapLayerNotify extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + var fromClient = ACDCLDJFDFKOuterClass.ACDCLDJFDFK.parseFrom(payload); + Grasscutter.getLogger().info("[DEBUG] Player found new map layer: id {}", fromClient.getPPLHKCKDHEC()); + + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java index 00413e5fc..9fc623322 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java @@ -4,6 +4,7 @@ import emu.grasscutter.data.GameData; import emu.grasscutter.data.excels.scene.SceneTagData; import emu.grasscutter.net.packet.BasePacket; import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.MapLayerInfoOuterClass; import emu.grasscutter.net.proto.PlayerWorldSceneInfoListNotifyOuterClass.PlayerWorldSceneInfoListNotify; import emu.grasscutter.net.proto.PlayerWorldSceneInfoOuterClass.PlayerWorldSceneInfo; @@ -36,6 +37,11 @@ public class PacketPlayerWorldSceneInfoListNotify extends BasePacket { .addSceneTagIdList(153) // 3.1 event .addSceneTagIdList(1164) // Desert Arena (XMSM_CWLTop) .addSceneTagIdList(1166) // Desert Pyramid (CWL_Trans_02) + .setMapLayerInfo(MapLayerInfoOuterClass.MapLayerInfo.newBuilder() + .addAllUnlockedMapLayerIdList(GameData.getMapLayerDataMap().keySet()) // MapLayer Ids + .addAllUnlockedMapLayerFloorIdList(GameData.getMapLayerFloorDataMap().keySet()) + .addAllUnlockedMapLayerGroupIdList(GameData.getMapLayerGroupDataMap().keySet()) // will show MapLayer options when hovered over + .build()) //map layer test .build()) .addInfoList(PlayerWorldSceneInfo.newBuilder() .setSceneId(4)