This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-05 03:26:09 +08:00
parent ec4d6a15d7
commit 0014eff5e0
4034 changed files with 623229 additions and 41 deletions

View File

@@ -0,0 +1,5 @@
package luban;
public abstract class AbstractBean {
public abstract int getTypeId();
}

View File

@@ -0,0 +1,694 @@
package luban;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Stack;
public class ByteBuf {
public static final byte[] EMPTY_BYTES = new byte[0];
private static final Charset MARSHAL_CHARSET = StandardCharsets.UTF_8;
private byte[] data;
private int beginPos;
private int endPos;
private int capacity;
public ByteBuf() {
this(EMPTY_BYTES, 0, 0);
}
public ByteBuf(int initCapacity) {
this(new byte[initCapacity], 0, 0);
}
public ByteBuf(byte[] data) {
this(data, 0, data.length);
}
public ByteBuf(byte[] data, int beginPos, int endPos) {
this.data = data;
this.beginPos = beginPos;
this.endPos = endPos;
this.capacity = data.length;
}
// public static Octets wrap(byte[] bytes) {
// return new Octets(bytes, 0, bytes.length);
// }
//
// public static Octets wrap(byte[] bytes, int beginPos, int len) {
// return new Octets(bytes, beginPos, beginPos + len);
// }
private final static ThreadLocal<Stack<ByteBuf>> pool = ThreadLocal.withInitial(Stack::new);
public static ByteBuf alloc() {
Stack<ByteBuf> p = pool.get();
if(!p.empty()) {
return p.pop();
} else {
return new ByteBuf();
}
}
public static ByteBuf free(ByteBuf os) {
os.clear();
return pool.get().push(os);
}
public void replace(byte[] data, int beginPos, int endPos) {
this.data = data;
this.beginPos = beginPos;
this.endPos = endPos;
this.capacity = data.length;
}
public void replace(byte[] data) {
this.data = data;
this.beginPos = 0;
this.endPos = this.capacity = data.length;
}
public void sureRead(int n) {
if (beginPos + n > endPos) {
throw new SerializationException("read not enough");
}
}
private int chooseNewSize(int originSize, int needSize) {
int newSize = Math.max(originSize, 12);
while (newSize < needSize) {
newSize = newSize * 3 / 2;
}
return newSize;
}
public void sureWrite(int n) {
if (endPos + n > capacity) {
int curSize = endPos - beginPos;
int needSize = curSize + n;
if (needSize > capacity) {
capacity = chooseNewSize(capacity, needSize);
byte[] newData = new byte[capacity];
System.arraycopy(data, beginPos, newData, 0, curSize);
data = newData;
} else {
System.arraycopy(data, beginPos, data, 0, curSize);
}
beginPos = 0;
endPos = curSize;
}
}
public void writeSize(int x) {
writeCompactUint(x);
}
public int readSize() {
return readCompactUint();
}
public void writeShort(short x) {
writeCompactShort(x);
}
public short readShort() {
return readCompactShort();
}
public short readCompactShort() {
sureRead(1);
int h = (data[beginPos] & 0xff);
if (h < 0x80) {
beginPos++;
return (short)h;
} else if (h < 0xc0) {
sureRead(2);
int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff);
beginPos += 2;
return (short)x;
} else if( (h == 0xff)){
sureRead(3);
int x = ((data[beginPos + 1] & 0xff) << 8) | (data[beginPos + 2] & 0xff);
beginPos += 3;
return (short)x;
} else {
throw new SerializationException("exceed max short");
}
}
public void writeCompactShort(short x) {
if (x >= 0) {
if (x < 0x80) {
sureWrite(1);
data[endPos++] = (byte) x;
return;
} else if (x < 0x4000) {
sureWrite(2);
data[endPos + 1] = (byte) x;
data[endPos] = (byte) ((x >> 8) | 0x80);
endPos += 2;
return;
}
}
sureWrite(3);
data[endPos] = (byte) 0xff;
data[endPos + 2] = (byte) x;
data[endPos + 1] = (byte) (x >> 8);
endPos += 3;
}
public int readCompactInt() {
sureRead(1);
int h = data[beginPos] & 0xff;
if (h < 0x80) {
beginPos++;
return h;
} else if (h < 0xc0) {
sureRead(2);
int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff);
beginPos += 2;
return x;
} else if (h < 0xe0) {
sureRead(3);
int x = ((h & 0x1f) << 16) | ((data[beginPos + 1] & 0xff) << 8) | (data[beginPos + 2] & 0xff);
beginPos += 3;
return x;
} else if (h < 0xf0) {
sureRead(4);
int x = ((h & 0x0f) << 24) | ((data[beginPos + 1] & 0xff) << 16) | ((data[beginPos + 2] & 0xff) << 8) | (data[beginPos + 3] & 0xff);
beginPos += 4;
return x;
} else {
sureRead(5);
int x = ((data[beginPos + 1] & 0xff) << 24) | ((data[beginPos + 2] & 0xff) << 16) | ((data[beginPos + 3] & 0xff) << 8) | (data[beginPos + 4] & 0xff);
beginPos += 5;
return x;
}
}
public void writeCompactInt(int x) {
if (x >= 0) {
if (x < 0x80) {
sureWrite(1);
data[endPos++] = (byte) x;
return;
} else if (x < 0x4000) {
sureWrite(2);
data[endPos + 1] = (byte) x;
data[endPos] = (byte) ((x >> 8) | 0x80);
endPos += 2;
return;
} else if (x < 0x200000) {
sureWrite(3);
data[endPos + 2] = (byte) x;
data[endPos + 1] = (byte) (x >> 8);
data[endPos] = (byte) ((x >> 16) | 0xc0);
endPos += 3;
return;
} else if (x < 0x10000000) {
sureWrite(4);
data[endPos + 3] = (byte) x;
data[endPos + 2] = (byte) (x >> 8);
data[endPos + 1] = (byte) (x >> 16);
data[endPos] = (byte) ((x >> 24) | 0xe0);
endPos += 4;
return;
}
}
sureWrite(5);
data[endPos] = (byte) 0xf0;
data[endPos + 4] = (byte) x;
data[endPos + 3] = (byte) (x >> 8);
data[endPos + 2] = (byte) (x >> 16);
data[endPos + 1] = (byte) (x >> 24);
endPos += 5;
}
public long readCompactLong() {
sureRead(1);
int h = data[beginPos] & 0xff;
if (h < 0x80) {
beginPos++;
return h;
} else if (h < 0xc0) {
sureRead(2);
int x = ((h & 0x3f) << 8) | (data[beginPos + 1] & 0xff);
beginPos += 2;
return x;
} else if (h < 0xe0) {
sureRead(3);
int x = ((h & 0x1f) << 16) | ((data[(beginPos + 1)] & 0xff) << 8) | (data[(beginPos + 2)] & 0xff);
beginPos += 3;
return x;
} else if (h < 0xf0) {
sureRead(4);
int x = ((h & 0x0f) << 24) | ((data[(beginPos + 1)] & 0xff) << 16) | ((data[(beginPos + 2)] & 0xff) << 8) | (data[(beginPos + 3)] & 0xff);
beginPos += 4;
return x;
} else if (h < 0xf8) {
sureRead(5);
int xl = (data[(beginPos + 1)] << 24) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 8) | (data[(beginPos + 4)] & 0xff);
int xh = h & 0x07;
beginPos += 5;
return ((long) xh << 32) | (xl & 0xffffffffL);
} else if (h < 0xfc) {
sureRead(6);
int xl = (data[(beginPos + 2)] << 24) | ((data[(beginPos + 3)] & 0xff) << 16) | ((data[(beginPos + 4)] & 0xff) << 8) | (data[(beginPos + 5)] & 0xff);
int xh = ((h & 0x03) << 8) | (data[(beginPos + 1)] & 0xff);
beginPos += 6;
return ((long) xh << 32) | (xl & 0xffffffffL);
} else if (h < 0xfe) {
sureRead(7);
int xl = (data[(beginPos + 3)] << 24) | ((data[(beginPos + 4)] & 0xff) << 16) | ((data[(beginPos + 5)] & 0xff) << 8) | (data[(beginPos + 6)] & 0xff);
int xh = ((h & 0x01) << 16) | ((data[(beginPos + 1)] & 0xff) << 8) | (data[(beginPos + 2)] & 0xff);
beginPos += 7;
return ((long) xh << 32) | (xl & 0xffffffffL);
} else if (h < 0xff) {
sureRead(8);
int xl = (data[(beginPos + 4)] << 24) | ((data[(beginPos + 5)] & 0xff) << 16) | ((data[(beginPos + 6)] & 0xff) << 8) | (data[(beginPos + 7)] & 0xff);
int xh = /*((h & 0x0) << 16) | */
((data[(beginPos + 1)] & 0xff) << 16) | ((data[(beginPos + 2)] & 0xff) << 8) | (data[(beginPos + 3)] & 0xff);
beginPos += 8;
return ((long) xh << 32) | (xl & 0xffffffffL);
} else {
sureRead(9);
int xl = (data[(beginPos + 5)] << 24) | ((data[(beginPos + 6)] & 0xff) << 16) | ((data[(beginPos + 7)] & 0xff) << 8) | (data[(beginPos + 8)] & 0xff);
int xh = (data[(beginPos + 1)] << 24) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 8) | (data[(beginPos + 4)] & 0xff);
beginPos += 9;
return ((long) xh << 32) | (xl & 0xffffffffL);
}
}
public void writeCompactLong(long x) {
if (x >= 0) {
if (x < 0x80) {
sureWrite(1);
data[(endPos++)] = (byte) x;
return;
} else if (x < 0x4000) {
sureWrite(2);
data[(endPos + 1)] = (byte) x;
data[(endPos)] = (byte) ((x >> 8) | 0x80);
endPos += 2;
return;
} else if (x < 0x200000) {
sureWrite(3);
data[(endPos + 2)] = (byte) x;
data[(endPos + 1)] = (byte) (x >> 8);
data[(endPos)] = (byte) ((x >> 16) | 0xc0);
endPos += 3;
return;
} else if (x < 0x10000000) {
sureWrite(4);
data[(endPos + 3)] = (byte) x;
data[(endPos + 2)] = (byte) (x >> 8);
data[(endPos + 1)] = (byte) (x >> 16);
data[(endPos)] = (byte) ((x >> 24) | 0xe0);
endPos += 4;
return;
} else if (x < 0x800000000L) {
sureWrite(5);
data[(endPos + 4)] = (byte) x;
data[(endPos + 3)] = (byte) (x >> 8);
data[(endPos + 2)] = (byte) (x >> 16);
data[(endPos + 1)] = (byte) (x >> 24);
data[(endPos)] = (byte) ((x >> 32) | 0xf0);
endPos += 5;
return;
} else if (x < 0x40000000000L) {
sureWrite(6);
data[(endPos + 5)] = (byte) x;
data[(endPos + 4)] = (byte) (x >> 8);
data[(endPos + 3)] = (byte) (x >> 16);
data[(endPos + 2)] = (byte) (x >> 24);
data[(endPos + 1)] = (byte) (x >> 32);
data[(endPos)] = (byte) ((x >> 40) | 0xf8);
endPos += 6;
return;
} else if (x < 0x200000000000L) {
sureWrite(7);
data[(endPos + 6)] = (byte) x;
data[(endPos + 5)] = (byte) (x >> 8);
data[(endPos + 4)] = (byte) (x >> 16);
data[(endPos + 3)] = (byte) (x >> 24);
data[(endPos + 2)] = (byte) (x >> 32);
data[(endPos + 1)] = (byte) (x >> 40);
data[(endPos)] = (byte) ((x >> 48) | 0xfc);
endPos += 7;
return;
} else if (x < 0x100000000000000L) {
sureWrite(8);
data[(endPos + 7)] = (byte) x;
data[(endPos + 6)] = (byte) (x >> 8);
data[(endPos + 5)] = (byte) (x >> 16);
data[(endPos + 4)] = (byte) (x >> 24);
data[(endPos + 3)] = (byte) (x >> 32);
data[(endPos + 2)] = (byte) (x >> 40);
data[(endPos + 1)] = (byte) (x >> 48);
data[(endPos)] = /*(x >> 56) | */ (byte) 0xfe;
endPos += 8;
return;
}
}
sureWrite(9);
data[(endPos + 8)] = (byte) x;
data[(endPos + 7)] = (byte) (x >> 8);
data[(endPos + 6)] = (byte) (x >> 16);
data[(endPos + 5)] = (byte) (x >> 24);
data[(endPos + 4)] = (byte) (x >> 32);
data[(endPos + 3)] = (byte) (x >> 40);
data[(endPos + 2)] = (byte) (x >> 48);
data[(endPos + 1)] = (byte) (x >> 56);
data[(endPos)] = (byte) 0xff;
endPos += 9;
}
public int readCompactUint() {
int n = readCompactInt();
if (n >= 0) {
return n;
} else {
throw new SerializationException("unmarshal CompactUnit");
}
}
public void writeCompactUint(int x) {
writeCompactInt(x);
}
// public void writeCompactUint(ByteBuf byteBuf, int x) {
// if (x >= 0) {
// if (x < 0x80) {
// byteBuf.writeByte(x);
// } else if (x < 0x4000) {
// byteBuf.writeShort(x | 0x8000);
// } else if (x < 0x200000) {
// byteBuf.writeMedium(x | 0xc00000);
// } else if (x < 0x10000000) {
// byteBuf.writeInt(x | 0xe0000000);
// } else {
// throw new RuntimeException("exceed max unit");
// }
// }
// }
public int readInt() {
return readCompactInt();
}
public void writeInt(int x) {
writeCompactInt(x);
}
public long readLong() {
return readCompactLong();
}
public void writeLong(long x) {
writeCompactLong(x);
}
public void writeSint(int x) {
writeInt((x << 1) | (x >>> 31));
}
public int readSint() {
int x = readInt();
return (x >>> 1) | ((x&1) << 31);
}
public void writeSlong(long x) {
writeLong((x << 1) | (x >>> 63));
}
public long readSlong() {
long x = readLong();
return (x >>> 1) | ((x&1L) << 63);
}
public short readFshort() {
sureRead(4);
int x = (data[(beginPos)] & 0xff) | ((data[(beginPos + 1)] & 0xff) << 8);
beginPos += 2;
return (short)x;
}
public void writeFshort(short x) {
sureWrite(2);
data[(endPos)] = (byte) (x & 0xff);
data[(endPos + 1)] = (byte) ((x >> 8) & 0xff);
endPos += 2;
}
public int readFint() {
sureRead(4);
int x = (data[(beginPos)] & 0xff) | ((data[(beginPos + 1)] & 0xff) << 8) | ((data[(beginPos + 2)] & 0xff) << 16) | ((data[(beginPos + 3)] & 0xff) << 24);
beginPos += 4;
return x;
}
public void writeFint(int x) {
sureWrite(4);
data[(endPos)] = (byte) (x & 0xff);
data[(endPos + 1)] = (byte) ((x >> 8) & 0xff);
data[(endPos + 2)] = (byte) ((x >> 16) & 0xff);
data[(endPos + 3)] = (byte) ((x >> 24) & 0xff);
endPos += 4;
}
public long readFlong() {
sureRead(8);
long x = ((data[(beginPos + 7)] & 0xffL) << 56) | ((data[(beginPos + 6)] & 0xffL) << 48) | ((data[(beginPos + 5)] & 0xffL) << 40) | ((data[(beginPos + 4)] & 0xffL) << 32) | ((data[(beginPos + 3)] & 0xffL) << 24) | ((data[(beginPos + 2)] & 0xffL) << 16) | ((data[(beginPos + 1)] & 0xffL) << 8) | (data[(beginPos)] & 0xffL);
beginPos += 8;
return x;
}
public void writeFlong(long x) {
sureWrite(8);
data[(endPos + 7)] = (byte) (x >> 56);
data[(endPos + 6)] = (byte) (x >> 48);
data[(endPos + 5)] = (byte) (x >> 40);
data[(endPos + 4)] = (byte) (x >> 32);
data[(endPos + 3)] = (byte) (x >> 24);
data[(endPos + 2)] = (byte) (x >> 16);
data[(endPos + 1)] = (byte) (x >> 8);
data[(endPos)] = (byte) x;
endPos += 8;
}
public float readFloat() {
return Float.intBitsToFloat(readFint());
}
public void writeFloat(float z) {
writeFint(Float.floatToIntBits(z));
}
public double readDouble() {
return Double.longBitsToDouble(readFlong());
}
public void writeDouble(double z) {
writeFlong(Double.doubleToLongBits(z));
}
public String readString() {
int n = readSize();
if(n > 0) {
sureRead(n);
int start = beginPos;
beginPos += n;
return new String(data, start, n, ByteBuf.MARSHAL_CHARSET);
} else {
return "";
}
}
public void writeString(String x) {
if(x.length() > 0) {
byte[] bytes = x.getBytes(ByteBuf.MARSHAL_CHARSET);
int n = bytes.length;
writeCompactUint(n);
sureWrite(n);
System.arraycopy(bytes, 0, data, endPos, n);
endPos += n;
} else {
writeCompactUint(0);
}
}
public void writeOctets(ByteBuf o) {
int n = o.size();
writeCompactUint(n);
if(n > 0) {
sureWrite(n);
System.arraycopy(o.data, o.beginPos, this.data, this.endPos, n);
this.endPos += n;
}
}
public ByteBuf readOctets() {
int n = readSize();
sureRead(n);
int start = beginPos;
beginPos += n;
return new ByteBuf(Arrays.copyOfRange(data, start, beginPos));
}
public ByteBuf readOctets(ByteBuf o) {
int n = readSize();
sureRead(n);
int start = beginPos;
beginPos += n;
o.sureWrite(n);
System.arraycopy(data, start, o.data, o.endPos, n);
o.endPos += n;
return o;
}
public byte[] readBytes() {
int n = readSize();
if(n > 0) {
sureRead(n);
int start = beginPos;
beginPos += n;
return Arrays.copyOfRange(data, start, beginPos);
} else {
return EMPTY_BYTES;
}
}
public void writeBytes(byte[] x) {
int n = x.length;
writeCompactUint(n);
if(n > 0) {
sureWrite(n);
System.arraycopy(x, 0, data, endPos, n);
endPos += n;
}
}
public boolean readBool() {
sureRead(1);
return data[(beginPos++)] != 0;
}
public void writeBool(boolean x) {
sureWrite(1);
data[(endPos++)] = x ? (byte) 1 : 0;
}
public byte readByte() {
sureRead(1);
return data[(beginPos++)];
}
public void writeByte(byte x) {
sureWrite(1);
data[endPos++] = x;
}
// public void writeTo(ByteBuf byteBuf) {
// int n = size();
// writeCompactUint(byteBuf, n);
// byteBuf.writeBytes(data, beginPos, n);
// }
public void writeTo(ByteBuf os) {
int n = size();
os.writeCompactUint(n);
os.sureWrite(n);
System.arraycopy(data, beginPos, os.data, os.endPos, n);
os.endPos += n;
}
// public void readFrom(ByteBuf byteBuf) {
// int n = byteBuf.readableBytes();
// sureWrite(n);
// byteBuf.readBytes(data, endPos, n);
// endPos += n;
// }
public void wrapRead(ByteBuf src, int size) {
this.data = src.data;
this.beginPos = src.beginPos;
this.endPos = src.beginPos += size;
this.capacity = src.capacity;
}
public void clear() {
beginPos = 0;
endPos = 0;
}
public int size() {
return endPos - beginPos;
}
public boolean empty() {
return endPos == beginPos;
}
public boolean nonEmpty() {
return endPos > beginPos;
}
public int readerIndex() {
return beginPos;
}
public void rollbackReadIndex(int readerMark) {
beginPos = readerMark;
}
public void skip(int n) {
sureRead(n);
beginPos += n;
}
public void skipBytes() {
int n = readSize();
sureRead(n);
beginPos += n;
}
public byte[] array() {
return data;
}
public byte[] copyRemainData() {
return Arrays.copyOfRange(data, beginPos, endPos);
}
public String toString() {
StringBuilder b = new StringBuilder();
for (int i = beginPos; i < endPos; i++) {
b.append(data[i]).append(",");
}
return b.toString();
}
public static ByteBuf fromString(String value) {
if(value.isEmpty()) {
return new ByteBuf();
}
String[] ss = value.split(",");
byte[] data = new byte[ss.length];
for (int i = 0; i < data.length; i++) {
data[i] = (byte)Integer.parseInt(ss[i]);
}
return new ByteBuf(data);
}
@Override
public boolean equals(Object x) {
if (!(x instanceof ByteBuf)) return false;
ByteBuf o = (ByteBuf) x;
if (size() != o.size()) return false;
for (int i = beginPos; i < endPos; i++) {
if (data[i] != o.data[o.beginPos + i - beginPos])
return false;
}
return true;
}
}

