删除我的队伍信息

back_recharge
wangyuan 2019-12-17 18:00:12 +08:00
parent 23488394d9
commit 06a1d9178a
6 changed files with 936 additions and 2234 deletions

View File

@ -10111,6 +10111,24 @@ public final class ArenaInfoProto {
* <code>optional int32 page = 1;</code>
*/
int getPage();
// optional int32 type = 2;
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
boolean hasType();
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
int getType();
}
/**
* Protobuf type {@code com.ljsd.jieling.protocols.ChampionGetWorldRankRequest}
@ -10168,6 +10186,11 @@ public final class ArenaInfoProto {
page_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
type_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@ -10224,8 +10247,33 @@ public final class ArenaInfoProto {
return page_;
}
// optional int32 type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
public int getType() {
return type_;
}
private void initFields() {
page_ = 0;
type_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
@ -10242,6 +10290,9 @@ public final class ArenaInfoProto {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, page_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, type_);
}
getUnknownFields().writeTo(output);
}
@ -10255,6 +10306,10 @@ public final class ArenaInfoProto {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, page_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, type_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
@ -10373,6 +10428,8 @@ public final class ArenaInfoProto {
super.clear();
page_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@ -10405,6 +10462,10 @@ public final class ArenaInfoProto {
to_bitField0_ |= 0x00000001;
}
result.page_ = page_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@ -10424,6 +10485,9 @@ public final class ArenaInfoProto {
if (other.hasPage()) {
setPage(other.getPage());
}
if (other.hasType()) {
setType(other.getType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@ -10484,6 +10548,55 @@ public final class ArenaInfoProto {
return this;
}
// optional int32 type = 2;
private int type_ ;
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
public int getType() {
return type_;
}
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
public Builder setType(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 type = 2;</code>
*
* <pre>
* 0 1
* </pre>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.ChampionGetWorldRankRequest)
}
@ -11536,680 +11649,6 @@ public final class ArenaInfoProto {
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.ChampionGetWorldRankResponse)
}
public interface ChampionGetMyTeamInfoResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
java.util.List<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo>
getChampionTeamPersonInfoList();
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo getChampionTeamPersonInfo(int index);
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
int getChampionTeamPersonInfoCount();
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
java.util.List<? extends com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder>
getChampionTeamPersonInfoOrBuilderList();
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder getChampionTeamPersonInfoOrBuilder(
int index);
}
/**
* Protobuf type {@code com.ljsd.jieling.protocols.ChampionGetMyTeamInfoResponse}
*/
public static final class ChampionGetMyTeamInfoResponse extends
com.google.protobuf.GeneratedMessage
implements ChampionGetMyTeamInfoResponseOrBuilder {
// Use ChampionGetMyTeamInfoResponse.newBuilder() to construct.
private ChampionGetMyTeamInfoResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ChampionGetMyTeamInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ChampionGetMyTeamInfoResponse defaultInstance;
public static ChampionGetMyTeamInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ChampionGetMyTeamInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChampionGetMyTeamInfoResponse(
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)) {
championTeamPersonInfo_ = new java.util.ArrayList<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo>();
mutable_bitField0_ |= 0x00000001;
}
championTeamPersonInfo_.add(input.readMessage(com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.PARSER, extensionRegistry));
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)) {
championTeamPersonInfo_ = java.util.Collections.unmodifiableList(championTeamPersonInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ljsd.jieling.protocols.ArenaInfoProto.internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ljsd.jieling.protocols.ArenaInfoProto.internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.class, com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser<ChampionGetMyTeamInfoResponse> PARSER =
new com.google.protobuf.AbstractParser<ChampionGetMyTeamInfoResponse>() {
public ChampionGetMyTeamInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChampionGetMyTeamInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ChampionGetMyTeamInfoResponse> getParserForType() {
return PARSER;
}
// repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;
public static final int CHAMPIONTEAMPERSONINFO_FIELD_NUMBER = 1;
private java.util.List<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo> championTeamPersonInfo_;
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public java.util.List<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo> getChampionTeamPersonInfoList() {
return championTeamPersonInfo_;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public java.util.List<? extends com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder>
getChampionTeamPersonInfoOrBuilderList() {
return championTeamPersonInfo_;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public int getChampionTeamPersonInfoCount() {
return championTeamPersonInfo_.size();
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo getChampionTeamPersonInfo(int index) {
return championTeamPersonInfo_.get(index);
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder getChampionTeamPersonInfoOrBuilder(
int index) {
return championTeamPersonInfo_.get(index);
}
private void initFields() {
championTeamPersonInfo_ = java.util.Collections.emptyList();
}
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 < championTeamPersonInfo_.size(); i++) {
output.writeMessage(1, championTeamPersonInfo_.get(i));
}
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 < championTeamPersonInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, championTeamPersonInfo_.get(i));
}
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.ArenaInfoProto.ChampionGetMyTeamInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse 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.ArenaInfoProto.ChampionGetMyTeamInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse 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.ArenaInfoProto.ChampionGetMyTeamInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse 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.ArenaInfoProto.ChampionGetMyTeamInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse 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.ArenaInfoProto.ChampionGetMyTeamInfoResponse 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.ChampionGetMyTeamInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ljsd.jieling.protocols.ArenaInfoProto.internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ljsd.jieling.protocols.ArenaInfoProto.internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.class, com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.Builder.class);
}
// Construct using com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getChampionTeamPersonInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (championTeamPersonInfoBuilder_ == null) {
championTeamPersonInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
championTeamPersonInfoBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ljsd.jieling.protocols.ArenaInfoProto.internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_descriptor;
}
public com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse getDefaultInstanceForType() {
return com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.getDefaultInstance();
}
public com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse build() {
com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse buildPartial() {
com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse result = new com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse(this);
int from_bitField0_ = bitField0_;
if (championTeamPersonInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
championTeamPersonInfo_ = java.util.Collections.unmodifiableList(championTeamPersonInfo_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.championTeamPersonInfo_ = championTeamPersonInfo_;
} else {
result.championTeamPersonInfo_ = championTeamPersonInfoBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse) {
return mergeFrom((com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse other) {
if (other == com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse.getDefaultInstance()) return this;
if (championTeamPersonInfoBuilder_ == null) {
if (!other.championTeamPersonInfo_.isEmpty()) {
if (championTeamPersonInfo_.isEmpty()) {
championTeamPersonInfo_ = other.championTeamPersonInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.addAll(other.championTeamPersonInfo_);
}
onChanged();
}
} else {
if (!other.championTeamPersonInfo_.isEmpty()) {
if (championTeamPersonInfoBuilder_.isEmpty()) {
championTeamPersonInfoBuilder_.dispose();
championTeamPersonInfoBuilder_ = null;
championTeamPersonInfo_ = other.championTeamPersonInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
championTeamPersonInfoBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getChampionTeamPersonInfoFieldBuilder() : null;
} else {
championTeamPersonInfoBuilder_.addAllMessages(other.championTeamPersonInfo_);
}
}
}
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.ArenaInfoProto.ChampionGetMyTeamInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.ljsd.jieling.protocols.ArenaInfoProto.ChampionGetMyTeamInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;
private java.util.List<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo> championTeamPersonInfo_ =
java.util.Collections.emptyList();
private void ensureChampionTeamPersonInfoIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
championTeamPersonInfo_ = new java.util.ArrayList<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo>(championTeamPersonInfo_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder> championTeamPersonInfoBuilder_;
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public java.util.List<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo> getChampionTeamPersonInfoList() {
if (championTeamPersonInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(championTeamPersonInfo_);
} else {
return championTeamPersonInfoBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public int getChampionTeamPersonInfoCount() {
if (championTeamPersonInfoBuilder_ == null) {
return championTeamPersonInfo_.size();
} else {
return championTeamPersonInfoBuilder_.getCount();
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo getChampionTeamPersonInfo(int index) {
if (championTeamPersonInfoBuilder_ == null) {
return championTeamPersonInfo_.get(index);
} else {
return championTeamPersonInfoBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder setChampionTeamPersonInfo(
int index, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo value) {
if (championTeamPersonInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.set(index, value);
onChanged();
} else {
championTeamPersonInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder setChampionTeamPersonInfo(
int index, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder builderForValue) {
if (championTeamPersonInfoBuilder_ == null) {
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.set(index, builderForValue.build());
onChanged();
} else {
championTeamPersonInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder addChampionTeamPersonInfo(com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo value) {
if (championTeamPersonInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.add(value);
onChanged();
} else {
championTeamPersonInfoBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder addChampionTeamPersonInfo(
int index, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo value) {
if (championTeamPersonInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.add(index, value);
onChanged();
} else {
championTeamPersonInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder addChampionTeamPersonInfo(
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder builderForValue) {
if (championTeamPersonInfoBuilder_ == null) {
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.add(builderForValue.build());
onChanged();
} else {
championTeamPersonInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder addChampionTeamPersonInfo(
int index, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder builderForValue) {
if (championTeamPersonInfoBuilder_ == null) {
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.add(index, builderForValue.build());
onChanged();
} else {
championTeamPersonInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder addAllChampionTeamPersonInfo(
java.lang.Iterable<? extends com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo> values) {
if (championTeamPersonInfoBuilder_ == null) {
ensureChampionTeamPersonInfoIsMutable();
super.addAll(values, championTeamPersonInfo_);
onChanged();
} else {
championTeamPersonInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder clearChampionTeamPersonInfo() {
if (championTeamPersonInfoBuilder_ == null) {
championTeamPersonInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
championTeamPersonInfoBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public Builder removeChampionTeamPersonInfo(int index) {
if (championTeamPersonInfoBuilder_ == null) {
ensureChampionTeamPersonInfoIsMutable();
championTeamPersonInfo_.remove(index);
onChanged();
} else {
championTeamPersonInfoBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder getChampionTeamPersonInfoBuilder(
int index) {
return getChampionTeamPersonInfoFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder getChampionTeamPersonInfoOrBuilder(
int index) {
if (championTeamPersonInfoBuilder_ == null) {
return championTeamPersonInfo_.get(index); } else {
return championTeamPersonInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public java.util.List<? extends com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder>
getChampionTeamPersonInfoOrBuilderList() {
if (championTeamPersonInfoBuilder_ != null) {
return championTeamPersonInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(championTeamPersonInfo_);
}
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder addChampionTeamPersonInfoBuilder() {
return getChampionTeamPersonInfoFieldBuilder().addBuilder(
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.getDefaultInstance());
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder addChampionTeamPersonInfoBuilder(
int index) {
return getChampionTeamPersonInfoFieldBuilder().addBuilder(
index, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.getDefaultInstance());
}
/**
* <code>repeated .com.ljsd.jieling.protocols.ChampionTeamPersonInfo championTeamPersonInfo = 1;</code>
*/
public java.util.List<com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder>
getChampionTeamPersonInfoBuilderList() {
return getChampionTeamPersonInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder>
getChampionTeamPersonInfoFieldBuilder() {
if (championTeamPersonInfoBuilder_ == null) {
championTeamPersonInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder>(
championTeamPersonInfo_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
championTeamPersonInfo_ = null;
}
return championTeamPersonInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.ChampionGetMyTeamInfoResponse)
}
static {
defaultInstance = new ChampionGetMyTeamInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.ChampionGetMyTeamInfoResponse)
}
public interface ChampionTwoEnemInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
@ -17033,11 +16472,6 @@ public final class ArenaInfoProto {
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_ljsd_jieling_protocols_ChampionGetWorldRankResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_ljsd_jieling_protocols_ChampionTwoEnemInfo_descriptor;
private static
@ -17114,33 +16548,31 @@ public final class ArenaInfoProto {
"ionBetInfo\030\002 \001(\0132+.com.ljsd.jieling.prot" +
"ocols.ChampionBetInfo\022\016\n\006winUid\030\003 \001(\005\"3\n" +
"\022ChampionBetReqeust\022\016\n\006winUid\030\001 \001(\005\022\r\n\005c" +
"oins\030\002 \001(\005\"+\n\033ChampionGetWorldRankReques" +
"t\022\014\n\004page\030\001 \001(\005\"\221\001\n\034ChampionGetWorldRank" +
"Response\0229\n\trankInfos\030\001 \003(\0132&.com.ljsd.j",
"ieling.protocols.ArenaEnemy\0226\n\006myInfo\030\003 " +
"\001(\0132&.com.ljsd.jieling.protocols.ArenaEn" +
"emy\"s\n\035ChampionGetMyTeamInfoResponse\022R\n\026" +
"championTeamPersonInfo\030\001 \003(\01322.com.ljsd." +
"jieling.protocols.ChampionTeamPersonInfo" +
"\"\277\001\n\023ChampionTwoEnemInfo\0228\n\010redEnemy\030\001 \001" +
"(\0132&.com.ljsd.jieling.protocols.ArenaEne" +
"my\0229\n\tblueEnemy\030\002 \001(\0132&.com.ljsd.jieling" +
".protocols.ArenaEnemy\022\023\n\013fightResult\030\003 \001" +
"(\005\022\022\n\nroundTimes\030\004 \001(\005\022\n\n\002id\030\005 \001(\t\"\252\001\n\023C",
"hampionMyBetDetail\022F\n\renemyPairInfo\030\001 \001(" +
"\0132/.com.ljsd.jieling.protocols.ChampionT" +
"woEnemInfo\022\021\n\tbetResult\030\002 \001(\005\0228\n\tfightDa" +
"ta\030\003 \001(\0132%.com.ljsd.jieling.protocols.Fi" +
"ghtData\"o\n%ChanpionGetAllMyBattleHistory" +
"Response\022F\n\renemyPairInfo\030\001 \003(\0132/.com.lj" +
"sd.jieling.protocols.ChampionTwoEnemInfo" +
"\"p\n\037ChampionGetAllMyBetInfoResponse\022M\n\024c" +
"hampionMyBetDetails\030\001 \003(\0132/.com.ljsd.jie" +
"ling.protocols.ChampionMyBetDetail\"(\n\030Ch",
"ampionViewFinalRequest\022\014\n\004type\030\001 \001(\005\"o\n\031" +
"ChampionViewFinalResponse\022R\n\026championBat" +
"tlePairInfo\030\001 \003(\01322.com.ljsd.jieling.pro" +
"tocols.ChampionBattlePairInfoB\002H\001"
"oins\030\002 \001(\005\"9\n\033ChampionGetWorldRankReques" +
"t\022\014\n\004page\030\001 \001(\005\022\014\n\004type\030\002 \001(\005\"\221\001\n\034Champi" +
"onGetWorldRankResponse\0229\n\trankInfos\030\001 \003(",
"\0132&.com.ljsd.jieling.protocols.ArenaEnem" +
"y\0226\n\006myInfo\030\003 \001(\0132&.com.ljsd.jieling.pro" +
"tocols.ArenaEnemy\"\277\001\n\023ChampionTwoEnemInf" +
"o\0228\n\010redEnemy\030\001 \001(\0132&.com.ljsd.jieling.p" +
"rotocols.ArenaEnemy\0229\n\tblueEnemy\030\002 \001(\0132&" +
".com.ljsd.jieling.protocols.ArenaEnemy\022\023" +
"\n\013fightResult\030\003 \001(\005\022\022\n\nroundTimes\030\004 \001(\005\022" +
"\n\n\002id\030\005 \001(\t\"\252\001\n\023ChampionMyBetDetail\022F\n\re" +
"nemyPairInfo\030\001 \001(\0132/.com.ljsd.jieling.pr" +
"otocols.ChampionTwoEnemInfo\022\021\n\tbetResult",
"\030\002 \001(\005\0228\n\tfightData\030\003 \001(\0132%.com.ljsd.jie" +
"ling.protocols.FightData\"o\n%ChanpionGetA" +
"llMyBattleHistoryResponse\022F\n\renemyPairIn" +
"fo\030\001 \003(\0132/.com.ljsd.jieling.protocols.Ch" +
"ampionTwoEnemInfo\"p\n\037ChampionGetAllMyBet" +
"InfoResponse\022M\n\024championMyBetDetails\030\001 \003" +
"(\0132/.com.ljsd.jieling.protocols.Champion" +
"MyBetDetail\"(\n\030ChampionViewFinalRequest\022" +
"\014\n\004type\030\001 \001(\005\"o\n\031ChampionViewFinalRespon" +
"se\022R\n\026championBattlePairInfo\030\001 \003(\01322.com",
".ljsd.jieling.protocols.ChampionBattlePa" +
"irInfoB\002H\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@ -17236,51 +16668,45 @@ public final class ArenaInfoProto {
internal_static_com_ljsd_jieling_protocols_ChampionGetWorldRankRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionGetWorldRankRequest_descriptor,
new java.lang.String[] { "Page", });
new java.lang.String[] { "Page", "Type", });
internal_static_com_ljsd_jieling_protocols_ChampionGetWorldRankResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_com_ljsd_jieling_protocols_ChampionGetWorldRankResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionGetWorldRankResponse_descriptor,
new java.lang.String[] { "RankInfos", "MyInfo", });
internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionGetMyTeamInfoResponse_descriptor,
new java.lang.String[] { "ChampionTeamPersonInfo", });
internal_static_com_ljsd_jieling_protocols_ChampionTwoEnemInfo_descriptor =
getDescriptor().getMessageTypes().get(17);
getDescriptor().getMessageTypes().get(16);
internal_static_com_ljsd_jieling_protocols_ChampionTwoEnemInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionTwoEnemInfo_descriptor,
new java.lang.String[] { "RedEnemy", "BlueEnemy", "FightResult", "RoundTimes", "Id", });
internal_static_com_ljsd_jieling_protocols_ChampionMyBetDetail_descriptor =
getDescriptor().getMessageTypes().get(18);
getDescriptor().getMessageTypes().get(17);
internal_static_com_ljsd_jieling_protocols_ChampionMyBetDetail_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionMyBetDetail_descriptor,
new java.lang.String[] { "EnemyPairInfo", "BetResult", "FightData", });
internal_static_com_ljsd_jieling_protocols_ChanpionGetAllMyBattleHistoryResponse_descriptor =
getDescriptor().getMessageTypes().get(19);
getDescriptor().getMessageTypes().get(18);
internal_static_com_ljsd_jieling_protocols_ChanpionGetAllMyBattleHistoryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChanpionGetAllMyBattleHistoryResponse_descriptor,
new java.lang.String[] { "EnemyPairInfo", });
internal_static_com_ljsd_jieling_protocols_ChampionGetAllMyBetInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(20);
getDescriptor().getMessageTypes().get(19);
internal_static_com_ljsd_jieling_protocols_ChampionGetAllMyBetInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionGetAllMyBetInfoResponse_descriptor,
new java.lang.String[] { "ChampionMyBetDetails", });
internal_static_com_ljsd_jieling_protocols_ChampionViewFinalRequest_descriptor =
getDescriptor().getMessageTypes().get(21);
getDescriptor().getMessageTypes().get(20);
internal_static_com_ljsd_jieling_protocols_ChampionViewFinalRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionViewFinalRequest_descriptor,
new java.lang.String[] { "Type", });
internal_static_com_ljsd_jieling_protocols_ChampionViewFinalResponse_descriptor =
getDescriptor().getMessageTypes().get(22);
getDescriptor().getMessageTypes().get(21);
internal_static_com_ljsd_jieling_protocols_ChampionViewFinalResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionViewFinalResponse_descriptor,

View File

@ -79754,671 +79754,6 @@ public final class CommonProto {
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.ChampionBetInfo)
}
public interface ChampionTeamPersonInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 uid = 1;
/**
* <code>optional int32 uid = 1;</code>
*/
boolean hasUid();
/**
* <code>optional int32 uid = 1;</code>
*/
int getUid();
// optional string name = 2;
/**
* <code>optional string name = 2;</code>
*/
boolean hasName();
/**
* <code>optional string name = 2;</code>
*/
java.lang.String getName();
/**
* <code>optional string name = 2;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
// optional int32 score = 3;
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
boolean hasScore();
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
int getScore();
}
/**
* Protobuf type {@code com.ljsd.jieling.protocols.ChampionTeamPersonInfo}
*/
public static final class ChampionTeamPersonInfo extends
com.google.protobuf.GeneratedMessage
implements ChampionTeamPersonInfoOrBuilder {
// Use ChampionTeamPersonInfo.newBuilder() to construct.
private ChampionTeamPersonInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ChampionTeamPersonInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ChampionTeamPersonInfo defaultInstance;
public static ChampionTeamPersonInfo getDefaultInstance() {
return defaultInstance;
}
public ChampionTeamPersonInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChampionTeamPersonInfo(
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 8: {
bitField0_ |= 0x00000001;
uid_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
name_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
score_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.class, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder.class);
}
public static com.google.protobuf.Parser<ChampionTeamPersonInfo> PARSER =
new com.google.protobuf.AbstractParser<ChampionTeamPersonInfo>() {
public ChampionTeamPersonInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChampionTeamPersonInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ChampionTeamPersonInfo> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 uid = 1;
public static final int UID_FIELD_NUMBER = 1;
private int uid_;
/**
* <code>optional int32 uid = 1;</code>
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 uid = 1;</code>
*/
public int getUid() {
return uid_;
}
// optional string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.Object name_;
/**
* <code>optional string name = 2;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string name = 2;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* <code>optional string name = 2;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 score = 3;
public static final int SCORE_FIELD_NUMBER = 3;
private int score_;
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
public boolean hasScore() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
public int getScore() {
return score_;
}
private void initFields() {
uid_ = 0;
name_ = "";
score_ = 0;
}
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();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, uid_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, score_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, uid_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, score_);
}
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.CommonProto.ChampionTeamPersonInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo 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.CommonProto.ChampionTeamPersonInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo 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.CommonProto.ChampionTeamPersonInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo 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.CommonProto.ChampionTeamPersonInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo 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.CommonProto.ChampionTeamPersonInfo 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.ChampionTeamPersonInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.class, com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.Builder.class);
}
// Construct using com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
uid_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
score_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_descriptor;
}
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo getDefaultInstanceForType() {
return com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.getDefaultInstance();
}
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo build() {
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo buildPartial() {
com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo result = new com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.uid_ = uid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.score_ = score_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo) {
return mergeFrom((com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo other) {
if (other == com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo.getDefaultInstance()) return this;
if (other.hasUid()) {
setUid(other.getUid());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasScore()) {
setScore(other.getScore());
}
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.CommonProto.ChampionTeamPersonInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.ljsd.jieling.protocols.CommonProto.ChampionTeamPersonInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 uid = 1;
private int uid_ ;
/**
* <code>optional int32 uid = 1;</code>
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 uid = 1;</code>
*/
public int getUid() {
return uid_;
}
/**
* <code>optional int32 uid = 1;</code>
*/
public Builder setUid(int value) {
bitField0_ |= 0x00000001;
uid_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 uid = 1;</code>
*/
public Builder clearUid() {
bitField0_ = (bitField0_ & ~0x00000001);
uid_ = 0;
onChanged();
return this;
}
// optional string name = 2;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 2;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string name = 2;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string name = 2;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string name = 2;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* <code>optional string name = 2;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>optional string name = 2;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
// optional int32 score = 3;
private int score_ ;
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
public boolean hasScore() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
public int getScore() {
return score_;
}
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
public Builder setScore(int value) {
bitField0_ |= 0x00000004;
score_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 score = 3;</code>
*
* <pre>
*
* </pre>
*/
public Builder clearScore() {
bitField0_ = (bitField0_ & ~0x00000004);
score_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.ChampionTeamPersonInfo)
}
static {
defaultInstance = new ChampionTeamPersonInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.ChampionTeamPersonInfo)
}
public interface ChampionBattleInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
@ -83181,11 +82516,6 @@ public final class CommonProto {
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_ljsd_jieling_protocols_ChampionBetInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_ljsd_jieling_protocols_ChampionBattleInfo_descriptor;
private static
@ -83438,17 +82768,15 @@ public final class CommonProto {
"\014\n\004rank\030\006 \001(\005\022\022\n\ntotalForce\030\007 \001(\005\022\021\n\thea" +
"dFrame\030\010 \001(\005\"B\n\017ChampionBetInfo\022\n\n\002id\030\001 " +
"\001(\t\022\020\n\010redCoins\030\002 \001(\005\022\021\n\tblueCoins\030\003 \001(\005" +
"\"B\n\026ChampionTeamPersonInfo\022\013\n\003uid\030\001 \001(\005\022" +
"\014\n\004name\030\002 \001(\t\022\r\n\005score\030\003 \001(\005\"\323\001\n\022Champio" +
"nBattleInfo\0227\n\006myInfo\030\001 \001(\0132\'.com.ljsd.j" +
"ieling.protocols.TeamOneInfo\022:\n\tenemyInf" +
"o\030\002 \001(\0132\'.com.ljsd.jieling.protocols.Tea" +
"mOneInfo\022\016\n\006result\030\003 \001(\005\0228\n\tfightData\030\004 " +
"\001(\0132%.com.ljsd.jieling.protocols.FightDa",
"ta\"\202\001\n\026ChampionBattlePairInfo\022\022\n\nattackN" +
"ame\030\001 \001(\t\022\017\n\007defName\030\002 \001(\t\022\023\n\013fightResul" +
"t\030\003 \001(\005\022\n\n\002id\030\004 \001(\t\022\022\n\nroundTImes\030\005 \001(\005\022" +
"\016\n\006teamId\030\006 \001(\005B\002H\001"
"\"\323\001\n\022ChampionBattleInfo\0227\n\006myInfo\030\001 \001(\0132" +
"\'.com.ljsd.jieling.protocols.TeamOneInfo" +
"\022:\n\tenemyInfo\030\002 \001(\0132\'.com.ljsd.jieling.p" +
"rotocols.TeamOneInfo\022\016\n\006result\030\003 \001(\005\0228\n\t" +
"fightData\030\004 \001(\0132%.com.ljsd.jieling.proto" +
"cols.FightData\"\202\001\n\026ChampionBattlePairInf" +
"o\022\022\n\nattackName\030\001 \001(\t\022\017\n\007defName\030\002 \001(\t\022\023",
"\n\013fightResult\030\003 \001(\005\022\n\n\002id\030\004 \001(\t\022\022\n\nround" +
"TImes\030\005 \001(\005\022\016\n\006teamId\030\006 \001(\005B\002H\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@ -83983,20 +83311,14 @@ public final class CommonProto {
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionBetInfo_descriptor,
new java.lang.String[] { "Id", "RedCoins", "BlueCoins", });
internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_descriptor =
getDescriptor().getMessageTypes().get(87);
internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionTeamPersonInfo_descriptor,
new java.lang.String[] { "Uid", "Name", "Score", });
internal_static_com_ljsd_jieling_protocols_ChampionBattleInfo_descriptor =
getDescriptor().getMessageTypes().get(88);
getDescriptor().getMessageTypes().get(87);
internal_static_com_ljsd_jieling_protocols_ChampionBattleInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionBattleInfo_descriptor,
new java.lang.String[] { "MyInfo", "EnemyInfo", "Result", "FightData", });
internal_static_com_ljsd_jieling_protocols_ChampionBattlePairInfo_descriptor =
getDescriptor().getMessageTypes().get(89);
getDescriptor().getMessageTypes().get(88);
internal_static_com_ljsd_jieling_protocols_ChampionBattlePairInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_ljsd_jieling_protocols_ChampionBattlePairInfo_descriptor,

View File

@ -1,19 +0,0 @@
package com.ljsd.jieling.handler.champion;
import com.ljsd.jieling.handler.BaseHandler;
import com.ljsd.jieling.logic.championship.ChampionshipLogic;
import com.ljsd.jieling.netty.cocdex.PacketNetData;
import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.MessageTypeProto;
public class ChampionGetTeamInfoHandler extends BaseHandler {
@Override
public MessageTypeProto.MessageType getMessageCode() {
return MessageTypeProto.MessageType.CHAMPION_GET_MYTEAM_REQUESST;
}
@Override
public void process(ISession iSession, PacketNetData netData) throws Exception {
ChampionshipLogic.getMyTeamInfo(iSession);
}
}

View File

@ -14,6 +14,6 @@ public class ChampionGetWorldRankHandler extends BaseHandler<ArenaInfoProto.Cham
@Override
public void processWithProto(ISession iSession, ArenaInfoProto.ChampionGetWorldRankRequest proto) throws Exception {
ChampionshipLogic.getWorldRankByPage(iSession,proto.getPage());
ChampionshipLogic.getWorldRankByPage(iSession,proto.getType(),proto.getPage());
}
}

View File

@ -440,7 +440,8 @@ public class ChampionshipLogic {
CommonProto.ChampionBattleInfo.Builder builder1 = CommonProto.ChampionBattleInfo.newBuilder();
if(progress%10%4 != 0){
fightResult =-1;
}else{
}
if(fightResult!=-1){
builder1.setFightData( CommonProto.FightData.parseFrom(arenaRecord.getFightData()));
}
builder.setChampionBattleInfo(builder1
@ -466,7 +467,7 @@ public class ChampionshipLogic {
ArenaRecord arenaRecord = RedisUtil.getInstence().getMapValue(RedisKey.CHAMPION_ARENA_RECORD, "", selectIdForRedis, ArenaRecord.class);
if(type == 0){
int fightResult=arenaRecord.getFightResult();
if(progress%10%4 != 0){
if(progress%10%4 != 3){
fightResult =-1;
}
int myGuessID = 0;
@ -544,7 +545,7 @@ public class ChampionshipLogic {
* @param session
* @throws ErrorCodeException
*/
public static void getMyTeamInfo(ISession session) throws ErrorCodeException {
public static void getMyTeamInfo(ISession session) throws Exception {
int uid = session.getUid();
MemberInfo memberInfo = getJoinMemberInfo(uid);
if(memberInfo == null){
@ -552,39 +553,30 @@ public class ChampionshipLogic {
}
List<Integer> memberIds = getMermberTeam().get(memberInfo.getTeamId());
Map<Integer, SArenaRobotConfig> robotConfigMap = STableManager.getConfig(SArenaRobotConfig.class);
List<CommonProto.ChampionTeamPersonInfo> championTeamPersonInfoList = new ArrayList<>(memberIds.size());
memberIds.forEach(uidTmp -> {
ArenaInfoProto.ChampionGetWorldRankResponse.Builder builder = ArenaInfoProto.ChampionGetWorldRankResponse.newBuilder();
List<CommonProto.ArenaEnemy> arenaRankMemberInfo = new ArrayList<>(8);
Map<Integer,Integer> uidRankMap = new HashMap<>();
for(int uidTmp : memberIds){
int score = getJoinMemberInfo(uidTmp).getScore();
String name=null;
if(robotConfigMap.containsKey(uidTmp)){
SArenaRobotConfig sArenaRobotConfig = robotConfigMap.get(uidTmp);
name = sArenaRobotConfig.getRobotName();
}else{
try {
User user = UserManager.getUser(uidTmp);
name = user.getPlayerInfoManager().getNickName();
} catch (Exception e) {
e.printStackTrace();
}
}
championTeamPersonInfoList.add( CommonProto.ChampionTeamPersonInfo.newBuilder()
.setUid(uidTmp)
.setScore(score)
.setName(name)
.build());
});
Collections.sort(championTeamPersonInfoList, new Comparator<CommonProto.ChampionTeamPersonInfo>() {
@Override
public int compare(CommonProto.ChampionTeamPersonInfo o1, CommonProto.ChampionTeamPersonInfo o2) {
return o2.getScore() - o1.getScore();
}
});
ArenaInfoProto.ChampionGetMyTeamInfoResponse build = ArenaInfoProto.ChampionGetMyTeamInfoResponse.newBuilder().addAllChampionTeamPersonInfo(championTeamPersonInfoList).build();
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.CHAMPION_GET_MYTEAM_RESPONSE_VALUE,build,true);
uidRankMap.put(uidTmp,score);
}
//这里将map.entrySet()转换成list
List<Map.Entry<Integer,Integer>> list = new ArrayList<Map.Entry<Integer,Integer>>(uidRankMap.entrySet());
//然后通过比较器来实现排序
Collections.sort(list, (o1,o2)-> o2.getValue().compareTo(o1.getValue()));
int rank=1;
for(Map.Entry<Integer,Integer> mapping:list){
CommonProto.ArenaEnemy enemyInfo = getEnemyInfo(mapping.getKey(), rank++, mapping.getValue(),1);
if( uid == mapping.getKey()){
builder.setMyInfo(enemyInfo);
}
builder.addRankInfos(enemyInfo);
}
ArenaInfoProto.ChampionGetWorldRankResponse buildResponse = builder.addAllRankInfos(arenaRankMemberInfo).build();
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.CHAMPION_GET_RANK_RESPONSE_VALUE,buildResponse,true);
}
@ -1111,7 +1103,10 @@ public class ChampionshipLogic {
//获取排行榜信息
public static void getWorldRankByPage(ISession session,int page) throws Exception {
public static void getWorldRankByPage(ISession session,int type,int page) throws Exception {
if(type == 1){
getMyTeamInfo(session);
}
if (page == 0) {
page = 1;
}
@ -1128,7 +1123,7 @@ public class ChampionshipLogic {
String value = item.getValue();
int uid = Integer.parseInt(value);
start++;
CommonProto.ArenaEnemy enemyInfo = getEnemyInfo(uid, start);
CommonProto.ArenaEnemy enemyInfo = getEnemyInfo(uid, start,0,0);
if(enemyInfo == null){
start--;
continue;
@ -1142,7 +1137,7 @@ public class ChampionshipLogic {
if(myInfo==null && end>=rankEndLine){
int myRank= RedisUtil.getInstence().getZSetreverseRank(RedisKey.CHAMPION_RANK,"",Integer.toString(myUid)).intValue();
if(myRank != -1){
myInfo=getEnemyInfo(myUid, myRank);
myInfo=getEnemyInfo(myUid, myRank,0,0);
}
}
if(myInfo!=null){
@ -1154,11 +1149,16 @@ public class ChampionshipLogic {
}
private static CommonProto.ArenaEnemy getEnemyInfo(int uid,int start) throws Exception {
private static CommonProto.ArenaEnemy getEnemyInfo(int uid,int start,int score,int type) throws Exception {
Map<Integer, SArenaRobotConfig> robotConfigMap = STableManager.getConfig(SArenaRobotConfig.class);
CommonProto.ArenaEnemy.Builder builder = CommonProto.ArenaEnemy.newBuilder();
if(robotConfigMap.containsKey(uid)){
SArenaRobotConfig sArenaRobotConfig = robotConfigMap.get(uid);
CommonProto.Team teamBuild = CommonProto.Team.newBuilder().addAllHeroTid(sArenaRobotConfig.getHeroList()).build();
if(type == 0){
CommonProto.Team teamBuild = CommonProto.Team.newBuilder().addAllHeroTid(sArenaRobotConfig.getHeroList()).build();
builder.setTeam(teamBuild);
}
CommonProto.ArenaPersonInfo personInfoBuild = CommonProto.ArenaPersonInfo.newBuilder()
.setUid(uid)
.setLevel(sArenaRobotConfig.getRobotLevel())
@ -1167,11 +1167,10 @@ public class ChampionshipLogic {
.setRank(start)
.setTotalForce(sArenaRobotConfig.getTotalForce())
.setHeadFrame(0)
.setScore(score)
.build();
return CommonProto.ArenaEnemy.newBuilder()
.setPersonInfo(personInfoBuild)
.setTeam(teamBuild)
.build();
return builder.setPersonInfo(personInfoBuild).build();
}
User user = UserManager.getUser(uid,true);
@ -1179,13 +1178,17 @@ public class ChampionshipLogic {
return null;
}
int totalForce = HeroLogic.getInstance().calTeamTotalForce(user, GlobalsDef.TEAM_ARENA_DEFENSE, false);
List<TeamPosHeroInfo> teamPosHeroInfoList = user.getTeamPosManager().getTeamPosForHero().get(GlobalsDef.TEAM_ARENA_DEFENSE);
Map<String, Hero> heroMap = user.getHeroManager().getHeroMap();
List<Integer> heroTids = new ArrayList<>(teamPosHeroInfoList.size());
for (TeamPosHeroInfo teamPosHeroInfo : teamPosHeroInfoList) {
heroTids.add(heroMap.get(teamPosHeroInfo.getHeroId()).getTemplateId());
if(type == 0){
List<TeamPosHeroInfo> teamPosHeroInfoList = user.getTeamPosManager().getTeamPosForHero().get(GlobalsDef.TEAM_ARENA_DEFENSE);
Map<String, Hero> heroMap = user.getHeroManager().getHeroMap();
List<Integer> heroTids = new ArrayList<>(teamPosHeroInfoList.size());
for (TeamPosHeroInfo teamPosHeroInfo : teamPosHeroInfoList) {
heroTids.add(heroMap.get(teamPosHeroInfo.getHeroId()).getTemplateId());
}
CommonProto.Team teamBuild = CommonProto.Team.newBuilder().addAllHeroTid(heroTids).build();
builder.setTeam(teamBuild);
}
CommonProto.Team teamBuild = CommonProto.Team.newBuilder().addAllHeroTid(heroTids).build();
PlayerManager playerInfoManager = user.getPlayerInfoManager();
CommonProto.ArenaPersonInfo personInfoBuild = CommonProto.ArenaPersonInfo.newBuilder()
.setUid(uid)
@ -1196,9 +1199,7 @@ public class ChampionshipLogic {
.setTotalForce(totalForce)
.setHeadFrame(playerInfoManager.getHeadFrame())
.build();
return CommonProto.ArenaEnemy.newBuilder()
.setPersonInfo(personInfoBuild)
.setTeam(teamBuild)
return builder.setPersonInfo(personInfoBuild)
.build();
}