跑马灯& 回溯

back_recharge
wangyuan 2019-10-08 15:31:28 +08:00
parent 6f1972e902
commit 36340f3a18
22 changed files with 5009 additions and 788 deletions

View File

@ -20987,6 +20987,875 @@ public final class FightInfoProto {
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.AdventureCallBossResponse)
}
public interface MainLevelRankInfoResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
java.util.List<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo>
getMainLevelRankInfoList();
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo getMainLevelRankInfo(int index);
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
int getMainLevelRankInfoCount();
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
java.util.List<? extends com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>
getMainLevelRankInfoOrBuilderList();
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder getMainLevelRankInfoOrBuilder(
int index);
// optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
boolean hasMyMainLevelRankInfo();
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo getMyMainLevelRankInfo();
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder getMyMainLevelRankInfoOrBuilder();
}
/**
* Protobuf type {@code com.ljsd.jieling.protocols.MainLevelRankInfoResponse}
*/
public static final class MainLevelRankInfoResponse extends
com.google.protobuf.GeneratedMessage
implements MainLevelRankInfoResponseOrBuilder {
// Use MainLevelRankInfoResponse.newBuilder() to construct.
private MainLevelRankInfoResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MainLevelRankInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MainLevelRankInfoResponse defaultInstance;
public static MainLevelRankInfoResponse getDefaultInstance() {
return defaultInstance;
}
public MainLevelRankInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MainLevelRankInfoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mainLevelRankInfo_ = new java.util.ArrayList<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo>();
mutable_bitField0_ |= 0x00000001;
}
mainLevelRankInfo_.add(input.readMessage(com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.PARSER, extensionRegistry));
break;
}
case 18: {
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = myMainLevelRankInfo_.toBuilder();
}
myMainLevelRankInfo_ = input.readMessage(com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(myMainLevelRankInfo_);
myMainLevelRankInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mainLevelRankInfo_ = java.util.Collections.unmodifiableList(mainLevelRankInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ljsd.jieling.protocols.FightInfoProto.internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ljsd.jieling.protocols.FightInfoProto.internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.class, com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser<MainLevelRankInfoResponse> PARSER =
new com.google.protobuf.AbstractParser<MainLevelRankInfoResponse>() {
public MainLevelRankInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MainLevelRankInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<MainLevelRankInfoResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;
public static final int MAINLEVELRANKINFO_FIELD_NUMBER = 1;
private java.util.List<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo> mainLevelRankInfo_;
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public java.util.List<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo> getMainLevelRankInfoList() {
return mainLevelRankInfo_;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public java.util.List<? extends com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>
getMainLevelRankInfoOrBuilderList() {
return mainLevelRankInfo_;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public int getMainLevelRankInfoCount() {
return mainLevelRankInfo_.size();
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo getMainLevelRankInfo(int index) {
return mainLevelRankInfo_.get(index);
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder getMainLevelRankInfoOrBuilder(
int index) {
return mainLevelRankInfo_.get(index);
}
// optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;
public static final int MYMAINLEVELRANKINFO_FIELD_NUMBER = 2;
private com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo myMainLevelRankInfo_;
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public boolean hasMyMainLevelRankInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo getMyMainLevelRankInfo() {
return myMainLevelRankInfo_;
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder getMyMainLevelRankInfoOrBuilder() {
return myMainLevelRankInfo_;
}
private void initFields() {
mainLevelRankInfo_ = java.util.Collections.emptyList();
myMainLevelRankInfo_ = com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < mainLevelRankInfo_.size(); i++) {
output.writeMessage(1, mainLevelRankInfo_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, myMainLevelRankInfo_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < mainLevelRankInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, mainLevelRankInfo_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, myMainLevelRankInfo_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.ljsd.jieling.protocols.MainLevelRankInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ljsd.jieling.protocols.FightInfoProto.internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ljsd.jieling.protocols.FightInfoProto.internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.class, com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.Builder.class);
}
// Construct using com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMainLevelRankInfoFieldBuilder();
getMyMainLevelRankInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (mainLevelRankInfoBuilder_ == null) {
mainLevelRankInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
mainLevelRankInfoBuilder_.clear();
}
if (myMainLevelRankInfoBuilder_ == null) {
myMainLevelRankInfo_ = com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance();
} else {
myMainLevelRankInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ljsd.jieling.protocols.FightInfoProto.internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_descriptor;
}
public com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse getDefaultInstanceForType() {
return com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.getDefaultInstance();
}
public com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse build() {
com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse buildPartial() {
com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse result = new com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (mainLevelRankInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
mainLevelRankInfo_ = java.util.Collections.unmodifiableList(mainLevelRankInfo_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.mainLevelRankInfo_ = mainLevelRankInfo_;
} else {
result.mainLevelRankInfo_ = mainLevelRankInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (myMainLevelRankInfoBuilder_ == null) {
result.myMainLevelRankInfo_ = myMainLevelRankInfo_;
} else {
result.myMainLevelRankInfo_ = myMainLevelRankInfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse) {
return mergeFrom((com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse other) {
if (other == com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse.getDefaultInstance()) return this;
if (mainLevelRankInfoBuilder_ == null) {
if (!other.mainLevelRankInfo_.isEmpty()) {
if (mainLevelRankInfo_.isEmpty()) {
mainLevelRankInfo_ = other.mainLevelRankInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.addAll(other.mainLevelRankInfo_);
}
onChanged();
}
} else {
if (!other.mainLevelRankInfo_.isEmpty()) {
if (mainLevelRankInfoBuilder_.isEmpty()) {
mainLevelRankInfoBuilder_.dispose();
mainLevelRankInfoBuilder_ = null;
mainLevelRankInfo_ = other.mainLevelRankInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
mainLevelRankInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMainLevelRankInfoFieldBuilder() : null;
} else {
mainLevelRankInfoBuilder_.addAllMessages(other.mainLevelRankInfo_);
}
}
}
if (other.hasMyMainLevelRankInfo()) {
mergeMyMainLevelRankInfo(other.getMyMainLevelRankInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.ljsd.jieling.protocols.FightInfoProto.MainLevelRankInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;
private java.util.List<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo> mainLevelRankInfo_ =
java.util.Collections.emptyList();
private void ensureMainLevelRankInfoIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
mainLevelRankInfo_ = new java.util.ArrayList<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo>(mainLevelRankInfo_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder> mainLevelRankInfoBuilder_;
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public java.util.List<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo> getMainLevelRankInfoList() {
if (mainLevelRankInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(mainLevelRankInfo_);
} else {
return mainLevelRankInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public int getMainLevelRankInfoCount() {
if (mainLevelRankInfoBuilder_ == null) {
return mainLevelRankInfo_.size();
} else {
return mainLevelRankInfoBuilder_.getCount();
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo getMainLevelRankInfo(int index) {
if (mainLevelRankInfoBuilder_ == null) {
return mainLevelRankInfo_.get(index);
} else {
return mainLevelRankInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder setMainLevelRankInfo(
int index, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo value) {
if (mainLevelRankInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.set(index, value);
onChanged();
} else {
mainLevelRankInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder setMainLevelRankInfo(
int index, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder builderForValue) {
if (mainLevelRankInfoBuilder_ == null) {
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.set(index, builderForValue.build());
onChanged();
} else {
mainLevelRankInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder addMainLevelRankInfo(com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo value) {
if (mainLevelRankInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.add(value);
onChanged();
} else {
mainLevelRankInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder addMainLevelRankInfo(
int index, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo value) {
if (mainLevelRankInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.add(index, value);
onChanged();
} else {
mainLevelRankInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder addMainLevelRankInfo(
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder builderForValue) {
if (mainLevelRankInfoBuilder_ == null) {
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.add(builderForValue.build());
onChanged();
} else {
mainLevelRankInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder addMainLevelRankInfo(
int index, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder builderForValue) {
if (mainLevelRankInfoBuilder_ == null) {
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.add(index, builderForValue.build());
onChanged();
} else {
mainLevelRankInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder addAllMainLevelRankInfo(
java.lang.Iterable<? extends com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo> values) {
if (mainLevelRankInfoBuilder_ == null) {
ensureMainLevelRankInfoIsMutable();
super.addAll(values, mainLevelRankInfo_);
onChanged();
} else {
mainLevelRankInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder clearMainLevelRankInfo() {
if (mainLevelRankInfoBuilder_ == null) {
mainLevelRankInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
mainLevelRankInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public Builder removeMainLevelRankInfo(int index) {
if (mainLevelRankInfoBuilder_ == null) {
ensureMainLevelRankInfoIsMutable();
mainLevelRankInfo_.remove(index);
onChanged();
} else {
mainLevelRankInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder getMainLevelRankInfoBuilder(
int index) {
return getMainLevelRankInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder getMainLevelRankInfoOrBuilder(
int index) {
if (mainLevelRankInfoBuilder_ == null) {
return mainLevelRankInfo_.get(index); } else {
return mainLevelRankInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public java.util.List<? extends com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>
getMainLevelRankInfoOrBuilderList() {
if (mainLevelRankInfoBuilder_ != null) {
return mainLevelRankInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mainLevelRankInfo_);
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder addMainLevelRankInfoBuilder() {
return getMainLevelRankInfoFieldBuilder().addBuilder(
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance());
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder addMainLevelRankInfoBuilder(
int index) {
return getMainLevelRankInfoFieldBuilder().addBuilder(
index, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance());
}
/**
* <code>repeated .com.ljsd.jieling.protocols.MainLevelRankInfo MainLevelRankInfo = 1;</code>
*/
public java.util.List<com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder>
getMainLevelRankInfoBuilderList() {
return getMainLevelRankInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>
getMainLevelRankInfoFieldBuilder() {
if (mainLevelRankInfoBuilder_ == null) {
mainLevelRankInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>(
mainLevelRankInfo_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
mainLevelRankInfo_ = null;
}
return mainLevelRankInfoBuilder_;
}
// optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;
private com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo myMainLevelRankInfo_ = com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder> myMainLevelRankInfoBuilder_;
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public boolean hasMyMainLevelRankInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo getMyMainLevelRankInfo() {
if (myMainLevelRankInfoBuilder_ == null) {
return myMainLevelRankInfo_;
} else {
return myMainLevelRankInfoBuilder_.getMessage();
}
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public Builder setMyMainLevelRankInfo(com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo value) {
if (myMainLevelRankInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
myMainLevelRankInfo_ = value;
onChanged();
} else {
myMainLevelRankInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public Builder setMyMainLevelRankInfo(
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder builderForValue) {
if (myMainLevelRankInfoBuilder_ == null) {
myMainLevelRankInfo_ = builderForValue.build();
onChanged();
} else {
myMainLevelRankInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public Builder mergeMyMainLevelRankInfo(com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo value) {
if (myMainLevelRankInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
myMainLevelRankInfo_ != com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance()) {
myMainLevelRankInfo_ =
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.newBuilder(myMainLevelRankInfo_).mergeFrom(value).buildPartial();
} else {
myMainLevelRankInfo_ = value;
}
onChanged();
} else {
myMainLevelRankInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public Builder clearMyMainLevelRankInfo() {
if (myMainLevelRankInfoBuilder_ == null) {
myMainLevelRankInfo_ = com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.getDefaultInstance();
onChanged();
} else {
myMainLevelRankInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder getMyMainLevelRankInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMyMainLevelRankInfoFieldBuilder().getBuilder();
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder getMyMainLevelRankInfoOrBuilder() {
if (myMainLevelRankInfoBuilder_ != null) {
return myMainLevelRankInfoBuilder_.getMessageOrBuilder();
} else {
return myMainLevelRankInfo_;
}
}
/**
* <code>optional .com.ljsd.jieling.protocols.MainLevelRankInfo myMainLevelRankInfo = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>
getMyMainLevelRankInfoFieldBuilder() {
if (myMainLevelRankInfoBuilder_ == null) {
myMainLevelRankInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfo.Builder, com.ljsd.jieling.protocols.CommonProto.MainLevelRankInfoOrBuilder>(
myMainLevelRankInfo_,
getParentForChildren(),
isClean());
myMainLevelRankInfo_ = null;
}
return myMainLevelRankInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.MainLevelRankInfoResponse)
}
static {
defaultInstance = new MainLevelRankInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.MainLevelRankInfoResponse)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_ljsd_jieling_protocols_FightStartRequest_descriptor;
private static
@ -21122,6 +21991,11 @@ public final class FightInfoProto {
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_ljsd_jieling_protocols_AdventureCallBossResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@ -21210,7 +22084,11 @@ public final class FightInfoProto {
"\014\n\004type\030\001 \001(\005\"k\n\031AdventureCallBossRespon" +
"se\022N\n\021adventureBossInfo\030\001 \001(\01323.com.ljsd" +
".jieling.protocols.AdventureBossSimpleIn" +
"foB\002H\001"
"fo\"\261\001\n\031MainLevelRankInfoResponse\022H\n\021Main",
"LevelRankInfo\030\001 \003(\0132-.com.ljsd.jieling.p" +
"rotocols.MainLevelRankInfo\022J\n\023myMainLeve" +
"lRankInfo\030\002 \001(\0132-.com.ljsd.jieling.proto" +
"cols.MainLevelRankInfoB\002H\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@ -21379,6 +22257,12 @@ public final class FightInfoProto {
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_AdventureCallBossResponse_descriptor,
new java.lang.String[] { "AdventureBossInfo", });
internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(27);
internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_MainLevelRankInfoResponse_descriptor,
new java.lang.String[] { "MainLevelRankInfo", "MyMainLevelRankInfo", });
return null;
}
};

View File

@ -19,10 +19,22 @@ public class SDifferDemonsConfig implements BaseConfig {
public static Map<Integer,SDifferDemonsConfig> sDifferDemonsConfigMap;
public static Map<Integer,SDifferDemonsConfig> sDifferDemonsConfigMapByComId;
@Override
public void init() throws Exception {
sDifferDemonsConfigMap= STableManager.getConfig(SDifferDemonsConfig.class);
Map<Integer, SDifferDemonsConfig> config = STableManager.getConfig(SDifferDemonsConfig.class);
Map<Integer,SDifferDemonsConfig> sDifferDemonsConfigMapByComIdTmp = new HashMap<>();
for(SDifferDemonsConfig sDifferDemonsConfig : config.values()){
int[] comonpentList = sDifferDemonsConfig.getComonpentList();
for(int comId : comonpentList){
sDifferDemonsConfigMapByComIdTmp.put(comId,sDifferDemonsConfig);
}
}
sDifferDemonsConfigMap = config;
sDifferDemonsConfigMapByComId = sDifferDemonsConfigMapByComIdTmp;
}
public static SDifferDemonsConfig getsDifferDemonsConfigByPokenID(int pokenmonId) {

View File

@ -110,6 +110,8 @@ public class SGameSetting implements BaseConfig {
private int[] equipSignUnlock;
private int[] heroReturn;
private static SGameSetting gameSetting;

View File

@ -21,6 +21,8 @@ public class SHeroLevlConfig implements BaseConfig{
private int[][] consume;
private int[][] sumConsume;
private int[][] rankupReturn;
@Override
@ -60,4 +62,8 @@ public class SHeroLevlConfig implements BaseConfig{
public float getSpeedLevelPara() {
return speedLevelPara;
}
public int[][] getRankupReturn() {
return rankupReturn;
}
}

View File

@ -0,0 +1,90 @@
package com.ljsd.jieling.config;
import com.ljsd.jieling.logic.STableManager;
import com.ljsd.jieling.logic.Table;
import java.util.HashMap;
import java.util.Map;
@Table(name ="HeroReturn")
public class SHeroReturn implements BaseConfig {
private int id;
private int heroId;
private int star;
private int[] rankupReturn;
private int[][] returnHero;
private int[][] returnConsume;
private int[][] returnMaterials;
public static Map<Integer,Map<Integer,SHeroReturn>> sheroReturnMap;
@Override
public void init() throws Exception {
Map<Integer, SHeroReturn> config = STableManager.getConfig(SHeroReturn.class);
Map<Integer,Map<Integer,SHeroReturn>> sheroReturnMapTmp = new HashMap<>();
for(SHeroReturn sHeroReturn : config.values()){
int heroId = sHeroReturn.getHeroId();
if(!sheroReturnMapTmp.containsKey(heroId)){
sheroReturnMapTmp.put(heroId,new HashMap<>());
}
Map<Integer, SHeroReturn> sHeroReturnMapByStar = sheroReturnMapTmp.get(heroId);
int star = sHeroReturn.getStar();
if(sHeroReturnMapByStar.containsKey(star)){
int[] rankupReturn = sHeroReturn.getRankupReturn();
int[][] returnHero = sHeroReturn.getReturnHero();
int length = 1 + returnHero.length ;
int[][] returnMaterialsTmp = new int[length][];
for(int i=0;i<returnHero.length;i++){
returnMaterialsTmp[i]=returnHero[i];
}
returnMaterialsTmp[length-1] = new int[2];
returnMaterialsTmp[length-1][0] = rankupReturn[0];
returnMaterialsTmp[length-1][1] = rankupReturn[1];
sHeroReturn.setReturnMaterials(returnMaterialsTmp);
sHeroReturnMapByStar.put(star,sHeroReturn);
}
}
sheroReturnMap = sheroReturnMapTmp;
}
public int getId() {
return id;
}
public int getHeroId() {
return heroId;
}
public int getStar() {
return star;
}
public int[] getRankupReturn() {
return rankupReturn;
}
public int[][] getReturnHero() {
return returnHero;
}
public int[][] getReturnConsume() {
return returnConsume;
}
public int[][] getReturnMaterials() {
return returnMaterials;
}
public void setReturnMaterials(int[][] returnMaterials) {
this.returnMaterials = returnMaterials;
}
}

View File

@ -29,6 +29,7 @@ public class SSpecialConfig implements BaseConfig {
public static final String FRIENDAMOUNT_LIMIT = "FriendAmount_limit";//好友上限
public static final String FRIENDAPPLYAMOUNT_LIMIT = "FriendApplyAmount_limit";//好友申请上限
public static final String Friend_Gift = "Friend_Gift";//好友赠送友情点
public static final String Level_RankingShowNum = "Level_RankingShowNum";//关卡排行

View File

@ -122,6 +122,8 @@ public class RedisKey {
public static final String FORCE_RANK = "FORCE_RANK";
public static final String EXPERT_RANK = "EXPERT_RANK";
public static final String MAINLEVEL_RANK = "MAINLEVEL_RANK";
public static final String FAMILY_ID = "FAMILY_ID";
public static final String FAMILY_JOIN = "FAMILY_JOIN";

View File

@ -90,6 +90,8 @@ public interface BIReason {
int LUCK_WHEEl_ADVANCE_REWARD = 54; //高级幸运转盘
int SYSTERM_OPEN_REWARD = 54; //系统开放奖励
int HERO_BACK_REWARD = 55; // 英雄回溯返回东西
//道具消耗原因 1000开头
int ADVENTURE_UPLEVEL_CONSUME = 1000; //秘境升级
int SECRETBOX_CONSUME = 1001; //秘盒抽卡
@ -160,5 +162,7 @@ public interface BIReason {
int LUCK_WHEEL = 1038; //幸运转盘消耗
int LUCK_WHEEL_ADVANCE = 1039; //高级幸运转盘消耗
int HERO_BACK_CONSUME = 1040; // 英雄回溯消耗
}

View File

@ -150,7 +150,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
.addAllTowerReceivedReward(towerFloorReceivedReward)
.addAllGoodsTypeDuration(goodsTypeDurations)
.setHadBuyTreasure(playerInfoManager.getHadBuyTreasure())
.setTreasureScore(playerInfoManager.getTreasureScore())
// .setTreasureScore(playerInfoManager.getTreasureScore())
.setSignInInfo(CommonProto.SignInInfo.newBuilder().setDays(playerInfoManager.getSign()+1).setState(playerInfoManager.getSignTotay()).build())
.setMonsterAttackTime(user.getMapManager().getLastMonsterAttack())
.setFirstTenth(user.getHeroManager().getFirstTenth())

View File

@ -0,0 +1,20 @@
package com.ljsd.jieling.handler;
import com.ljsd.jieling.logic.hero.HeroLogic;
import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.HeroInfoProto;
import com.ljsd.jieling.protocols.MessageTypeProto;
import org.springframework.stereotype.Component;
@Component
public class HeroReturnHandler extends BaseHandler<HeroInfoProto.HeroReturnRequest>{
@Override
public MessageTypeProto.MessageType getMessageCode() {
return MessageTypeProto.MessageType.HERO_RETURN_REQUEST;
}
@Override
public void processWithProto(ISession iSession, HeroInfoProto.HeroReturnRequest proto) throws Exception {
HeroLogic.getInstance().heroBack(iSession,proto.getHeroId());
}
}

View File

@ -1,6 +1,10 @@
package com.ljsd.jieling.handler.equip;
import com.ljsd.jieling.chat.logic.ChatLogic;
import com.ljsd.jieling.config.SEquipSign;
import com.ljsd.jieling.config.SErrorCodeEerverConfig;
import com.ljsd.jieling.config.SItem;
import com.ljsd.jieling.globals.Global;
import com.ljsd.jieling.handler.BaseHandler;
import com.ljsd.jieling.logic.activity.event.EquipEvent;
import com.ljsd.jieling.logic.activity.event.Poster;
@ -91,6 +95,11 @@ public class UpSoulEquipQuiickHandler extends BaseHandler<HeroInfoProto.UpQuickS
builder.addAllSoulEquipIds(consumIds);
builder.setEquipId(upQuickSoulEquipRequest.getEquipId());
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.UP_SOUL_EQUIP_RESPONSE_VALUE, builder.build(), true);
if(soulEquip.getLevel()>=10){
SItem sItem = SItem.getsItemMap().get(soulEquip.getEquipId());
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_rankup_equipsign_content", new Object[]{user.getPlayerInfoManager().getNickName(), sItem.getName(),soulEquip.getLevel()});
ChatLogic.getInstance().sendSysChatMessage(message, Global.DILIGENT,sItem.getId(),0,0,0,0,0);
}
}
}

View File

@ -3,6 +3,7 @@ package com.ljsd.jieling.handler.map;
import com.googlecode.protobuf.format.JsonFormat;
import com.ljsd.jieling.config.*;
import com.ljsd.jieling.core.FunctionIdEnum;
import com.ljsd.jieling.core.GlobalsDef;
import com.ljsd.jieling.core.VipPrivilegeType;
import com.ljsd.jieling.dataReport.reportBeans_37.ChatContentType;
import com.ljsd.jieling.dataReport.reportBeans_37.Repot37EventUtil;
@ -39,6 +40,7 @@ import com.ljsd.jieling.util.*;
import org.luaj.vm2.LuaValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.session.SessionProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.core.query.Query;
@ -2185,6 +2187,69 @@ public class MapLogic {
fightEndResponse.setResult(resultCode);
fightEndResponse.build();
MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightEndResponse.build(), true);
String rankKey = RedisKey.getKey(RedisKey.MAINLEVEL_RANK, "", false);
RedisUtil.getInstence().zsetAddOne(rankKey, String.valueOf(user.getId()), fightId);
}
public void getMainLevelRankInfo(ISession session) throws Exception {
int rankEndLine = SSpecialConfig.getIntegerValue(SSpecialConfig.Level_RankingShowNum);
Set<ZSetOperations.TypedTuple<String>> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.MAINLEVEL_RANK, "", 0, rankEndLine);
int rank =1;
FightInfoProto.MainLevelRankInfoResponse.Builder builder = FightInfoProto.MainLevelRankInfoResponse.newBuilder();
List<CommonProto.MainLevelRankInfo.Builder> mainLevelRankInfoList = new ArrayList<>(rankEndLine);
for (ZSetOperations.TypedTuple<String> item : arenaRankInfo) {
String value = item.getValue();
int score = item.getScore().intValue();
int uidTmp = Integer.parseInt(value);
User userTmp = UserManager.getUser(uidTmp);
PlayerManager playerInfoManager = userTmp.getPlayerInfoManager();
mainLevelRankInfoList.add(CommonProto.MainLevelRankInfo.newBuilder()
.setUid(uidTmp)
.setLevel(playerInfoManager.getLevel())
.setName(playerInfoManager.getNickName())
.setFightId(score)
.setHead(0)
.setRank(rank++)
.setTotalForce(userTmp.getPlayerInfoManager().getMaxForce())
.setHeadFrame(playerInfoManager.getHeadFrame()));
}
Collections.sort(mainLevelRankInfoList, new Comparator<CommonProto.MainLevelRankInfo.Builder>() {
@Override
public int compare(CommonProto.MainLevelRankInfo.Builder o1, CommonProto.MainLevelRankInfo.Builder o2) {
if(o1.getFightId()==o2.getFightId()){
if(o1.getTotalForce()>o2.getTotalForce() && o1.getRank()>o2.getRank()){
int rank = o1.getRank();
o1.setRank(o2.getRank());
o2.setRank(rank);
}
}
return o1.getFightId() - o2.getFightId();
}
});
for(CommonProto.MainLevelRankInfo.Builder builder1 : mainLevelRankInfoList){
builder.addMainLevelRankInfo(builder1.build());
}
int uid = session.getUid();
int score = RedisUtil.getInstence().getZSetScore(RedisKey.MAINLEVEL_RANK,"", Integer.toString(uid)).intValue();
int myRank =-1;
if(score == -1){
score = 1011;
}else{
myRank= RedisUtil.getInstence().getZSetreverseRank(RedisKey.MAINLEVEL_RANK,"",Integer.toString(uid)).intValue();
}
User user = UserManager.getUser(uid);
PlayerManager playerInfoManager = user.getPlayerInfoManager();
builder.setMyMainLevelRankInfo(CommonProto.MainLevelRankInfo.newBuilder()
.setUid(uid)
.setLevel(playerInfoManager.getLevel())
.setName(playerInfoManager.getNickName())
.setFightId(score)
.setHead(0)
.setRank(myRank)
.setTotalForce(playerInfoManager.getMaxForce())
.setHeadFrame(playerInfoManager.getHeadFrame()).build());
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.MAIN_LEVEL_GET_RANK_RESPONSE_VALUE,builder.build(),true);
}
public void openNextMainLevel(User user,int fightId) throws Exception {

View File

@ -0,0 +1,21 @@
package com.ljsd.jieling.handler.map.mapHandler;
import com.ljsd.jieling.handler.BaseHandler;
import com.ljsd.jieling.handler.map.MapLogic;
import com.ljsd.jieling.netty.cocdex.PacketNetData;
import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.MessageTypeProto;
import org.springframework.stereotype.Component;
@Component
public class GetMainLevelRankHandler extends BaseHandler {
@Override
public MessageTypeProto.MessageType getMessageCode() {
return MessageTypeProto.MessageType.MAIN_LEVEL_GET_RANK_REQUEST;
}
@Override
public void process(ISession iSession, PacketNetData netData) throws Exception {
MapLogic.getInstance().getMainLevelRankInfo(iSession);
}
}

View File

@ -16,7 +16,7 @@ public class MainLevelManager extends MongoBase {
private int startTime;
private int lastTime; //上一个关卡记时时间
private Map<Integer,Integer> fightStateInfo = new HashMap<>();
private Map<Integer,Set<String>> bossIds = new HashMap<>();
private Map<Integer,HashSet<String>> bossIds = new HashMap<>();
public void init(){
this.startTime = (int)(System.currentTimeMillis()/1000);
@ -115,7 +115,7 @@ public class MainLevelManager extends MongoBase {
return lastTime;
}
public Map<Integer, Set<String>> getBossIds() {
public Map<Integer, HashSet<String>> getBossIds() {
return bossIds;
}

View File

@ -698,7 +698,7 @@ public class HeroLogic {
targetHero.setStarBreakId(scHeroRankUpConfig.getId());
user.getUserMissionManager().onGameEvent(user,GameEvent.HERO_UP,2,targetHero.getTemplateId(),targetHero.getStar());
MessageUtil.sendMessage(session,1,MessageTypeProto.MessageType.UP_HERO_STAR_RESPONSE_VALUE,baseBuilder.build(),true);
if(targetHero.getStar()>=7){
if(targetHero.getStar()>=10){
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_rankup_hero_content", new Object[]{user.getPlayerInfoManager().getNickName(), scHero.getReadingName(),targetHero.getStar()});
ChatLogic.getInstance().sendSysChatMessage(message,Global.DILIGENT,targetHero.getTemplateId(),0,0,0,0,0);
}
@ -1751,10 +1751,10 @@ public class HeroLogic {
MessageUtil.sendMessage(session,1,MessageTypeProto.MessageType.POKEMON_ADVANCED_RESPONSE_VALUE,null,true);
String message=null;
if(pokemon.getAllStage()==1){
message = SErrorCodeEerverConfig.getI18NMessage("lamp_activate_differ_golden_content", new Object[]{user.getPlayerInfoManager().getNickName(),sDifferDemonsConfig.getName() });
message = SErrorCodeEerverConfig.getI18NMessage("lamp_activate_differ_content", new Object[]{user.getPlayerInfoManager().getNickName(),sDifferDemonsConfig.getName() });
}else{
message = SErrorCodeEerverConfig.getI18NMessage("lamp_rankup_differ_golden_content", new Object[]{user.getPlayerInfoManager().getNickName(), sDifferDemonsConfig.getName(),pokemon.getAllStage()});
}else if(pokemon.getAllStage()>=10){
message = SErrorCodeEerverConfig.getI18NMessage("lamp_rankup_differ_content", new Object[]{user.getPlayerInfoManager().getNickName(), sDifferDemonsConfig.getName(),pokemon.getAllStage()});
}
ChatLogic.getInstance().sendSysChatMessage(message,Global.DILIGENT,sDifferDemonsConfig.getId(),0,0,0,0,0);
@ -2067,4 +2067,43 @@ public class HeroLogic {
}
}
}
public void heroBack(ISession session,String heroId) throws Exception {
int uid = session.getUid();
int responseMsgId = MessageTypeProto.MessageType.HERO_RETURN_RESPONSE_VALUE;
User user = UserManager.getUser(uid);
HeroManager heroManager = user.getHeroManager();
Hero hero = user.getHeroManager().getHero(heroId);
if(hero == null){
MessageUtil.sendErrorResponse(session,0,responseMsgId,"no hero");
return;
}
int star = hero.getStar();
int templateId = hero.getTemplateId();
Map<Integer, SHeroReturn> sHeroReturnMap = SHeroReturn.sheroReturnMap.get(templateId);
if(sHeroReturnMap == null || sHeroReturnMap.containsKey(star)){
MessageUtil.sendErrorResponse(session,0,responseMsgId,"not satisfy");
return;
}
boolean battleArray = HeroLogic.getInstance().isBattleArray(user, heroId);
if (battleArray){
MessageUtil.sendErrorResponse(session,0,responseMsgId,"妖灵师在阵容中");
return;
}
SHeroReturn sHeroReturn = sHeroReturnMap.get(star);
boolean b = ItemUtil.itemCost(user, sHeroReturn.getReturnConsume(), BIReason.HERO_BACK_CONSUME, templateId * 100 + star);
if(!b){
MessageUtil.sendErrorResponse(session,0,responseMsgId,"材料不足");
return;
}
heroManager.removeHero(heroId);
int[][] returnMaterials = sHeroReturn.getReturnMaterials();
CommonProto.Drop.Builder drop = ItemUtil.drop(user, returnMaterials, BIReason.HERO_BACK_REWARD);
SHeroLevlConfig sHeroLevlConfig = SHeroLevlConfig.getsHeroLevlConfigMap().get(hero.getLevel());
ItemUtil.drop(user, sHeroLevlConfig.getRankupReturn(),drop, BIReason.HERO_BACK_REWARD);
HeroInfoProto.HeroReturnResponse build = HeroInfoProto.HeroReturnResponse.newBuilder().setDrop(drop).build();
MessageUtil.sendMessage(session,1,responseMsgId,build,true);
}
}

View File

@ -1,5 +1,6 @@
package com.ljsd.jieling.logic.item;
import com.ljsd.jieling.chat.logic.ChatLogic;
import com.ljsd.jieling.config.*;
import com.ljsd.jieling.db.mongo.MongoUtil;
import com.ljsd.jieling.globals.BIReason;
@ -494,6 +495,11 @@ public class ItemLogic {
Poster.getPoster().dispatchEvent(new EspecialEquipUpEvent(user.getId(),0, user.getEquipManager().getEspecialEquipMap().get(equipId).getStar()));
user.getUserMissionManager().onGameEvent(user, GameEvent.ESPECIAL_EQUIP,especialEquip.getStar()+1);
MessageUtil.sendMessage(session,1,MessageTypeProto.MessageType.UP_HERO_STAR_RESPONSE_VALUE,null,true);
if(especialEquip.getStar()>=8){
SItem sItem = SItem.getsItemMap().get(especialEquip.getEquipId());
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_rankup_equiptalisman_content", new Object[]{user.getPlayerInfoManager().getNickName(), sItem.getName(),especialEquip.getStar()});
ChatLogic.getInstance().sendSysChatMessage(message,Global.DILIGENT,sItem.getId(),0,0,0,0,0);
}
}else{
MessageUtil.sendErrorResponse(session,0,MessageTypeProto.MessageType.UP_HERO_STAR_RESPONSE_VALUE,"材料不足");

View File

@ -453,9 +453,9 @@ public class CBean2Proto {
.setState(state)
.setDuration(duration);
Map<Integer, Set<String>> bossIds = mainLevelManager.getBossIds();
Map<Integer, HashSet<String>> bossIds = mainLevelManager.getBossIds();
boolean update =false;
for(Map.Entry<Integer, Set<String>> item : bossIds.entrySet()){
for(Map.Entry<Integer, HashSet<String>> item : bossIds.entrySet()){
Integer fightId = item.getKey();
Set<String> value = item.getValue();
SMainLevelConfig sMainLevelConfig = SMainLevelConfig.config.get(mainLevelManager.getFightId());

View File

@ -77,6 +77,20 @@ public class ItemUtil {
return dropBuilder;
}
public static CommonProto.Drop.Builder drop(User user, int[][] itemArr,CommonProto.Drop.Builder dropBuilder,int reason) throws Exception {
Map<Integer, Integer> itemMap = new HashMap<>();
Map<Integer, Integer> cardMap = new HashMap<>();
Map<Integer,Integer> equipMap = new HashMap<>();
Map<Integer,Integer> randomMap = new HashMap<>();
selectItemArr(itemArr,cardMap,itemMap,equipMap,randomMap);
useRandomItem(user,randomMap,reason);
addItem(user,itemMap,dropBuilder,reason);
addCard(user,cardMap,dropBuilder,reason);
addEquip(user,equipMap,dropBuilder,reason);
addSoulEquip(user,equipMap,dropBuilder,reason);
return dropBuilder;
}
//指定道具掉落(如:邮件,初始化物品)
public static CommonProto.Drop.Builder drop(User user, List<int[][]> itemArrs,int reason) throws Exception {
CommonProto.Drop.Builder dropBuilder = CommonProto.Drop.newBuilder();
@ -491,8 +505,9 @@ public class ItemUtil {
}
KtEventUtils.onKtEvent(user, eventType,reason,GlobalsDef.addReason,entry.getKey(),itemNum,item.getItemNum());
if(sItem.getItemType() == GlobalItemType.POKENMON_COMONPENT){
SDifferDemonsConfig sDifferDemonsConfig = SDifferDemonsConfig.sDifferDemonsConfigMapByComId.get(sItem.getId());
String nickName = user.getPlayerInfoManager().getNickName();
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_lottery_differ_content", new Object[]{nickName,sItem.getName()});
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_lottery_differ_content", new Object[]{nickName,sDifferDemonsConfig.getName(),sItem.getName()});
ChatLogic.getInstance().sendSysChatMessage(message,Global.LUCKY_LUCK,sItem.getId(),0,0,0,0,0);
}
if(sItem.getId() == GlobalItemType.EXP){
@ -964,26 +979,29 @@ public class ItemUtil {
EquipManager equipManager = user.getEquipManager();
SItem item = SItem.getsItemMap().get(equipId);
int itemType = item.getItemType();
String msgTem = "";
if(itemType==GlobalItemType.EQUIP){
Equip equip = new Equip(user.getId(),equipId);
equipManager.addEquip(user,equip);
equipList.add(CBean2Proto.getEquipProto(equip));
SEquipConfig sEquipConfig = SEquipConfig.getsEquipConfigById(equipId);
if (sEquipConfig.getQuality() >= 5) {
String nickName = user.getPlayerInfoManager().getNickName();
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_lottery_equip_content", new Object[]{nickName, equipQulityNameMap.get(sEquipConfig.getQuality()), item.getName()});
ChatLogic.getInstance().sendSysChatMessage(message,Global.LUCKY_LUCK,equipId,0,0,0,0,0);
}
msgTem="lamp_lottery_equip_content";
}else if(itemType==GlobalItemType.ESPECIAL_EQUIP){
EspecialEquip especialEquip = new EspecialEquip(user.getId(),equipId);
especialEquip.setStar(item.getQuantity());
especialEquipList.add(CBean2Proto.getEquipProto(especialEquip));
equipManager.addEspecialEquip(user,especialEquip);
user.getUserMissionManager().onGameEvent(user, GameEvent.ESPECIAL_EQUIP, especialEquip.getStar());
msgTem="lamp_lottery_equiptalisman_content";
}else if(itemType==GlobalItemType.SOUL_MARK){
SoulEquip soulEquip = new SoulEquip(user.getId(),equipId);
equipManager.addSoulEquip(soulEquip);
equipList.add(CBean2Proto.getEquipProto(soulEquip));
msgTem="lamp_lottery_equipsign_content";
}
if (item.getQuantity() >= 5) {
String nickName = user.getPlayerInfoManager().getNickName();
String message = SErrorCodeEerverConfig.getI18NMessage(msgTem, new Object[]{nickName, equipQulityNameMap.get(item.getQuantity()), item.getName()});
ChatLogic.getInstance().sendSysChatMessage(message,Global.LUCKY_LUCK,equipId,0,0,0,0,0);
}
}
@ -1041,13 +1059,7 @@ public class ItemUtil {
heroList.add(CBean2Proto.getHero(hero));
SCHero scHero = SCHero.getsCHero().get(hero.getTemplateId());
if (scHero.getNatural() >= 13) {
String message = "";
// String quality = HeroLogic.getInstance().getQuality(scHero.getNatural());
if (reason == BIReason.COMPOS_HERO_REWARD) {
message = SErrorCodeEerverConfig.getI18NMessage("lamp_lottery_synthesize_content", new Object[]{playerInfoManager.getNickName(), scHero.getNatural(), scHero.getReadingName()});
} else if (reason == BIReason.HERO_RANDOM) {
message = SErrorCodeEerverConfig.getI18NMessage("lamp_lottery_recruit_content", new Object[]{playerInfoManager.getNickName(), scHero.getNatural(), scHero.getReadingName()});
}
String message = SErrorCodeEerverConfig.getI18NMessage("lamp_lottery_recruit_content", new Object[]{playerInfoManager.getNickName(), scHero.getNatural(), scHero.getReadingName()});
if (!message.isEmpty()){
ChatLogic.getInstance().sendSysChatMessage(message,Global.LUCKY_LUCK,hero.getTemplateId(),0,0,0,0,0);
}