View File

@@ -0,0 +1,23 @@
package luban;
public class SerializationException extends RuntimeException {
public SerializationException() {
}
public SerializationException(String message) {
super(message);
}
public SerializationException(String message, Throwable cause) {
super(message, cause);
}
public SerializationException(Throwable cause) {
super(cause);
}
public SerializationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}

View File

@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg;
public final class AudioType {
public static final int UNKNOWN = 0;
public static final int ACC = 1;
public static final int AIFF = 2;
}

View File

@@ -0,0 +1,95 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg;
import luban.*;
public final class DefineFromExcel2 extends AbstractBean {
public DefineFromExcel2(ByteBuf _buf) {
id = _buf.readInt();
x1 = _buf.readBool();
x5 = _buf.readLong();
x6 = _buf.readFloat();
x8 = _buf.readInt();
x10 = _buf.readString();
x13 = _buf.readInt();
x132 = _buf.readInt();
x14 = cfg.test.DemoDynamic.deserialize(_buf);
x15 = cfg.test.Shape.deserialize(_buf);
v2 = cfg.vec2.deserialize(_buf);
t1 = _buf.readLong();
{int n = Math.min(_buf.readSize(), _buf.size());k1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k1[i] = _e;}}
{int n = Math.min(_buf.readSize(), _buf.size());k2 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k2[i] = _e;}}
{int n = Math.min(_buf.readSize(), _buf.size());k8 = new java.util.HashMap<Integer, Integer>(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); k8.put(_k, _v);}}
{int n = Math.min(_buf.readSize(), _buf.size());k9 = new java.util.ArrayList<cfg.test.DemoE2>(n);for(int i = 0 ; i < n ; i++) { cfg.test.DemoE2 _e; _e = cfg.test.DemoE2.deserialize(_buf); k9.add(_e);}}
{int n = Math.min(_buf.readSize(), _buf.size());k10 = new java.util.ArrayList<cfg.vec3>(n);for(int i = 0 ; i < n ; i++) { cfg.vec3 _e; _e = cfg.vec3.deserialize(_buf); k10.add(_e);}}
{int n = Math.min(_buf.readSize(), _buf.size());k11 = new java.util.ArrayList<cfg.vec4>(n);for(int i = 0 ; i < n ; i++) { cfg.vec4 _e; _e = cfg.vec4.deserialize(_buf); k11.add(_e);}}
}
public static DefineFromExcel2 deserialize(ByteBuf _buf) {
return new cfg.DefineFromExcel2(_buf);
}
/**
* 这是id
*/
public final int id;
/**
* 字段x1
*/
public final boolean x1;
public final long x5;
public final float x6;
public final int x8;
public final String x10;
public final int x13;
public final int x132;
public final cfg.test.DemoDynamic x14;
public final cfg.test.Shape x15;
public final cfg.vec2 v2;
public final long t1;
public final int[] k1;
public final int[] k2;
public final java.util.HashMap<Integer, Integer> k8;
public final java.util.ArrayList<cfg.test.DemoE2> k9;
public final java.util.ArrayList<cfg.vec3> k10;
public final java.util.ArrayList<cfg.vec4> k11;
public static final int __ID__ = 482045152;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x5 + ","
+ "(format_field_name __code_style field.name):" + x6 + ","
+ "(format_field_name __code_style field.name):" + x8 + ","
+ "(format_field_name __code_style field.name):" + x10 + ","
+ "(format_field_name __code_style field.name):" + x13 + ","
+ "(format_field_name __code_style field.name):" + x132 + ","
+ "(format_field_name __code_style field.name):" + x14 + ","
+ "(format_field_name __code_style field.name):" + x15 + ","
+ "(format_field_name __code_style field.name):" + v2 + ","
+ "(format_field_name __code_style field.name):" + t1 + ","
+ "(format_field_name __code_style field.name):" + k1 + ","
+ "(format_field_name __code_style field.name):" + k2 + ","
+ "(format_field_name __code_style field.name):" + k8 + ","
+ "(format_field_name __code_style field.name):" + k9 + ","
+ "(format_field_name __code_style field.name):" + k10 + ","
+ "(format_field_name __code_style field.name):" + k11 + ","
+ "}";
}
}

