Skip to content

Commit

Permalink
Implement Rogue Event
Browse files Browse the repository at this point in the history
  • Loading branch information
StopWuyu committed Aug 13, 2024
1 parent 1dad907 commit cd98bb6
Show file tree
Hide file tree
Showing 237 changed files with 82,697 additions and 488 deletions.
379 changes: 379 additions & 0 deletions src/generated/main/emu/lunarcore/proto/AIAFLIFPJFPOuterClass.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,379 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.lunarcore.proto;

import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedInt;

public final class AIAFLIFPJFPOuterClass {
/**
* Protobuf type {@code AIAFLIFPJFP}
*/
public static final class AIAFLIFPJFP extends ProtoMessage<AIAFLIFPJFP> implements Cloneable {
private static final long serialVersionUID = 0L;

/**
* <code>optional uint32 DCECFOKFIHH = 12;</code>
*/
private int dCECFOKFIHH;

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
*/
private final RepeatedInt dAAEAJFCNKN = RepeatedInt.newEmptyInstance();

private AIAFLIFPJFP() {
}

/**
* @return a new empty instance of {@code AIAFLIFPJFP}
*/
public static AIAFLIFPJFP newInstance() {
return new AIAFLIFPJFP();
}

/**
* <code>optional uint32 DCECFOKFIHH = 12;</code>
* @return whether the dCECFOKFIHH field is set
*/
public boolean hasDCECFOKFIHH() {
return (bitField0_ & 0x00000001) != 0;
}

/**
* <code>optional uint32 DCECFOKFIHH = 12;</code>
* @return this
*/
public AIAFLIFPJFP clearDCECFOKFIHH() {
bitField0_ &= ~0x00000001;
dCECFOKFIHH = 0;
return this;
}

/**
* <code>optional uint32 DCECFOKFIHH = 12;</code>
* @return the dCECFOKFIHH
*/
public int getDCECFOKFIHH() {
return dCECFOKFIHH;
}

/**
* <code>optional uint32 DCECFOKFIHH = 12;</code>
* @param value the dCECFOKFIHH to set
* @return this
*/
public AIAFLIFPJFP setDCECFOKFIHH(final int value) {
bitField0_ |= 0x00000001;
dCECFOKFIHH = value;
return this;
}

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
* @return whether the dAAEAJFCNKN field is set
*/
public boolean hasDAAEAJFCNKN() {
return (bitField0_ & 0x00000002) != 0;
}

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
* @return this
*/
public AIAFLIFPJFP clearDAAEAJFCNKN() {
bitField0_ &= ~0x00000002;
dAAEAJFCNKN.clear();
return this;
}

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableDAAEAJFCNKN()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedInt getDAAEAJFCNKN() {
return dAAEAJFCNKN;
}

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedInt getMutableDAAEAJFCNKN() {
bitField0_ |= 0x00000002;
return dAAEAJFCNKN;
}

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
* @param value the dAAEAJFCNKN to add
* @return this
*/
public AIAFLIFPJFP addDAAEAJFCNKN(final int value) {
bitField0_ |= 0x00000002;
dAAEAJFCNKN.add(value);
return this;
}

/**
* <code>repeated uint32 DAAEAJFCNKN = 8;</code>
* @param values the dAAEAJFCNKN to add
* @return this
*/
public AIAFLIFPJFP addAllDAAEAJFCNKN(final int... values) {
bitField0_ |= 0x00000002;
dAAEAJFCNKN.addAll(values);
return this;
}

@Override
public AIAFLIFPJFP copyFrom(final AIAFLIFPJFP other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
dCECFOKFIHH = other.dCECFOKFIHH;
dAAEAJFCNKN.copyFrom(other.dAAEAJFCNKN);
}
return this;
}

@Override
public AIAFLIFPJFP mergeFrom(final AIAFLIFPJFP other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasDCECFOKFIHH()) {
setDCECFOKFIHH(other.dCECFOKFIHH);
}
if (other.hasDAAEAJFCNKN()) {
getMutableDAAEAJFCNKN().addAll(other.dAAEAJFCNKN);
}
return this;
}

@Override
public AIAFLIFPJFP clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
dCECFOKFIHH = 0;
dAAEAJFCNKN.clear();
return this;
}

@Override
public AIAFLIFPJFP clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
dAAEAJFCNKN.clear();
return this;
}

@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AIAFLIFPJFP)) {
return false;
}
AIAFLIFPJFP other = (AIAFLIFPJFP) o;
return bitField0_ == other.bitField0_
&& (!hasDCECFOKFIHH() || dCECFOKFIHH == other.dCECFOKFIHH)
&& (!hasDAAEAJFCNKN() || dAAEAJFCNKN.equals(other.dAAEAJFCNKN));
}

@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 96);
output.writeUInt32NoTag(dCECFOKFIHH);
}
if ((bitField0_ & 0x00000002) != 0) {
for (int i = 0; i < dAAEAJFCNKN.length(); i++) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(dAAEAJFCNKN.array()[i]);
}
}
}

@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(dCECFOKFIHH);
}
if ((bitField0_ & 0x00000002) != 0) {
size += (1 * dAAEAJFCNKN.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dAAEAJFCNKN);
}
return size;
}

@Override
@SuppressWarnings("fallthrough")
public AIAFLIFPJFP mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 96: {
// dCECFOKFIHH
dCECFOKFIHH = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 66) {
break;
}
}
case 66: {
// dAAEAJFCNKN [packed=true]
input.readPackedUInt32(dAAEAJFCNKN, tag);
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 64: {
// dAAEAJFCNKN [packed=false]
tag = input.readRepeatedUInt32(dAAEAJFCNKN, tag);
bitField0_ |= 0x00000002;
break;
}
}
}
}

@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.dCECFOKFIHH, dCECFOKFIHH);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRepeatedUInt32(FieldNames.dAAEAJFCNKN, dAAEAJFCNKN);
}
output.endObject();
}

@Override
public AIAFLIFPJFP mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1537368920: {
if (input.isAtField(FieldNames.dCECFOKFIHH)) {
if (!input.trySkipNullValue()) {
dCECFOKFIHH = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 690763082: {
if (input.isAtField(FieldNames.dAAEAJFCNKN)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(dAAEAJFCNKN);
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}

@Override
public AIAFLIFPJFP clone() {
return new AIAFLIFPJFP().copyFrom(this);
}

@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}

public static AIAFLIFPJFP parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new AIAFLIFPJFP(), data).checkInitialized();
}

public static AIAFLIFPJFP parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new AIAFLIFPJFP(), input).checkInitialized();
}

public static AIAFLIFPJFP parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new AIAFLIFPJFP(), input).checkInitialized();
}

/**
* @return factory for creating AIAFLIFPJFP messages
*/
public static MessageFactory<AIAFLIFPJFP> getFactory() {
return AIAFLIFPJFPFactory.INSTANCE;
}

private enum AIAFLIFPJFPFactory implements MessageFactory<AIAFLIFPJFP> {
INSTANCE;

@Override
public AIAFLIFPJFP create() {
return AIAFLIFPJFP.newInstance();
}
}

/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName dCECFOKFIHH = FieldName.forField("DCECFOKFIHH");

static final FieldName dAAEAJFCNKN = FieldName.forField("DAAEAJFCNKN");
}
}
}
Loading

0 comments on commit cd98bb6

Please sign in to comment.