-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
2.4.6
1 parent
62fff53
commit e953c43
Showing
125 changed files
with
6,318 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
src/library/java/gg/generations/rarecandy/pokeutils/GFLib/Anim/Animation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package gg.generations.rarecandy.pokeutils.GFLib.Anim; | ||
|
||
import com.google.flatbuffers.BaseVector; | ||
import com.google.flatbuffers.BooleanVector; | ||
import com.google.flatbuffers.ByteVector; | ||
import com.google.flatbuffers.Constants; | ||
import com.google.flatbuffers.DoubleVector; | ||
import com.google.flatbuffers.FlatBufferBuilder; | ||
import com.google.flatbuffers.FloatVector; | ||
import com.google.flatbuffers.IntVector; | ||
import com.google.flatbuffers.LongVector; | ||
import com.google.flatbuffers.ShortVector; | ||
import com.google.flatbuffers.StringVector; | ||
import com.google.flatbuffers.Struct; | ||
import com.google.flatbuffers.Table; | ||
import com.google.flatbuffers.UnionVector; | ||
import java.nio.ByteBuffer; | ||
import java.nio.ByteOrder; | ||
|
||
@SuppressWarnings("unused") | ||
public final class Animation extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_23_5_26(); } | ||
public static Animation getRootAsAnimation(ByteBuffer _bb) { return getRootAsAnimation(_bb, new Animation()); } | ||
public static Animation getRootAsAnimation(ByteBuffer _bb, Animation obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public Animation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
public Info info() { return info(new Info()); } | ||
public Info info(Info obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } | ||
public BoneAnimation skeleton() { return skeleton(new BoneAnimation()); } | ||
public BoneAnimation skeleton(BoneAnimation obj) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } | ||
public MaterialAnimation material() { return material(new MaterialAnimation()); } | ||
public MaterialAnimation material(MaterialAnimation obj) { int o = __offset(8); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } | ||
public SkinAnimation visibility() { return visibility(new SkinAnimation()); } | ||
public SkinAnimation visibility(SkinAnimation obj) { int o = __offset(10); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } | ||
public CommandAnimation eventData() { return eventData(new CommandAnimation()); } | ||
public CommandAnimation eventData(CommandAnimation obj) { int o = __offset(12); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } | ||
|
||
public static int createAnimation(FlatBufferBuilder builder, | ||
int infoOffset, | ||
int skeletonOffset, | ||
int materialOffset, | ||
int visibilityOffset, | ||
int eventDataOffset) { | ||
builder.startTable(5); | ||
Animation.addEventData(builder, eventDataOffset); | ||
Animation.addVisibility(builder, visibilityOffset); | ||
Animation.addMaterial(builder, materialOffset); | ||
Animation.addSkeleton(builder, skeletonOffset); | ||
Animation.addInfo(builder, infoOffset); | ||
return Animation.endAnimation(builder); | ||
} | ||
|
||
public static void startAnimation(FlatBufferBuilder builder) { builder.startTable(5); } | ||
public static void addInfo(FlatBufferBuilder builder, int infoOffset) { builder.addOffset(0, infoOffset, 0); } | ||
public static void addSkeleton(FlatBufferBuilder builder, int skeletonOffset) { builder.addOffset(1, skeletonOffset, 0); } | ||
public static void addMaterial(FlatBufferBuilder builder, int materialOffset) { builder.addOffset(2, materialOffset, 0); } | ||
public static void addVisibility(FlatBufferBuilder builder, int visibilityOffset) { builder.addOffset(3, visibilityOffset, 0); } | ||
public static void addEventData(FlatBufferBuilder builder, int eventDataOffset) { builder.addOffset(4, eventDataOffset, 0); } | ||
public static int endAnimation(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
public static void finishAnimationBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } | ||
public static void finishSizePrefixedAnimationBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(offset); } | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public Animation get(int j) { return get(new Animation(), j); } | ||
public Animation get(Animation obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
public AnimationT unpack() { | ||
AnimationT _o = new AnimationT(); | ||
unpackTo(_o); | ||
return _o; | ||
} | ||
public void unpackTo(AnimationT _o) { | ||
if (info() != null) _o.setInfo(info().unpack()); | ||
else _o.setInfo(null); | ||
if (skeleton() != null) _o.setSkeleton(skeleton().unpack()); | ||
else _o.setSkeleton(null); | ||
if (material() != null) _o.setMaterial(material().unpack()); | ||
else _o.setMaterial(null); | ||
if (visibility() != null) _o.setVisibility(visibility().unpack()); | ||
else _o.setVisibility(null); | ||
if (eventData() != null) _o.setEventData(eventData().unpack()); | ||
else _o.setEventData(null); | ||
} | ||
public static int pack(FlatBufferBuilder builder, AnimationT _o) { | ||
if (_o == null) return 0; | ||
int _info = _o.getInfo() == null ? 0 : Info.pack(builder, _o.getInfo()); | ||
int _skeleton = _o.getSkeleton() == null ? 0 : BoneAnimation.pack(builder, _o.getSkeleton()); | ||
int _material = _o.getMaterial() == null ? 0 : MaterialAnimation.pack(builder, _o.getMaterial()); | ||
int _visibility = _o.getVisibility() == null ? 0 : SkinAnimation.pack(builder, _o.getVisibility()); | ||
int _eventData = _o.getEventData() == null ? 0 : CommandAnimation.pack(builder, _o.getEventData()); | ||
return createAnimation( | ||
builder, | ||
_info, | ||
_skeleton, | ||
_material, | ||
_visibility, | ||
_eventData); | ||
} | ||
} | ||
|
66 changes: 66 additions & 0 deletions
66
src/library/java/gg/generations/rarecandy/pokeutils/GFLib/Anim/AnimationT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package gg.generations.rarecandy.pokeutils.GFLib.Anim; | ||
|
||
import com.google.flatbuffers.BaseVector; | ||
import com.google.flatbuffers.BooleanVector; | ||
import com.google.flatbuffers.ByteVector; | ||
import com.google.flatbuffers.Constants; | ||
import com.google.flatbuffers.DoubleVector; | ||
import com.google.flatbuffers.FlatBufferBuilder; | ||
import com.google.flatbuffers.FloatVector; | ||
import com.google.flatbuffers.IntVector; | ||
import com.google.flatbuffers.LongVector; | ||
import com.google.flatbuffers.ShortVector; | ||
import com.google.flatbuffers.StringVector; | ||
import com.google.flatbuffers.Struct; | ||
import com.google.flatbuffers.Table; | ||
import com.google.flatbuffers.UnionVector; | ||
import java.nio.ByteBuffer; | ||
import java.nio.ByteOrder; | ||
|
||
public class AnimationT { | ||
private InfoT info; | ||
private BoneAnimationT skeleton; | ||
private MaterialAnimationT material; | ||
private SkinAnimationT visibility; | ||
private CommandAnimationT eventData; | ||
|
||
public InfoT getInfo() { return info; } | ||
|
||
public void setInfo(InfoT info) { this.info = info; } | ||
|
||
public BoneAnimationT getSkeleton() { return skeleton; } | ||
|
||
public void setSkeleton(BoneAnimationT skeleton) { this.skeleton = skeleton; } | ||
|
||
public MaterialAnimationT getMaterial() { return material; } | ||
|
||
public void setMaterial(MaterialAnimationT material) { this.material = material; } | ||
|
||
public SkinAnimationT getVisibility() { return visibility; } | ||
|
||
public void setVisibility(SkinAnimationT visibility) { this.visibility = visibility; } | ||
|
||
public CommandAnimationT getEventData() { return eventData; } | ||
|
||
public void setEventData(CommandAnimationT eventData) { this.eventData = eventData; } | ||
|
||
|
||
public AnimationT() { | ||
this.info = null; | ||
this.skeleton = null; | ||
this.material = null; | ||
this.visibility = null; | ||
this.eventData = null; | ||
} | ||
public static AnimationT deserializeFromBinary(byte[] fbBuffer) { | ||
return Animation.getRootAsAnimation(ByteBuffer.wrap(fbBuffer)).unpack(); | ||
} | ||
public byte[] serializeToBinary() { | ||
FlatBufferBuilder fbb = new FlatBufferBuilder(); | ||
Animation.finishAnimationBuffer(fbb, Animation.pack(fbb, this)); | ||
return fbb.sizedByteArray(); | ||
} | ||
} | ||
|
91 changes: 91 additions & 0 deletions
91
src/library/java/gg/generations/rarecandy/pokeutils/GFLib/Anim/BoneAnimation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package gg.generations.rarecandy.pokeutils.GFLib.Anim; | ||
|
||
import com.google.flatbuffers.BaseVector; | ||
import com.google.flatbuffers.BooleanVector; | ||
import com.google.flatbuffers.ByteVector; | ||
import com.google.flatbuffers.Constants; | ||
import com.google.flatbuffers.DoubleVector; | ||
import com.google.flatbuffers.FlatBufferBuilder; | ||
import com.google.flatbuffers.FloatVector; | ||
import com.google.flatbuffers.IntVector; | ||
import com.google.flatbuffers.LongVector; | ||
import com.google.flatbuffers.ShortVector; | ||
import com.google.flatbuffers.StringVector; | ||
import com.google.flatbuffers.Struct; | ||
import com.google.flatbuffers.Table; | ||
import com.google.flatbuffers.UnionVector; | ||
import java.nio.ByteBuffer; | ||
import java.nio.ByteOrder; | ||
|
||
@SuppressWarnings("unused") | ||
public final class BoneAnimation extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_23_5_26(); } | ||
public static BoneAnimation getRootAsBoneAnimation(ByteBuffer _bb) { return getRootAsBoneAnimation(_bb, new BoneAnimation()); } | ||
public static BoneAnimation getRootAsBoneAnimation(ByteBuffer _bb, BoneAnimation obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public BoneAnimation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
public BoneTrack tracks(int j) { return tracks(new BoneTrack(), j); } | ||
public BoneTrack tracks(BoneTrack obj, int j) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } | ||
public int tracksLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; } | ||
public BoneTrack.Vector tracksVector() { return tracksVector(new BoneTrack.Vector()); } | ||
public BoneTrack.Vector tracksVector(BoneTrack.Vector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } | ||
public BoneInit initData() { return initData(new BoneInit()); } | ||
public BoneInit initData(BoneInit obj) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } | ||
|
||
public static int createBoneAnimation(FlatBufferBuilder builder, | ||
int tracksOffset, | ||
int initDataOffset) { | ||
builder.startTable(2); | ||
BoneAnimation.addInitData(builder, initDataOffset); | ||
BoneAnimation.addTracks(builder, tracksOffset); | ||
return BoneAnimation.endBoneAnimation(builder); | ||
} | ||
|
||
public static void startBoneAnimation(FlatBufferBuilder builder) { builder.startTable(2); } | ||
public static void addTracks(FlatBufferBuilder builder, int tracksOffset) { builder.addOffset(0, tracksOffset, 0); } | ||
public static int createTracksVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } | ||
public static void startTracksVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } | ||
public static void addInitData(FlatBufferBuilder builder, int initDataOffset) { builder.addOffset(1, initDataOffset, 0); } | ||
public static int endBoneAnimation(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public BoneAnimation get(int j) { return get(new BoneAnimation(), j); } | ||
public BoneAnimation get(BoneAnimation obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
public BoneAnimationT unpack() { | ||
BoneAnimationT _o = new BoneAnimationT(); | ||
unpackTo(_o); | ||
return _o; | ||
} | ||
public void unpackTo(BoneAnimationT _o) { | ||
BoneTrackT[] _oTracks = new BoneTrackT[tracksLength()]; | ||
for (int _j = 0; _j < tracksLength(); ++_j) {_oTracks[_j] = (tracks(_j) != null ? tracks(_j).unpack() : null);} | ||
_o.setTracks(_oTracks); | ||
if (initData() != null) _o.setInitData(initData().unpack()); | ||
else _o.setInitData(null); | ||
} | ||
public static int pack(FlatBufferBuilder builder, BoneAnimationT _o) { | ||
if (_o == null) return 0; | ||
int _tracks = 0; | ||
if (_o.getTracks() != null) { | ||
int[] __tracks = new int[_o.getTracks().length]; | ||
int _j = 0; | ||
for (BoneTrackT _e : _o.getTracks()) { __tracks[_j] = BoneTrack.pack(builder, _e); _j++;} | ||
_tracks = createTracksVector(builder, __tracks); | ||
} | ||
int _initData = _o.getInitData() == null ? 0 : BoneInit.pack(builder, _o.getInitData()); | ||
return createBoneAnimation( | ||
builder, | ||
_tracks, | ||
_initData); | ||
} | ||
} | ||
|
40 changes: 40 additions & 0 deletions
40
src/library/java/gg/generations/rarecandy/pokeutils/GFLib/Anim/BoneAnimationT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package gg.generations.rarecandy.pokeutils.GFLib.Anim; | ||
|
||
import com.google.flatbuffers.BaseVector; | ||
import com.google.flatbuffers.BooleanVector; | ||
import com.google.flatbuffers.ByteVector; | ||
import com.google.flatbuffers.Constants; | ||
import com.google.flatbuffers.DoubleVector; | ||
import com.google.flatbuffers.FlatBufferBuilder; | ||
import com.google.flatbuffers.FloatVector; | ||
import com.google.flatbuffers.IntVector; | ||
import com.google.flatbuffers.LongVector; | ||
import com.google.flatbuffers.ShortVector; | ||
import com.google.flatbuffers.StringVector; | ||
import com.google.flatbuffers.Struct; | ||
import com.google.flatbuffers.Table; | ||
import com.google.flatbuffers.UnionVector; | ||
import java.nio.ByteBuffer; | ||
import java.nio.ByteOrder; | ||
|
||
public class BoneAnimationT { | ||
private BoneTrackT[] tracks; | ||
private BoneInitT initData; | ||
|
||
public BoneTrackT[] getTracks() { return tracks; } | ||
|
||
public void setTracks(BoneTrackT[] tracks) { this.tracks = tracks; } | ||
|
||
public BoneInitT getInitData() { return initData; } | ||
|
||
public void setInitData(BoneInitT initData) { this.initData = initData; } | ||
|
||
|
||
public BoneAnimationT() { | ||
this.tracks = null; | ||
this.initData = null; | ||
} | ||
} | ||
|
67 changes: 67 additions & 0 deletions
67
src/library/java/gg/generations/rarecandy/pokeutils/GFLib/Anim/BoneInit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
package gg.generations.rarecandy.pokeutils.GFLib.Anim; | ||
|
||
import com.google.flatbuffers.BaseVector; | ||
import com.google.flatbuffers.BooleanVector; | ||
import com.google.flatbuffers.ByteVector; | ||
import com.google.flatbuffers.Constants; | ||
import com.google.flatbuffers.DoubleVector; | ||
import com.google.flatbuffers.FlatBufferBuilder; | ||
import com.google.flatbuffers.FloatVector; | ||
import com.google.flatbuffers.IntVector; | ||
import com.google.flatbuffers.LongVector; | ||
import com.google.flatbuffers.ShortVector; | ||
import com.google.flatbuffers.StringVector; | ||
import com.google.flatbuffers.Struct; | ||
import com.google.flatbuffers.Table; | ||
import com.google.flatbuffers.UnionVector; | ||
import java.nio.ByteBuffer; | ||
import java.nio.ByteOrder; | ||
|
||
@SuppressWarnings("unused") | ||
public final class BoneInit extends Table { | ||
public static void ValidateVersion() { Constants.FLATBUFFERS_23_5_26(); } | ||
public static BoneInit getRootAsBoneInit(ByteBuffer _bb) { return getRootAsBoneInit(_bb, new BoneInit()); } | ||
public static BoneInit getRootAsBoneInit(ByteBuffer _bb, BoneInit obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } | ||
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } | ||
public BoneInit __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | ||
|
||
public long isInit() { int o = __offset(4); return o != 0 ? (long)bb.getInt(o + bb_pos) & 0xFFFFFFFFL : 0L; } | ||
public Transform transform() { return transform(new Transform()); } | ||
public Transform transform(Transform obj) { int o = __offset(6); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; } | ||
|
||
public static void startBoneInit(FlatBufferBuilder builder) { builder.startTable(2); } | ||
public static void addIsInit(FlatBufferBuilder builder, long isInit) { builder.addInt(0, (int) isInit, (int) 0L); } | ||
public static void addTransform(FlatBufferBuilder builder, int transformOffset) { builder.addStruct(1, transformOffset, 0); } | ||
public static int endBoneInit(FlatBufferBuilder builder) { | ||
int o = builder.endTable(); | ||
return o; | ||
} | ||
|
||
public static final class Vector extends BaseVector { | ||
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } | ||
|
||
public BoneInit get(int j) { return get(new BoneInit(), j); } | ||
public BoneInit get(BoneInit obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } | ||
} | ||
public BoneInitT unpack() { | ||
BoneInitT _o = new BoneInitT(); | ||
unpackTo(_o); | ||
return _o; | ||
} | ||
public void unpackTo(BoneInitT _o) { | ||
long _oIsInit = isInit(); | ||
_o.setIsInit(_oIsInit); | ||
if (transform() != null) transform().unpackTo(_o.getTransform()); | ||
else _o.setTransform(null); | ||
} | ||
public static int pack(FlatBufferBuilder builder, BoneInitT _o) { | ||
if (_o == null) return 0; | ||
startBoneInit(builder); | ||
addIsInit(builder, _o.getIsInit()); | ||
addTransform(builder, Transform.pack(builder, _o.getTransform())); | ||
return endBoneInit(builder); | ||
} | ||
} | ||
|
Oops, something went wrong.