View File

@@ -0,0 +1,141 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg;
import luban.*;
public final class Tables
{
public static interface IByteBufLoader {
ByteBuf load(String file) throws java.io.IOException;
}
private final cfg.ai.TbBlackboard _tbblackboard;
public cfg.ai.TbBlackboard getTbBlackboard() { return _tbblackboard; }
private final cfg.ai.TbBehaviorTree _tbbehaviortree;
public cfg.ai.TbBehaviorTree getTbBehaviorTree() { return _tbbehaviortree; }
private final cfg.common.TbGlobalConfig _tbglobalconfig;
public cfg.common.TbGlobalConfig getTbGlobalConfig() { return _tbglobalconfig; }
/**
* 道具表
*/
private final cfg.item.TbItem _tbitem;
public cfg.item.TbItem getTbItem() { return _tbitem; }
private final cfg.l10n.TbL10NDemo _tbl10ndemo;
public cfg.l10n.TbL10NDemo getTbL10NDemo() { return _tbl10ndemo; }
private final cfg.l10n.TbPatchDemo _tbpatchdemo;
public cfg.l10n.TbPatchDemo getTbPatchDemo() { return _tbpatchdemo; }
private final cfg.tag.TbTestTag _tbtesttag;
public cfg.tag.TbTestTag getTbTestTag() { return _tbtesttag; }
private final cfg.test.TbFullTypes _tbfulltypes;
public cfg.test.TbFullTypes getTbFullTypes() { return _tbfulltypes; }
private final cfg.test.TbSingleton _tbsingleton;
public cfg.test.TbSingleton getTbSingleton() { return _tbsingleton; }
private final cfg.test.TbNotIndexList _tbnotindexlist;
public cfg.test.TbNotIndexList getTbNotIndexList() { return _tbnotindexlist; }
private final cfg.test.TbMultiUnionIndexList _tbmultiunionindexlist;
public cfg.test.TbMultiUnionIndexList getTbMultiUnionIndexList() { return _tbmultiunionindexlist; }
private final cfg.test.TbMultiIndexList _tbmultiindexlist;
public cfg.test.TbMultiIndexList getTbMultiIndexList() { return _tbmultiindexlist; }
private final cfg.test.TbDataFromMisc _tbdatafrommisc;
public cfg.test.TbDataFromMisc getTbDataFromMisc() { return _tbdatafrommisc; }
private final cfg.test.TbMultiRowRecord _tbmultirowrecord;
public cfg.test.TbMultiRowRecord getTbMultiRowRecord() { return _tbmultirowrecord; }
private final cfg.test.TbTestMultiColumn _tbtestmulticolumn;
public cfg.test.TbTestMultiColumn getTbTestMultiColumn() { return _tbtestmulticolumn; }
private final cfg.test.TbMultiRowTitle _tbmultirowtitle;
public cfg.test.TbMultiRowTitle getTbMultiRowTitle() { return _tbmultirowtitle; }
private final cfg.test.TbTestNull _tbtestnull;
public cfg.test.TbTestNull getTbTestNull() { return _tbtestnull; }
private final cfg.test.TbDemoPrimitive _tbdemoprimitive;
public cfg.test.TbDemoPrimitive getTbDemoPrimitive() { return _tbdemoprimitive; }
private final cfg.test.TbTestString _tbteststring;
public cfg.test.TbTestString getTbTestString() { return _tbteststring; }
private final cfg.test.TbDemoGroup _tbdemogroup;
public cfg.test.TbDemoGroup getTbDemoGroup() { return _tbdemogroup; }
private final cfg.test.TbTestGlobal _tbtestglobal;
public cfg.test.TbTestGlobal getTbTestGlobal() { return _tbtestglobal; }
private final cfg.test.TbTestBeRef _tbtestberef;
public cfg.test.TbTestBeRef getTbTestBeRef() { return _tbtestberef; }
private final cfg.test.TbTestBeRef2 _tbtestberef2;
public cfg.test.TbTestBeRef2 getTbTestBeRef2() { return _tbtestberef2; }
private final cfg.test.TbTestRef _tbtestref;
public cfg.test.TbTestRef getTbTestRef() { return _tbtestref; }
private final cfg.test.TbTestSize _tbtestsize;
public cfg.test.TbTestSize getTbTestSize() { return _tbtestsize; }
private final cfg.test.TbTestSet _tbtestset;
public cfg.test.TbTestSet getTbTestSet() { return _tbtestset; }
private final cfg.test.TbDetectCsvEncoding _tbdetectcsvencoding;
public cfg.test.TbDetectCsvEncoding getTbDetectCsvEncoding() { return _tbdetectcsvencoding; }
private final cfg.test.TbItem2 _tbitem2;
public cfg.test.TbItem2 getTbItem2() { return _tbitem2; }
private final cfg.test.TbTestIndex _tbtestindex;
public cfg.test.TbTestIndex getTbTestIndex() { return _tbtestindex; }
private final cfg.test.TbTestMap _tbtestmap;
public cfg.test.TbTestMap getTbTestMap() { return _tbtestmap; }
private final cfg.test.TbExcelFromJson _tbexcelfromjson;
public cfg.test.TbExcelFromJson getTbExcelFromJson() { return _tbexcelfromjson; }
private final cfg.test.TbCompositeJsonTable1 _tbcompositejsontable1;
public cfg.test.TbCompositeJsonTable1 getTbCompositeJsonTable1() { return _tbcompositejsontable1; }
private final cfg.test.TbCompositeJsonTable2 _tbcompositejsontable2;
public cfg.test.TbCompositeJsonTable2 getTbCompositeJsonTable2() { return _tbcompositejsontable2; }
private final cfg.test.TbCompositeJsonTable3 _tbcompositejsontable3;
public cfg.test.TbCompositeJsonTable3 getTbCompositeJsonTable3() { return _tbcompositejsontable3; }
private final cfg.test.TbExcelFromJsonMultiRow _tbexcelfromjsonmultirow;
public cfg.test.TbExcelFromJsonMultiRow getTbExcelFromJsonMultiRow() { return _tbexcelfromjsonmultirow; }
private final cfg.test.TbTestScriptableObject _tbtestscriptableobject;
public cfg.test.TbTestScriptableObject getTbTestScriptableObject() { return _tbtestscriptableobject; }
private final cfg.test.TbTestMapper _tbtestmapper;
public cfg.test.TbTestMapper getTbTestMapper() { return _tbtestmapper; }
private final cfg.test.TbDefineFromExcel2 _tbdefinefromexcel2;
public cfg.test.TbDefineFromExcel2 getTbDefineFromExcel2() { return _tbdefinefromexcel2; }
public Tables(IByteBufLoader loader) throws java.io.IOException {
_tbblackboard = new cfg.ai.TbBlackboard(loader.load("ai_tbblackboard"));
_tbbehaviortree = new cfg.ai.TbBehaviorTree(loader.load("ai_tbbehaviortree"));
_tbglobalconfig = new cfg.common.TbGlobalConfig(loader.load("common_tbglobalconfig"));
_tbitem = new cfg.item.TbItem(loader.load("item_tbitem"));
_tbl10ndemo = new cfg.l10n.TbL10NDemo(loader.load("l10n_tbl10ndemo"));
_tbpatchdemo = new cfg.l10n.TbPatchDemo(loader.load("l10n_tbpatchdemo"));
_tbtesttag = new cfg.tag.TbTestTag(loader.load("tag_tbtesttag"));
_tbfulltypes = new cfg.test.TbFullTypes(loader.load("test_tbfulltypes"));
_tbsingleton = new cfg.test.TbSingleton(loader.load("test_tbsingleton"));
_tbnotindexlist = new cfg.test.TbNotIndexList(loader.load("test_tbnotindexlist"));
_tbmultiunionindexlist = new cfg.test.TbMultiUnionIndexList(loader.load("test_tbmultiunionindexlist"));
_tbmultiindexlist = new cfg.test.TbMultiIndexList(loader.load("test_tbmultiindexlist"));
_tbdatafrommisc = new cfg.test.TbDataFromMisc(loader.load("test_tbdatafrommisc"));
_tbmultirowrecord = new cfg.test.TbMultiRowRecord(loader.load("test_tbmultirowrecord"));
_tbtestmulticolumn = new cfg.test.TbTestMultiColumn(loader.load("test_tbtestmulticolumn"));
_tbmultirowtitle = new cfg.test.TbMultiRowTitle(loader.load("test_tbmultirowtitle"));
_tbtestnull = new cfg.test.TbTestNull(loader.load("test_tbtestnull"));
_tbdemoprimitive = new cfg.test.TbDemoPrimitive(loader.load("test_tbdemoprimitive"));
_tbteststring = new cfg.test.TbTestString(loader.load("test_tbteststring"));
_tbdemogroup = new cfg.test.TbDemoGroup(loader.load("test_tbdemogroup"));
_tbtestglobal = new cfg.test.TbTestGlobal(loader.load("test_tbtestglobal"));
_tbtestberef = new cfg.test.TbTestBeRef(loader.load("test_tbtestberef"));
_tbtestberef2 = new cfg.test.TbTestBeRef2(loader.load("test_tbtestberef2"));
_tbtestref = new cfg.test.TbTestRef(loader.load("test_tbtestref"));
_tbtestsize = new cfg.test.TbTestSize(loader.load("test_tbtestsize"));
_tbtestset = new cfg.test.TbTestSet(loader.load("test_tbtestset"));
_tbdetectcsvencoding = new cfg.test.TbDetectCsvEncoding(loader.load("test_tbdetectcsvencoding"));
_tbitem2 = new cfg.test.TbItem2(loader.load("test_tbitem2"));
_tbtestindex = new cfg.test.TbTestIndex(loader.load("test_tbtestindex"));
_tbtestmap = new cfg.test.TbTestMap(loader.load("test_tbtestmap"));
_tbexcelfromjson = new cfg.test.TbExcelFromJson(loader.load("test_tbexcelfromjson"));
_tbcompositejsontable1 = new cfg.test.TbCompositeJsonTable1(loader.load("test_tbcompositejsontable1"));
_tbcompositejsontable2 = new cfg.test.TbCompositeJsonTable2(loader.load("test_tbcompositejsontable2"));
_tbcompositejsontable3 = new cfg.test.TbCompositeJsonTable3(loader.load("test_tbcompositejsontable3"));
_tbexcelfromjsonmultirow = new cfg.test.TbExcelFromJsonMultiRow(loader.load("test_tbexcelfromjsonmultirow"));
_tbtestscriptableobject = new cfg.test.TbTestScriptableObject(loader.load("test_tbtestscriptableobject"));
_tbtestmapper = new cfg.test.TbTestMapper(loader.load("test_tbtestmapper"));
_tbdefinefromexcel2 = new cfg.test.TbDefineFromExcel2(loader.load("test_tbdefinefromexcel2"));
}
}

View File

@@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class BehaviorTree extends AbstractBean {
public BehaviorTree(ByteBuf _buf) {
id = _buf.readInt();
name = _buf.readString();
desc = _buf.readString();
blackboardId = _buf.readString();
root = cfg.ai.ComposeNode.deserialize(_buf);
}
public static BehaviorTree deserialize(ByteBuf _buf) {
return new cfg.ai.BehaviorTree(_buf);
}
public final int id;
public final String name;
public final String desc;
public final String blackboardId;
public final cfg.ai.ComposeNode root;
public static final int __ID__ = 159552822;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + desc + ","
+ "(format_field_name __code_style field.name):" + blackboardId + ","
+ "(format_field_name __code_style field.name):" + root + ","
+ "}";
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class BinaryOperator extends cfg.ai.KeyQueryOperator {
public BinaryOperator(ByteBuf _buf) {
super(_buf);
oper = _buf.readInt();
data = cfg.ai.KeyData.deserialize(_buf);
}
public static BinaryOperator deserialize(ByteBuf _buf) {
return new cfg.ai.BinaryOperator(_buf);
}
public final int oper;
public final cfg.ai.KeyData data;
public static final int __ID__ = -979891605;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + oper + ","
+ "(format_field_name __code_style field.name):" + data + ","
+ "}";
}
}

View File

@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class Blackboard extends AbstractBean {
public Blackboard(ByteBuf _buf) {
name = _buf.readString();
desc = _buf.readString();
parentName = _buf.readString();
{int n = Math.min(_buf.readSize(), _buf.size());keys = new java.util.ArrayList<cfg.ai.BlackboardKey>(n);for(int i = 0 ; i < n ; i++) { cfg.ai.BlackboardKey _e; _e = cfg.ai.BlackboardKey.deserialize(_buf); keys.add(_e);}}
}
public static Blackboard deserialize(ByteBuf _buf) {
return new cfg.ai.Blackboard(_buf);
}
public final String name;
public final String desc;
public final String parentName;
public final java.util.ArrayList<cfg.ai.BlackboardKey> keys;
public static final int __ID__ = 1576193005;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + desc + ","
+ "(format_field_name __code_style field.name):" + parentName + ","
+ "(format_field_name __code_style field.name):" + keys + ","
+ "}";
}
}

View File

@@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class BlackboardKey extends AbstractBean {
public BlackboardKey(ByteBuf _buf) {
name = _buf.readString();
desc = _buf.readString();
isStatic = _buf.readBool();
type = _buf.readInt();
typeClassName = _buf.readString();
}
public static BlackboardKey deserialize(ByteBuf _buf) {
return new cfg.ai.BlackboardKey(_buf);
}
public final String name;
public final String desc;
public final boolean isStatic;
public final int type;
public final String typeClassName;
public static final int __ID__ = -511559886;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + desc + ","
+ "(format_field_name __code_style field.name):" + isStatic + ","
+ "(format_field_name __code_style field.name):" + type + ","
+ "(format_field_name __code_style field.name):" + typeClassName + ","
+ "}";
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class BlackboardKeyData extends cfg.ai.KeyData {
public BlackboardKeyData(ByteBuf _buf) {
super(_buf);
value = _buf.readString();
}
public static BlackboardKeyData deserialize(ByteBuf _buf) {
return new cfg.ai.BlackboardKeyData(_buf);
}
public final String value;
public static final int __ID__ = 1517269500;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + value + ","
+ "}";
}
}

View File

@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class ChooseSkill extends cfg.ai.Task {
public ChooseSkill(ByteBuf _buf) {
super(_buf);
targetActorKey = _buf.readString();
resultSkillIdKey = _buf.readString();
}
public static ChooseSkill deserialize(ByteBuf _buf) {
return new cfg.ai.ChooseSkill(_buf);
}
public final String targetActorKey;
public final String resultSkillIdKey;
public static final int __ID__ = -918812268;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + targetActorKey + ","
+ "(format_field_name __code_style field.name):" + resultSkillIdKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class ChooseTarget extends cfg.ai.Service {
public ChooseTarget(ByteBuf _buf) {
super(_buf);
resultTargetKey = _buf.readString();
}
public static ChooseTarget deserialize(ByteBuf _buf) {
return new cfg.ai.ChooseTarget(_buf);
}
public final String resultTargetKey;
public static final int __ID__ = 1601247918;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + resultTargetKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class ComposeNode extends cfg.ai.FlowNode {
public ComposeNode(ByteBuf _buf) {
super(_buf);
}
public static ComposeNode deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.Sequence.__ID__: return new cfg.ai.Sequence(_buf);
case cfg.ai.Selector.__ID__: return new cfg.ai.Selector(_buf);
case cfg.ai.SimpleParallel.__ID__: return new cfg.ai.SimpleParallel(_buf);
default: throw new SerializationException();
}
}
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "}";
}
}

View File

@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class DebugPrint extends cfg.ai.Task {
public DebugPrint(ByteBuf _buf) {
super(_buf);
text = _buf.readString();
}
public static DebugPrint deserialize(ByteBuf _buf) {
return new cfg.ai.DebugPrint(_buf);
}
public final String text;
public static final int __ID__ = 1357409728;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + text + ","
+ "}";
}
}

View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class Decorator extends cfg.ai.Node {
public Decorator(ByteBuf _buf) {
super(_buf);
flowAbortMode = _buf.readInt();
}
public static Decorator deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.UeLoop.__ID__: return new cfg.ai.UeLoop(_buf);
case cfg.ai.UeCooldown.__ID__: return new cfg.ai.UeCooldown(_buf);
case cfg.ai.UeTimeLimit.__ID__: return new cfg.ai.UeTimeLimit(_buf);
case cfg.ai.UeBlackboard.__ID__: return new cfg.ai.UeBlackboard(_buf);
case cfg.ai.UeForceSuccess.__ID__: return new cfg.ai.UeForceSuccess(_buf);
case cfg.ai.IsAtLocation.__ID__: return new cfg.ai.IsAtLocation(_buf);
case cfg.ai.DistanceLessThan.__ID__: return new cfg.ai.DistanceLessThan(_buf);
default: throw new SerializationException();
}
}
public final int flowAbortMode;
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "}";
}
}

View File

@@ -0,0 +1,51 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class DistanceLessThan extends cfg.ai.Decorator {
public DistanceLessThan(ByteBuf _buf) {
super(_buf);
actor1Key = _buf.readString();
actor2Key = _buf.readString();
distance = _buf.readFloat();
reverseResult = _buf.readBool();
}
public static DistanceLessThan deserialize(ByteBuf _buf) {
return new cfg.ai.DistanceLessThan(_buf);
}
public final String actor1Key;
public final String actor2Key;
public final float distance;
public final boolean reverseResult;
public static final int __ID__ = -1207170283;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "(format_field_name __code_style field.name):" + actor1Key + ","
+ "(format_field_name __code_style field.name):" + actor2Key + ","
+ "(format_field_name __code_style field.name):" + distance + ","
+ "(format_field_name __code_style field.name):" + reverseResult + ","
+ "}";
}
}

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
public final class EExecutor {
public static final int CLIENT = 0;
public static final int SERVER = 1;
}

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
public final class EFinishMode {
public static final int IMMEDIATE = 0;
public static final int DELAYED = 1;
}

View File

@@ -0,0 +1,18 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
public final class EFlowAbortMode {
public static final int NONE = 0;
public static final int LOWER_PRIORITY = 1;
public static final int SELF = 2;
public static final int BOTH = 3;
}

View File

@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
public final class EKeyType {
public static final int BOOL = 1;
public static final int INT = 2;
public static final int FLOAT = 3;
public static final int STRING = 4;
public static final int VECTOR = 5;
public static final int ROTATOR = 6;
public static final int NAME = 7;
public static final int CLASS = 8;
public static final int ENUM = 9;
public static final int OBJECT = 10;
}

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
public final class ENotifyObserverMode {
public static final int ON_VALUE_CHANGE = 0;
public static final int ON_RESULT_CHANGE = 1;
}

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
public final class EOperator {
public static final int IS_EQUAL_TO = 0;
public static final int IS_NOT_EQUAL_TO = 1;
public static final int IS_LESS_THAN = 2;
public static final int IS_LESS_THAN_OR_EQUAL_TO = 3;
public static final int IS_GREAT_THAN = 4;
public static final int IS_GREAT_THAN_OR_EQUAL_TO = 5;
public static final int CONTAINS = 6;
public static final int NOT_CONTAINS = 7;
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class ExecuteTimeStatistic extends cfg.ai.Service {
public ExecuteTimeStatistic(ByteBuf _buf) {
super(_buf);
}
public static ExecuteTimeStatistic deserialize(ByteBuf _buf) {
return new cfg.ai.ExecuteTimeStatistic(_buf);
}
public static final int __ID__ = 990693812;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "}";
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class FloatKeyData extends cfg.ai.KeyData {
public FloatKeyData(ByteBuf _buf) {
super(_buf);
value = _buf.readFloat();
}
public static FloatKeyData deserialize(ByteBuf _buf) {
return new cfg.ai.FloatKeyData(_buf);
}
public final float value;
public static final int __ID__ = -719747885;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + value + ","
+ "}";
}
}

View File

@@ -0,0 +1,52 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class FlowNode extends cfg.ai.Node {
public FlowNode(ByteBuf _buf) {
super(_buf);
{int n = Math.min(_buf.readSize(), _buf.size());decorators = new java.util.ArrayList<cfg.ai.Decorator>(n);for(int i = 0 ; i < n ; i++) { cfg.ai.Decorator _e; _e = cfg.ai.Decorator.deserialize(_buf); decorators.add(_e);}}
{int n = Math.min(_buf.readSize(), _buf.size());services = new java.util.ArrayList<cfg.ai.Service>(n);for(int i = 0 ; i < n ; i++) { cfg.ai.Service _e; _e = cfg.ai.Service.deserialize(_buf); services.add(_e);}}
}
public static FlowNode deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.Sequence.__ID__: return new cfg.ai.Sequence(_buf);
case cfg.ai.Selector.__ID__: return new cfg.ai.Selector(_buf);
case cfg.ai.SimpleParallel.__ID__: return new cfg.ai.SimpleParallel(_buf);
case cfg.ai.UeWait.__ID__: return new cfg.ai.UeWait(_buf);
case cfg.ai.UeWaitBlackboardTime.__ID__: return new cfg.ai.UeWaitBlackboardTime(_buf);
case cfg.ai.MoveToTarget.__ID__: return new cfg.ai.MoveToTarget(_buf);
case cfg.ai.ChooseSkill.__ID__: return new cfg.ai.ChooseSkill(_buf);
case cfg.ai.MoveToRandomLocation.__ID__: return new cfg.ai.MoveToRandomLocation(_buf);
case cfg.ai.MoveToLocation.__ID__: return new cfg.ai.MoveToLocation(_buf);
case cfg.ai.DebugPrint.__ID__: return new cfg.ai.DebugPrint(_buf);
default: throw new SerializationException();
}
}
public final java.util.ArrayList<cfg.ai.Decorator> decorators;
public final java.util.ArrayList<cfg.ai.Service> services;
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class GetOwnerPlayer extends cfg.ai.Service {
public GetOwnerPlayer(ByteBuf _buf) {
super(_buf);
playerActorKey = _buf.readString();
}
public static GetOwnerPlayer deserialize(ByteBuf _buf) {
return new cfg.ai.GetOwnerPlayer(_buf);
}
public final String playerActorKey;
public static final int __ID__ = -999247644;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + playerActorKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class IntKeyData extends cfg.ai.KeyData {
public IntKeyData(ByteBuf _buf) {
super(_buf);
value = _buf.readInt();
}
public static IntKeyData deserialize(ByteBuf _buf) {
return new cfg.ai.IntKeyData(_buf);
}
public final int value;
public static final int __ID__ = -342751904;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + value + ","
+ "}";
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class IsAtLocation extends cfg.ai.Decorator {
public IsAtLocation(ByteBuf _buf) {
super(_buf);
acceptableRadius = _buf.readFloat();
keyboardKey = _buf.readString();
inverseCondition = _buf.readBool();
}
public static IsAtLocation deserialize(ByteBuf _buf) {
return new cfg.ai.IsAtLocation(_buf);
}
public final float acceptableRadius;
public final String keyboardKey;
public final boolean inverseCondition;
public static final int __ID__ = 1255972344;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "(format_field_name __code_style field.name):" + acceptableRadius + ","
+ "(format_field_name __code_style field.name):" + keyboardKey + ","
+ "(format_field_name __code_style field.name):" + inverseCondition + ","
+ "}";
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class IsNotSet extends cfg.ai.KeyQueryOperator {
public IsNotSet(ByteBuf _buf) {
super(_buf);
}
public static IsNotSet deserialize(ByteBuf _buf) {
return new cfg.ai.IsNotSet(_buf);
}
public static final int __ID__ = 790736255;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "}";
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class IsSet extends cfg.ai.KeyQueryOperator {
public IsSet(ByteBuf _buf) {
super(_buf);
}
public static IsSet deserialize(ByteBuf _buf) {
return new cfg.ai.IsSet(_buf);
}
public static final int __ID__ = 1635350898;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class KeepFaceTarget extends cfg.ai.Service {
public KeepFaceTarget(ByteBuf _buf) {
super(_buf);
targetActorKey = _buf.readString();
}
public static KeepFaceTarget deserialize(ByteBuf _buf) {
return new cfg.ai.KeepFaceTarget(_buf);
}
public final String targetActorKey;
public static final int __ID__ = 1195270745;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + targetActorKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class KeyData extends AbstractBean {
public KeyData(ByteBuf _buf) {
}
public static KeyData deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.FloatKeyData.__ID__: return new cfg.ai.FloatKeyData(_buf);
case cfg.ai.IntKeyData.__ID__: return new cfg.ai.IntKeyData(_buf);
case cfg.ai.StringKeyData.__ID__: return new cfg.ai.StringKeyData(_buf);
case cfg.ai.BlackboardKeyData.__ID__: return new cfg.ai.BlackboardKeyData(_buf);
default: throw new SerializationException();
}
}
@Override
public String toString() {
return "{ "
+ "}";
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class KeyQueryOperator extends AbstractBean {
public KeyQueryOperator(ByteBuf _buf) {
}
public static KeyQueryOperator deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.IsSet.__ID__: return new cfg.ai.IsSet(_buf);
case cfg.ai.IsNotSet.__ID__: return new cfg.ai.IsNotSet(_buf);
case cfg.ai.BinaryOperator.__ID__: return new cfg.ai.BinaryOperator(_buf);
default: throw new SerializationException();
}
}
@Override
public String toString() {
return "{ "
+ "}";
}
}

View File

@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class MoveToLocation extends cfg.ai.Task {
public MoveToLocation(ByteBuf _buf) {
super(_buf);
acceptableRadius = _buf.readFloat();
}
public static MoveToLocation deserialize(ByteBuf _buf) {
return new cfg.ai.MoveToLocation(_buf);
}
public final float acceptableRadius;
public static final int __ID__ = -969953113;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + acceptableRadius + ","
+ "}";
}
}

View File

@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class MoveToRandomLocation extends cfg.ai.Task {
public MoveToRandomLocation(ByteBuf _buf) {
super(_buf);
originPositionKey = _buf.readString();
radius = _buf.readFloat();
}
public static MoveToRandomLocation deserialize(ByteBuf _buf) {
return new cfg.ai.MoveToRandomLocation(_buf);
}
public final String originPositionKey;
public final float radius;
public static final int __ID__ = -2140042998;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + originPositionKey + ","
+ "(format_field_name __code_style field.name):" + radius + ","
+ "}";
}
}

View File

@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class MoveToTarget extends cfg.ai.Task {
public MoveToTarget(ByteBuf _buf) {
super(_buf);
targetActorKey = _buf.readString();
acceptableRadius = _buf.readFloat();
}
public static MoveToTarget deserialize(ByteBuf _buf) {
return new cfg.ai.MoveToTarget(_buf);
}
public final String targetActorKey;
public final float acceptableRadius;
public static final int __ID__ = 514987779;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + targetActorKey + ","
+ "(format_field_name __code_style field.name):" + acceptableRadius + ","
+ "}";
}
}

View File

@@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class Node extends AbstractBean {
public Node(ByteBuf _buf) {
id = _buf.readInt();
nodeName = _buf.readString();
}
public static Node deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.UeSetDefaultFocus.__ID__: return new cfg.ai.UeSetDefaultFocus(_buf);
case cfg.ai.ExecuteTimeStatistic.__ID__: return new cfg.ai.ExecuteTimeStatistic(_buf);
case cfg.ai.ChooseTarget.__ID__: return new cfg.ai.ChooseTarget(_buf);
case cfg.ai.KeepFaceTarget.__ID__: return new cfg.ai.KeepFaceTarget(_buf);
case cfg.ai.GetOwnerPlayer.__ID__: return new cfg.ai.GetOwnerPlayer(_buf);
case cfg.ai.UpdateDailyBehaviorProps.__ID__: return new cfg.ai.UpdateDailyBehaviorProps(_buf);
case cfg.ai.UeLoop.__ID__: return new cfg.ai.UeLoop(_buf);
case cfg.ai.UeCooldown.__ID__: return new cfg.ai.UeCooldown(_buf);
case cfg.ai.UeTimeLimit.__ID__: return new cfg.ai.UeTimeLimit(_buf);
case cfg.ai.UeBlackboard.__ID__: return new cfg.ai.UeBlackboard(_buf);
case cfg.ai.UeForceSuccess.__ID__: return new cfg.ai.UeForceSuccess(_buf);
case cfg.ai.IsAtLocation.__ID__: return new cfg.ai.IsAtLocation(_buf);
case cfg.ai.DistanceLessThan.__ID__: return new cfg.ai.DistanceLessThan(_buf);
case cfg.ai.Sequence.__ID__: return new cfg.ai.Sequence(_buf);
case cfg.ai.Selector.__ID__: return new cfg.ai.Selector(_buf);
case cfg.ai.SimpleParallel.__ID__: return new cfg.ai.SimpleParallel(_buf);
case cfg.ai.UeWait.__ID__: return new cfg.ai.UeWait(_buf);
case cfg.ai.UeWaitBlackboardTime.__ID__: return new cfg.ai.UeWaitBlackboardTime(_buf);
case cfg.ai.MoveToTarget.__ID__: return new cfg.ai.MoveToTarget(_buf);
case cfg.ai.ChooseSkill.__ID__: return new cfg.ai.ChooseSkill(_buf);
case cfg.ai.MoveToRandomLocation.__ID__: return new cfg.ai.MoveToRandomLocation(_buf);
case cfg.ai.MoveToLocation.__ID__: return new cfg.ai.MoveToLocation(_buf);
case cfg.ai.DebugPrint.__ID__: return new cfg.ai.DebugPrint(_buf);
default: throw new SerializationException();
}
}
public final int id;
public final String nodeName;
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "}";
}
}

View File

@@ -0,0 +1,43 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class Selector extends cfg.ai.ComposeNode {
public Selector(ByteBuf _buf) {
super(_buf);
{int n = Math.min(_buf.readSize(), _buf.size());children = new java.util.ArrayList<cfg.ai.FlowNode>(n);for(int i = 0 ; i < n ; i++) { cfg.ai.FlowNode _e; _e = cfg.ai.FlowNode.deserialize(_buf); children.add(_e);}}
}
public static Selector deserialize(ByteBuf _buf) {
return new cfg.ai.Selector(_buf);
}
public final java.util.ArrayList<cfg.ai.FlowNode> children;
public static final int __ID__ = -1946981627;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + children + ","
+ "}";
}
}

View File

@@ -0,0 +1,43 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class Sequence extends cfg.ai.ComposeNode {
public Sequence(ByteBuf _buf) {
super(_buf);
{int n = Math.min(_buf.readSize(), _buf.size());children = new java.util.ArrayList<cfg.ai.FlowNode>(n);for(int i = 0 ; i < n ; i++) { cfg.ai.FlowNode _e; _e = cfg.ai.FlowNode.deserialize(_buf); children.add(_e);}}
}
public static Sequence deserialize(ByteBuf _buf) {
return new cfg.ai.Sequence(_buf);
}
public final java.util.ArrayList<cfg.ai.FlowNode> children;
public static final int __ID__ = -1789006105;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + children + ","
+ "}";
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class Service extends cfg.ai.Node {
public Service(ByteBuf _buf) {
super(_buf);
}
public static Service deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.UeSetDefaultFocus.__ID__: return new cfg.ai.UeSetDefaultFocus(_buf);
case cfg.ai.ExecuteTimeStatistic.__ID__: return new cfg.ai.ExecuteTimeStatistic(_buf);
case cfg.ai.ChooseTarget.__ID__: return new cfg.ai.ChooseTarget(_buf);
case cfg.ai.KeepFaceTarget.__ID__: return new cfg.ai.KeepFaceTarget(_buf);
case cfg.ai.GetOwnerPlayer.__ID__: return new cfg.ai.GetOwnerPlayer(_buf);
case cfg.ai.UpdateDailyBehaviorProps.__ID__: return new cfg.ai.UpdateDailyBehaviorProps(_buf);
default: throw new SerializationException();
}
}
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "}";
}
}

View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class SimpleParallel extends cfg.ai.ComposeNode {
public SimpleParallel(ByteBuf _buf) {
super(_buf);
finishMode = _buf.readInt();
mainTask = cfg.ai.Task.deserialize(_buf);
backgroundNode = cfg.ai.FlowNode.deserialize(_buf);
}
public static SimpleParallel deserialize(ByteBuf _buf) {
return new cfg.ai.SimpleParallel(_buf);
}
public final int finishMode;
public final cfg.ai.Task mainTask;
public final cfg.ai.FlowNode backgroundNode;
public static final int __ID__ = -1952582529;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + finishMode + ","
+ "(format_field_name __code_style field.name):" + mainTask + ","
+ "(format_field_name __code_style field.name):" + backgroundNode + ","
+ "}";
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class StringKeyData extends cfg.ai.KeyData {
public StringKeyData(ByteBuf _buf) {
super(_buf);
value = _buf.readString();
}
public static StringKeyData deserialize(ByteBuf _buf) {
return new cfg.ai.StringKeyData(_buf);
}
public final String value;
public static final int __ID__ = -307888654;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + value + ","
+ "}";
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public abstract class Task extends cfg.ai.FlowNode {
public Task(ByteBuf _buf) {
super(_buf);
ignoreRestartSelf = _buf.readBool();
}
public static Task deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.ai.UeWait.__ID__: return new cfg.ai.UeWait(_buf);
case cfg.ai.UeWaitBlackboardTime.__ID__: return new cfg.ai.UeWaitBlackboardTime(_buf);
case cfg.ai.MoveToTarget.__ID__: return new cfg.ai.MoveToTarget(_buf);
case cfg.ai.ChooseSkill.__ID__: return new cfg.ai.ChooseSkill(_buf);
case cfg.ai.MoveToRandomLocation.__ID__: return new cfg.ai.MoveToRandomLocation(_buf);
case cfg.ai.MoveToLocation.__ID__: return new cfg.ai.MoveToLocation(_buf);
case cfg.ai.DebugPrint.__ID__: return new cfg.ai.DebugPrint(_buf);
default: throw new SerializationException();
}
}
public final boolean ignoreRestartSelf;
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "}";
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class TbBehaviorTree {
private final java.util.HashMap<Integer, cfg.ai.BehaviorTree> _dataMap;
private final java.util.ArrayList<cfg.ai.BehaviorTree> _dataList;
public TbBehaviorTree(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.ai.BehaviorTree>();
_dataList = new java.util.ArrayList<cfg.ai.BehaviorTree>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.ai.BehaviorTree _v;
_v = cfg.ai.BehaviorTree.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.ai.BehaviorTree> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.ai.BehaviorTree> getDataList() { return _dataList; }
public cfg.ai.BehaviorTree get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class TbBlackboard {
private final java.util.HashMap<String, cfg.ai.Blackboard> _dataMap;
private final java.util.ArrayList<cfg.ai.Blackboard> _dataList;
public TbBlackboard(ByteBuf _buf) {
_dataMap = new java.util.HashMap<String, cfg.ai.Blackboard>();
_dataList = new java.util.ArrayList<cfg.ai.Blackboard>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.ai.Blackboard _v;
_v = cfg.ai.Blackboard.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.name, _v);
}
}
public java.util.HashMap<String, cfg.ai.Blackboard> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.ai.Blackboard> getDataList() { return _dataList; }
public cfg.ai.Blackboard get(String key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeBlackboard extends cfg.ai.Decorator {
public UeBlackboard(ByteBuf _buf) {
super(_buf);
notifyObserver = _buf.readInt();
blackboardKey = _buf.readString();
keyQuery = cfg.ai.KeyQueryOperator.deserialize(_buf);
}
public static UeBlackboard deserialize(ByteBuf _buf) {
return new cfg.ai.UeBlackboard(_buf);
}
public final int notifyObserver;
public final String blackboardKey;
public final cfg.ai.KeyQueryOperator keyQuery;
public static final int __ID__ = -315297507;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "(format_field_name __code_style field.name):" + notifyObserver + ","
+ "(format_field_name __code_style field.name):" + blackboardKey + ","
+ "(format_field_name __code_style field.name):" + keyQuery + ","
+ "}";
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeCooldown extends cfg.ai.Decorator {
public UeCooldown(ByteBuf _buf) {
super(_buf);
cooldownTime = _buf.readFloat();
}
public static UeCooldown deserialize(ByteBuf _buf) {
return new cfg.ai.UeCooldown(_buf);
}
public final float cooldownTime;
public static final int __ID__ = -951439423;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "(format_field_name __code_style field.name):" + cooldownTime + ","
+ "}";
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeForceSuccess extends cfg.ai.Decorator {
public UeForceSuccess(ByteBuf _buf) {
super(_buf);
}
public static UeForceSuccess deserialize(ByteBuf _buf) {
return new cfg.ai.UeForceSuccess(_buf);
}
public static final int __ID__ = 195054574;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "}";
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeLoop extends cfg.ai.Decorator {
public UeLoop(ByteBuf _buf) {
super(_buf);
numLoops = _buf.readInt();
infiniteLoop = _buf.readBool();
infiniteLoopTimeoutTime = _buf.readFloat();
}
public static UeLoop deserialize(ByteBuf _buf) {
return new cfg.ai.UeLoop(_buf);
}
public final int numLoops;
public final boolean infiniteLoop;
public final float infiniteLoopTimeoutTime;
public static final int __ID__ = -513308166;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "(format_field_name __code_style field.name):" + numLoops + ","
+ "(format_field_name __code_style field.name):" + infiniteLoop + ","
+ "(format_field_name __code_style field.name):" + infiniteLoopTimeoutTime + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeSetDefaultFocus extends cfg.ai.Service {
public UeSetDefaultFocus(ByteBuf _buf) {
super(_buf);
keyboardKey = _buf.readString();
}
public static UeSetDefaultFocus deserialize(ByteBuf _buf) {
return new cfg.ai.UeSetDefaultFocus(_buf);
}
public final String keyboardKey;
public static final int __ID__ = 1812449155;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + keyboardKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeTimeLimit extends cfg.ai.Decorator {
public UeTimeLimit(ByteBuf _buf) {
super(_buf);
limitTime = _buf.readFloat();
}
public static UeTimeLimit deserialize(ByteBuf _buf) {
return new cfg.ai.UeTimeLimit(_buf);
}
public final float limitTime;
public static final int __ID__ = 338469720;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + flowAbortMode + ","
+ "(format_field_name __code_style field.name):" + limitTime + ","
+ "}";
}
}

View File

@@ -0,0 +1,47 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeWait extends cfg.ai.Task {
public UeWait(ByteBuf _buf) {
super(_buf);
waitTime = _buf.readFloat();
randomDeviation = _buf.readFloat();
}
public static UeWait deserialize(ByteBuf _buf) {
return new cfg.ai.UeWait(_buf);
}
public final float waitTime;
public final float randomDeviation;
public static final int __ID__ = -512994101;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + waitTime + ","
+ "(format_field_name __code_style field.name):" + randomDeviation + ","
+ "}";
}
}

View File

@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UeWaitBlackboardTime extends cfg.ai.Task {
public UeWaitBlackboardTime(ByteBuf _buf) {
super(_buf);
blackboardKey = _buf.readString();
}
public static UeWaitBlackboardTime deserialize(ByteBuf _buf) {
return new cfg.ai.UeWaitBlackboardTime(_buf);
}
public final String blackboardKey;
public static final int __ID__ = 1215378271;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + decorators + ","
+ "(format_field_name __code_style field.name):" + services + ","
+ "(format_field_name __code_style field.name):" + ignoreRestartSelf + ","
+ "(format_field_name __code_style field.name):" + blackboardKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,65 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.ai;
import luban.*;
public final class UpdateDailyBehaviorProps extends cfg.ai.Service {
public UpdateDailyBehaviorProps(ByteBuf _buf) {
super(_buf);
satietyKey = _buf.readString();
energyKey = _buf.readString();
moodKey = _buf.readString();
satietyLowerThresholdKey = _buf.readString();
satietyUpperThresholdKey = _buf.readString();
energyLowerThresholdKey = _buf.readString();
energyUpperThresholdKey = _buf.readString();
moodLowerThresholdKey = _buf.readString();
moodUpperThresholdKey = _buf.readString();
}
public static UpdateDailyBehaviorProps deserialize(ByteBuf _buf) {
return new cfg.ai.UpdateDailyBehaviorProps(_buf);
}
public final String satietyKey;
public final String energyKey;
public final String moodKey;
public final String satietyLowerThresholdKey;
public final String satietyUpperThresholdKey;
public final String energyLowerThresholdKey;
public final String energyUpperThresholdKey;
public final String moodLowerThresholdKey;
public final String moodUpperThresholdKey;
public static final int __ID__ = -61887372;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + nodeName + ","
+ "(format_field_name __code_style field.name):" + satietyKey + ","
+ "(format_field_name __code_style field.name):" + energyKey + ","
+ "(format_field_name __code_style field.name):" + moodKey + ","
+ "(format_field_name __code_style field.name):" + satietyLowerThresholdKey + ","
+ "(format_field_name __code_style field.name):" + satietyUpperThresholdKey + ","
+ "(format_field_name __code_style field.name):" + energyLowerThresholdKey + ","
+ "(format_field_name __code_style field.name):" + energyUpperThresholdKey + ","
+ "(format_field_name __code_style field.name):" + moodLowerThresholdKey + ","
+ "(format_field_name __code_style field.name):" + moodUpperThresholdKey + ","
+ "}";
}
}

View File

@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.common;
public final class EBoolOperator {
public static final int AND = 0;
public static final int OR = 1;
}

View File

@@ -0,0 +1,59 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.common;
import luban.*;
public final class GlobalConfig extends AbstractBean {
public GlobalConfig(ByteBuf _buf) {
x1 = _buf.readInt();
x2 = _buf.readInt();
x3 = _buf.readInt();
x4 = _buf.readInt();
x5 = _buf.readInt();
x6 = _buf.readInt();
{int n = Math.min(_buf.readSize(), _buf.size());x7 = new java.util.ArrayList<Integer>(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); x7.add(_e);}}
}
public static GlobalConfig deserialize(ByteBuf _buf) {
return new cfg.common.GlobalConfig(_buf);
}
/**
* 背包容量
*/
public final int x1;
public final int x2;
public final int x3;
public final int x4;
public final int x5;
public final int x6;
public final java.util.ArrayList<Integer> x7;
public static final int __ID__ = -848234488;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x2 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "(format_field_name __code_style field.name):" + x4 + ","
+ "(format_field_name __code_style field.name):" + x5 + ","
+ "(format_field_name __code_style field.name):" + x6 + ","
+ "(format_field_name __code_style field.name):" + x7 + ","
+ "}";
}
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.common;
import luban.*;
public final class TbGlobalConfig {
private final cfg.common.GlobalConfig _data;
public final cfg.common.GlobalConfig data() { return _data; }
public TbGlobalConfig(ByteBuf _buf) {
int n = _buf.readSize();
if (n != 1) throw new SerializationException("table mode=one, but size != 1");
_data = cfg.common.GlobalConfig.deserialize(_buf);
}
/**
* 背包容量
*/
public int getX1() { return _data.x1; }
public int getX2() { return _data.x2; }
public int getX3() { return _data.x3; }
public int getX4() { return _data.x4; }
public int getX5() { return _data.x5; }
public int getX6() { return _data.x6; }
public java.util.ArrayList<Integer> getX7() { return _data.x7; }
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EClothersStarQualityType {
/**
* 一星
*/
public static final int ONE = 1;
/**
* 二星
*/
public static final int TWO = 2;
/**
* 三星
*/
public static final int THREE = 3;
/**
* 四星
*/
public static final int FOUR = 4;
/**
* 五星
*/
public static final int FIVE = 5;
/**
* 六星
*/
public static final int SIX = 6;
/**
* 七星
*/
public static final int SEVEN = 7;
/**
* 八星
*/
public static final int EIGHT = 8;
/**
* 九星
*/
public static final int NINE = 9;
/**
* 十星
*/
public static final int TEN = 10;
}

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EClothersTag {
/**
* 防晒
*/
public static final int FANG_SHAI = 1;
/**
* 舞者
*/
public static final int WU_ZHE = 2;
}

View File

@@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EClothesHidePartType {
/**
* 胸部
*/
public static final int CHEST = 0;
/**
* 手
*/
public static final int HEAD = 1;
/**
* 脊柱上
*/
public static final int SPINE_UPPER = 2;
/**
* 脊柱下
*/
public static final int SPINE_LOWER = 3;
/**
* 臀部
*/
public static final int HIP = 4;
/**
* 腿上
*/
public static final int LEG_UPPER = 5;
/**
* 腿中
*/
public static final int LEG_MIDDLE = 6;
/**
* 腿下
*/
public static final int LEG_LOWER = 7;
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EClothesPropertyType {
/**
* 简约
*/
public static final int JIAN_YUE = 1;
/**
* 华丽
*/
public static final int HUA_LI = 2;
/**
* 可爱
*/
public static final int KE_AI = 3;
/**
* 成熟
*/
public static final int CHENG_SHU = 4;
/**
* 活泼
*/
public static final int HUO_PO = 5;
/**
* 优雅
*/
public static final int YOU_YA = 6;
/**
* 清纯
*/
public static final int QING_CHUN = 7;
/**
* 性感
*/
public static final int XING_GAN = 8;
/**
* 清凉
*/
public static final int QING_LIANG = 9;
/**
* 保暖
*/
public static final int BAO_NUAN = 10;
}

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class ECurrencyType {
/**
* 钻石
*/
public static final int DIAMOND = 1;
/**
* 金币
*/
public static final int GOLD = 2;
/**
* 银币
*/
public static final int SILVER = 3;
/**
* 经验
*/
public static final int EXP = 4;
/**
* 能量点
*/
public static final int POWER_POINT = 5;
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
/**
* 道具品质
*/
public final class EItemQuality {
/**
* 白
*/
public static final int WHITE = 0;
/**
* 绿
*/
public static final int GREEN = 1;
/**
* 蓝
*/
public static final int BLUE = 2;
/**
* 紫
*/
public static final int PURPLE = 3;
/**
* 金
*/
public static final int GOLDEN = 4;
}

View File

@@ -0,0 +1,58 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EMajorType {
/**
* 货币
*/
public static final int CURRENCY = 1;
/**
* 服装
*/
public static final int CLOTH = 2;
/**
* 任务
*/
public static final int QUEST = 3;
/**
* 消耗品
*/
public static final int CONSUMABLES = 4;
/**
* 宝箱
*/
public static final int TREASURE_BOX = 5;
/**
* 成就和称谓
*/
public static final int ACHIEVEMENT_AND_TITLE = 6;
/**
* 头像框
*/
public static final int HEAD_FRAME = 7;
/**
* 语音
*/
public static final int VOICE = 8;
/**
* 动作
*/
public static final int ACTION = 9;
/**
* 扩容道具
*/
public static final int EXPANSION = 10;
/**
* 制作材料
*/
public static final int MATERIAL = 11;
}

View File

@@ -0,0 +1,210 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EMinorType {
/**
* 钻石
*/
public static final int DIAMOND = 101;
/**
* 金币
*/
public static final int GOLD = 102;
/**
* 银币
*/
public static final int SILVER = 103;
/**
* 经验
*/
public static final int EXP = 104;
/**
* 能量点
*/
public static final int POWER_POINT = 105;
/**
* 发型
*/
public static final int HAIR_STYLE = 210;
/**
* 外套
*/
public static final int COAT = 220;
/**
* 上衣
*/
public static final int UPPER_JACKET = 230;
/**
* 裤子
*/
public static final int TROUSERS = 241;
/**
* 裙子
*/
public static final int SKIRT = 242;
/**
* 袜子
*/
public static final int SOCKS = 250;
/**
* 鞋子
*/
public static final int SHOES = 260;
/**
* 发饰
*/
public static final int HAIR_ACCESSORY = 271;
/**
* 帽子
*/
public static final int HAT = 272;
/**
* 耳饰
*/
public static final int EARRING = 273;
/**
* 颈饰
*/
public static final int NECKLACE = 274;
/**
* 腕饰
*/
public static final int BRACELET = 275;
/**
* 发箍
*/
public static final int HAIR_CLASP = 276;
/**
* 手套
*/
public static final int GLOVE = 277;
/**
* 手持物
*/
public static final int HANDHELD_OBJECT = 278;
/**
* 特殊
*/
public static final int SPECIAL = 279;
/**
* 底妆
*/
public static final int BASE_COSMETIC = 281;
/**
* 眉妆
*/
public static final int EYEBROW_COSMETIC = 282;
/**
* 睫毛
*/
public static final int EYELASH = 283;
/**
* 美瞳
*/
public static final int COSMETIC_CONTACT_LENSES = 284;
/**
* 唇妆
*/
public static final int LIP_COSMETIC = 285;
/**
* 肤色
*/
public static final int SKIN_COLOR = 286;
/**
* 连衣裙
*/
public static final int ONE_PIECE_DRESS = 290;
/**
* 换装场景
*/
public static final int SWITCH_CLOTHES_SCENE = 291;
/**
* 任务道具
*/
public static final int QUEST = 301;
/**
* 投掷物
*/
public static final int CAST = 401;
/**
* 刀剑
*/
public static final int SWORD = 421;
/**
* 弓箭
*/
public static final int BOW_ARROW = 422;
/**
* 法杖
*/
public static final int WANDS = 423;
/**
* 特殊工具
*/
public static final int SPECIAL_TOOL = 424;
/**
* 食物
*/
public static final int FOOD = 403;
/**
* 宝箱
*/
public static final int TREASURE_BOX = 501;
/**
* 钥匙
*/
public static final int KEY = 502;
/**
* 多选一宝箱
*/
public static final int MULTI_CHOOSE_TREASURE_BOX = 503;
/**
* 成就相关
*/
public static final int ACHIEVEMENT = 601;
/**
* 称谓相关
*/
public static final int TITLE = 602;
/**
* 头像框
*/
public static final int AVATAR_FRAME = 701;
/**
* 语音
*/
public static final int VOICE = 801;
/**
* 特殊待机动作
*/
public static final int IDLE_POSE = 901;
/**
* 拍照动作
*/
public static final int PHOTO_POSE = 902;
/**
* 背包
*/
public static final int BAG = 1001;
/**
* 好友数量
*/
public static final int FRIEND_CAPACITY = 1002;
/**
* 制作材料
*/
public static final int CONSTRUCTION_MATERIAL = 1101;
/**
* 设计图纸
*/
public static final int DESIGN_DRAWING = 1102;
}

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
public final class EUseType {
/**
* 手动
*/
public static final int MANUAL = 0;
/**
* 自动
*/
public static final int AUTO = 1;
}

View File

@@ -0,0 +1,65 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
import luban.*;
/**
* 道具
*/
public final class Item extends AbstractBean {
public Item(ByteBuf _buf) {
id = _buf.readInt();
name = _buf.readString();
minorType = _buf.readInt();
quality = _buf.readInt();
iconBackgroud = _buf.readString();
iconMask = _buf.readString();
desc = _buf.readString();
showOrder = _buf.readInt();
}
public static Item deserialize(ByteBuf _buf) {
return new cfg.item.Item(_buf);
}
/**
* 道具id
*/
public final int id;
public final String name;
public final int minorType;
public final int quality;
public final String iconBackgroud;
public final String iconMask;
public final String desc;
public final int showOrder;
public static final int __ID__ = 2107285806;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + minorType + ","
+ "(format_field_name __code_style field.name):" + quality + ","
+ "(format_field_name __code_style field.name):" + iconBackgroud + ","
+ "(format_field_name __code_style field.name):" + iconMask + ","
+ "(format_field_name __code_style field.name):" + desc + ","
+ "(format_field_name __code_style field.name):" + showOrder + ","
+ "}";
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.item;
import luban.*;
/**
* 道具表
*/
public final class TbItem {
private final java.util.HashMap<Integer, cfg.item.Item> _dataMap;
private final java.util.ArrayList<cfg.item.Item> _dataList;
public TbItem(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.item.Item>();
_dataList = new java.util.ArrayList<cfg.item.Item>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.item.Item _v;
_v = cfg.item.Item.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.item.Item> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.item.Item> getDataList() { return _dataList; }
public cfg.item.Item get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.l10n;
import luban.*;
public final class L10NDemo extends AbstractBean {
public L10NDemo(ByteBuf _buf) {
id = _buf.readInt();
text = _buf.readString();
}
public static L10NDemo deserialize(ByteBuf _buf) {
return new cfg.l10n.L10NDemo(_buf);
}
public final int id;
public final String text;
public static final int __ID__ = -331195887;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + text + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.l10n;
import luban.*;
public final class PatchDemo extends AbstractBean {
public PatchDemo(ByteBuf _buf) {
id = _buf.readInt();
value = _buf.readInt();
}
public static PatchDemo deserialize(ByteBuf _buf) {
return new cfg.l10n.PatchDemo(_buf);
}
public final int id;
public final int value;
public static final int __ID__ = -1707294656;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + value + ","
+ "}";
}
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.l10n;
import luban.*;
public final class TbL10NDemo {
private final java.util.HashMap<Integer, cfg.l10n.L10NDemo> _dataMap;
private final java.util.ArrayList<cfg.l10n.L10NDemo> _dataList;
public TbL10NDemo(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.l10n.L10NDemo>();
_dataList = new java.util.ArrayList<cfg.l10n.L10NDemo>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.l10n.L10NDemo _v;
_v = cfg.l10n.L10NDemo.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.l10n.L10NDemo> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.l10n.L10NDemo> getDataList() { return _dataList; }
public cfg.l10n.L10NDemo get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.l10n;
import luban.*;
public final class TbPatchDemo {
private final java.util.HashMap<Integer, cfg.l10n.PatchDemo> _dataMap;
private final java.util.ArrayList<cfg.l10n.PatchDemo> _dataList;
public TbPatchDemo(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.l10n.PatchDemo>();
_dataList = new java.util.ArrayList<cfg.l10n.PatchDemo>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.l10n.PatchDemo _v;
_v = cfg.l10n.PatchDemo.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.l10n.PatchDemo> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.l10n.PatchDemo> getDataList() { return _dataList; }
public cfg.l10n.PatchDemo get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.tag;
import luban.*;
public final class TbTestTag {
private final java.util.HashMap<Integer, cfg.tag.TestTag> _dataMap;
private final java.util.ArrayList<cfg.tag.TestTag> _dataList;
public TbTestTag(ByteBuf _buf) {
_dataMap = new java.util.HashMap<Integer, cfg.tag.TestTag>();
_dataList = new java.util.ArrayList<cfg.tag.TestTag>();
for(int n = _buf.readSize() ; n > 0 ; --n) {
cfg.tag.TestTag _v;
_v = cfg.tag.TestTag.deserialize(_buf);
_dataList.add(_v);
_dataMap.put(_v.id, _v);
}
}
public java.util.HashMap<Integer, cfg.tag.TestTag> getDataMap() { return _dataMap; }
public java.util.ArrayList<cfg.tag.TestTag> getDataList() { return _dataList; }
public cfg.tag.TestTag get(int key) { return _dataMap.get(key); }
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.tag;
import luban.*;
public final class TestTag extends AbstractBean {
public TestTag(ByteBuf _buf) {
id = _buf.readInt();
value = _buf.readString();
}
public static TestTag deserialize(ByteBuf _buf) {
return new cfg.tag.TestTag(_buf);
}
public final int id;
public final String value;
public static final int __ID__ = 1742933812;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + value + ","
+ "}";
}
}

View File

@@ -0,0 +1,19 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
public final class AccessFlag {
public static final int WRITE = 1;
public static final int READ = 2;
public static final int TRUNCATE = 4;
public static final int NEW = 8;
public static final int READ_WRITE = 3;
}

View File

@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
/**
* 圆
*/
public final class Circle extends cfg.test.Shape {
public Circle(ByteBuf _buf) {
super(_buf);
radius = _buf.readFloat();
}
public static Circle deserialize(ByteBuf _buf) {
return new cfg.test.Circle(_buf);
}
/**
* 半径
*/
public final float radius;
public static final int __ID__ = 2131829196;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + radius + ","
+ "}";
}
}

View File

@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class CompactString extends AbstractBean {
public CompactString(ByteBuf _buf) {
id = _buf.readInt();
s2 = _buf.readString();
s3 = _buf.readString();
}
public static CompactString deserialize(ByteBuf _buf) {
return new cfg.test.CompactString(_buf);
}
public final int id;
public final String s2;
public final String s3;
public static final int __ID__ = 1968089240;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + s2 + ","
+ "(format_field_name __code_style field.name):" + s3 + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class CompositeJsonTable1 extends AbstractBean {
public CompositeJsonTable1(ByteBuf _buf) {
id = _buf.readInt();
x = _buf.readString();
}
public static CompositeJsonTable1 deserialize(ByteBuf _buf) {
return new cfg.test.CompositeJsonTable1(_buf);
}
public final int id;
public final String x;
public static final int __ID__ = 1566207894;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + x + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class CompositeJsonTable2 extends AbstractBean {
public CompositeJsonTable2(ByteBuf _buf) {
id = _buf.readInt();
y = _buf.readInt();
}
public static CompositeJsonTable2 deserialize(ByteBuf _buf) {
return new cfg.test.CompositeJsonTable2(_buf);
}
public final int id;
public final int y;
public static final int __ID__ = 1566207895;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + y + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class CompositeJsonTable3 extends AbstractBean {
public CompositeJsonTable3(ByteBuf _buf) {
a = _buf.readInt();
b = _buf.readInt();
}
public static CompositeJsonTable3 deserialize(ByteBuf _buf) {
return new cfg.test.CompositeJsonTable3(_buf);
}
public final int a;
public final int b;
public static final int __ID__ = 1566207896;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + a + ","
+ "(format_field_name __code_style field.name):" + b + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DateTimeRange extends AbstractBean {
public DateTimeRange(ByteBuf _buf) {
startTime = _buf.readLong();
endTime = _buf.readLong();
}
public static DateTimeRange deserialize(ByteBuf _buf) {
return new cfg.test.DateTimeRange(_buf);
}
public final long startTime;
public final long endTime;
public static final int __ID__ = 495315430;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + startTime + ","
+ "(format_field_name __code_style field.name):" + endTime + ","
+ "}";
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class Decorator extends cfg.test.ItemBase {
public Decorator(ByteBuf _buf) {
super(_buf);
duration = _buf.readInt();
}
public static Decorator deserialize(ByteBuf _buf) {
return new cfg.test.Decorator(_buf);
}
public final int duration;
public static final int __ID__ = -625155649;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + desc + ","
+ "(format_field_name __code_style field.name):" + duration + ","
+ "}";
}
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoD2 extends cfg.test.DemoDynamic {
public DemoD2(ByteBuf _buf) {
super(_buf);
x2 = _buf.readInt();
}
public static DemoD2 deserialize(ByteBuf _buf) {
return new cfg.test.DemoD2(_buf);
}
public final int x2;
public static final int __ID__ = -2138341747;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x2 + ","
+ "}";
}
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public abstract class DemoD3 extends cfg.test.DemoDynamic {
public DemoD3(ByteBuf _buf) {
super(_buf);
x3 = _buf.readInt();
}
public static DemoD3 deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.test.DemoE1.__ID__: return new cfg.test.DemoE1(_buf);
case cfg.test.login.RoleInfo.__ID__: return new cfg.test.login.RoleInfo(_buf);
default: throw new SerializationException();
}
}
public final int x3;
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "}";
}
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoD5 extends cfg.test.DemoDynamic {
public DemoD5(ByteBuf _buf) {
super(_buf);
time = cfg.test.DateTimeRange.deserialize(_buf);
}
public static DemoD5 deserialize(ByteBuf _buf) {
return new cfg.test.DemoD5(_buf);
}
public final cfg.test.DateTimeRange time;
public static final int __ID__ = -2138341744;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + time + ","
+ "}";
}
}

View File

@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public abstract class DemoDynamic extends AbstractBean {
public DemoDynamic(ByteBuf _buf) {
x1 = _buf.readInt();
}
public static DemoDynamic deserialize(ByteBuf _buf) {
switch (_buf.readInt()) {
case cfg.test.DemoD2.__ID__: return new cfg.test.DemoD2(_buf);
case cfg.test.DemoE1.__ID__: return new cfg.test.DemoE1(_buf);
case cfg.test.login.RoleInfo.__ID__: return new cfg.test.login.RoleInfo(_buf);
case cfg.test.DemoD5.__ID__: return new cfg.test.DemoD5(_buf);
default: throw new SerializationException();
}
}
public final int x1;
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoE1 extends cfg.test.DemoD3 {
public DemoE1(ByteBuf _buf) {
super(_buf);
x4 = _buf.readInt();
}
public static DemoE1 deserialize(ByteBuf _buf) {
return new cfg.test.DemoE1(_buf);
}
public final int x4;
public static final int __ID__ = -2138341717;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "(format_field_name __code_style field.name):" + x4 + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoE2 extends AbstractBean {
public DemoE2(ByteBuf _buf) {
if(_buf.readBool()){ y1 = _buf.readInt(); } else { y1 = null; }
y2 = _buf.readBool();
}
public static DemoE2 deserialize(ByteBuf _buf) {
return new cfg.test.DemoE2(_buf);
}
public final Integer y1;
public final boolean y2;
public static final int __ID__ = -2138341716;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + y1 + ","
+ "(format_field_name __code_style field.name):" + y2 + ","
+ "}";
}
}

View File

@@ -0,0 +1,31 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
public final class DemoEnum {
public static final int NONE = 0;
/**
* aa
*/
public static final int A = 1;
/**
* bb
*/
public static final int B = 2;
/**
* cc
*/
public static final int C = 4;
/**
* dd
*/
public static final int D = 5;
}

View File

@@ -0,0 +1,18 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
public final class DemoFlag {
public static final int A = 1;
public static final int B = 2;
public static final int C = 4;
public static final int D = 8;
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoGroup extends AbstractBean {
public DemoGroup(ByteBuf _buf) {
id = _buf.readInt();
x5 = cfg.test.InnerGroup.deserialize(_buf);
}
public static DemoGroup deserialize(ByteBuf _buf) {
return new cfg.test.DemoGroup(_buf);
}
public final int id;
public final cfg.test.InnerGroup x5;
public static final int __ID__ = -379263008;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + x5 + ","
+ "}";
}
}

View File

@@ -0,0 +1,74 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoPrimitiveTypesTable extends AbstractBean {
public DemoPrimitiveTypesTable(ByteBuf _buf) {
x1 = _buf.readBool();
x2 = _buf.readByte();
x3 = _buf.readShort();
x4 = _buf.readInt();
x5 = _buf.readLong();
x6 = _buf.readFloat();
x7 = _buf.readDouble();
s1 = _buf.readString();
s2 = _buf.readString();
v2 = cfg.vec2.deserialize(_buf);
v3 = cfg.vec3.deserialize(_buf);
v4 = cfg.vec4.deserialize(_buf);
t1 = _buf.readLong();
}
public static DemoPrimitiveTypesTable deserialize(ByteBuf _buf) {
return new cfg.test.DemoPrimitiveTypesTable(_buf);
}
public final boolean x1;
public final byte x2;
public final short x3;
public final int x4;
public final long x5;
public final float x6;
public final double x7;
public final String s1;
public final String s2;
public final cfg.vec2 v2;
public final cfg.vec3 v3;
public final cfg.vec4 v4;
public final long t1;
public static final int __ID__ = -370934083;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x2 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "(format_field_name __code_style field.name):" + x4 + ","
+ "(format_field_name __code_style field.name):" + x5 + ","
+ "(format_field_name __code_style field.name):" + x6 + ","
+ "(format_field_name __code_style field.name):" + x7 + ","
+ "(format_field_name __code_style field.name):" + s1 + ","
+ "(format_field_name __code_style field.name):" + s2 + ","
+ "(format_field_name __code_style field.name):" + v2 + ","
+ "(format_field_name __code_style field.name):" + v3 + ","
+ "(format_field_name __code_style field.name):" + v4 + ","
+ "(format_field_name __code_style field.name):" + t1 + ","
+ "}";
}
}

View File

@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoSingletonType extends AbstractBean {
public DemoSingletonType(ByteBuf _buf) {
id = _buf.readInt();
name = _buf.readString();
date = cfg.test.DemoDynamic.deserialize(_buf);
}
public static DemoSingletonType deserialize(ByteBuf _buf) {
return new cfg.test.DemoSingletonType(_buf);
}
public final int id;
public final String name;
public final cfg.test.DemoDynamic date;
public static final int __ID__ = 539196998;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + name + ","
+ "(format_field_name __code_style field.name):" + date + ","
+ "}";
}
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoType1 extends AbstractBean {
public DemoType1(ByteBuf _buf) {
x1 = _buf.readInt();
}
public static DemoType1 deserialize(ByteBuf _buf) {
return new cfg.test.DemoType1(_buf);
}
public final int x1;
public static final int __ID__ = -367048296;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "}";
}
}

View File

@@ -0,0 +1,101 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DemoType2 extends AbstractBean {
public DemoType2(ByteBuf _buf) {
x4 = _buf.readInt();
x1 = _buf.readBool();
x2 = _buf.readByte();
x3 = _buf.readShort();
x5 = _buf.readLong();
x6 = _buf.readFloat();
x7 = _buf.readDouble();
x80 = _buf.readShort();
x8 = _buf.readInt();
x9 = _buf.readLong();
x10 = _buf.readString();
x12 = cfg.test.DemoType1.deserialize(_buf);
x13 = _buf.readInt();
x14 = cfg.test.DemoDynamic.deserialize(_buf);
s1 = _buf.readString();
t1 = _buf.readLong();
{int n = Math.min(_buf.readSize(), _buf.size());k1 = new int[n];for(int i = 0 ; i < n ; i++) { int _e;_e = _buf.readInt(); k1[i] = _e;}}
{int n = Math.min(_buf.readSize(), _buf.size());k2 = new java.util.ArrayList<Integer>(n);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); k2.add(_e);}}
{int n = Math.min(_buf.readSize(), _buf.size());k5 = new java.util.HashSet<Integer>(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _e; _e = _buf.readInt(); k5.add(_e);}}
{int n = Math.min(_buf.readSize(), _buf.size());k8 = new java.util.HashMap<Integer, Integer>(n * 3 / 2);for(int i = 0 ; i < n ; i++) { Integer _k; _k = _buf.readInt(); Integer _v; _v = _buf.readInt(); k8.put(_k, _v);}}
{int n = Math.min(_buf.readSize(), _buf.size());k9 = new java.util.ArrayList<cfg.test.DemoE2>(n);for(int i = 0 ; i < n ; i++) { cfg.test.DemoE2 _e; _e = cfg.test.DemoE2.deserialize(_buf); k9.add(_e);}}
{int n = Math.min(_buf.readSize(), _buf.size());k15 = new cfg.test.DemoDynamic[n];for(int i = 0 ; i < n ; i++) { cfg.test.DemoDynamic _e;_e = cfg.test.DemoDynamic.deserialize(_buf); k15[i] = _e;}}
}
public static DemoType2 deserialize(ByteBuf _buf) {
return new cfg.test.DemoType2(_buf);
}
public final int x4;
public final boolean x1;
public final byte x2;
public final short x3;
public final long x5;
public final float x6;
public final double x7;
public final short x80;
public final int x8;
public final long x9;
public final String x10;
public final cfg.test.DemoType1 x12;
public final int x13;
public final cfg.test.DemoDynamic x14;
public final String s1;
public final long t1;
public final int[] k1;
public final java.util.ArrayList<Integer> k2;
public final java.util.HashSet<Integer> k5;
public final java.util.HashMap<Integer, Integer> k8;
public final java.util.ArrayList<cfg.test.DemoE2> k9;
public final cfg.test.DemoDynamic[] k15;
public static final int __ID__ = -367048295;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + x4 + ","
+ "(format_field_name __code_style field.name):" + x1 + ","
+ "(format_field_name __code_style field.name):" + x2 + ","
+ "(format_field_name __code_style field.name):" + x3 + ","
+ "(format_field_name __code_style field.name):" + x5 + ","
+ "(format_field_name __code_style field.name):" + x6 + ","
+ "(format_field_name __code_style field.name):" + x7 + ","
+ "(format_field_name __code_style field.name):" + x80 + ","
+ "(format_field_name __code_style field.name):" + x8 + ","
+ "(format_field_name __code_style field.name):" + x9 + ","
+ "(format_field_name __code_style field.name):" + x10 + ","
+ "(format_field_name __code_style field.name):" + x12 + ","
+ "(format_field_name __code_style field.name):" + x13 + ","
+ "(format_field_name __code_style field.name):" + x14 + ","
+ "(format_field_name __code_style field.name):" + s1 + ","
+ "(format_field_name __code_style field.name):" + t1 + ","
+ "(format_field_name __code_style field.name):" + k1 + ","
+ "(format_field_name __code_style field.name):" + k2 + ","
+ "(format_field_name __code_style field.name):" + k5 + ","
+ "(format_field_name __code_style field.name):" + k8 + ","
+ "(format_field_name __code_style field.name):" + k9 + ","
+ "(format_field_name __code_style field.name):" + k15 + ","
+ "}";
}
}

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
import luban.*;
public final class DetectEncoding extends AbstractBean {
public DetectEncoding(ByteBuf _buf) {
id = _buf.readInt();
name = _buf.readString();
}
public static DetectEncoding deserialize(ByteBuf _buf) {
return new cfg.test.DetectEncoding(_buf);
}
public final int id;
public final String name;
public static final int __ID__ = -1154609646;
@Override
public int getTypeId() { return __ID__; }
@Override
public String toString() {
return "{ "
+ "(format_field_name __code_style field.name):" + id + ","
+ "(format_field_name __code_style field.name):" + name + ","
+ "}";
}
}

View File

@@ -0,0 +1,14 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
public final class ETestEmptyEnum {
}

View File

@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
public final class ETestEmptyEnum2 {
public static final int SMALL_THAN_256 = 255;
public static final int X_256 = 256;
public static final int X_257 = 257;
}

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg.test;
public final class ETestQuality {
/**
* 最高品质
*/
public static final int A = 1;
/**
* 黑色的
*/
public static final int B = 2;
/**
* 蓝色的
*/
public static final int C = 3;
/**
* 最差品质
*/
public static final int D = 4;
}

Some files were not shown because too many files have changed in this diff Show More