···138138 * @return will return the current time in nano's
139139 */
140140 private long getTime()
141141- { return System.nanoTime(); }
141141+ {
142142+ return System.nanoTime();
143143+ }
142144143145 private static class RunningAvg
144146 {
···4343 }
44444545 public Vertex getVertex()
4646- { return new Vertex(x, y, z); }
4646+ {
4747+ return new Vertex(x, y, z);
4848+ }
47494850 @Override
4951 public String toString()
···4545 }
46464747 public int getX()
4848- { return x + Math.round(dragX); }
4848+ {
4949+ return x + Math.round(dragX);
5050+ }
49515052 public int getY()
5151- { return y + Math.round(dragY); }
5353+ {
5454+ return y + Math.round(dragY);
5555+ }
5256 }
53575458 public static final class WorldLocation extends WorldMarker
+6-2
src/main/java/game/yay0/EncodeCopy.java
···17171818 @Override
1919 public int getEncodeLength()
2020- { return 1; }
2020+ {
2121+ return 1;
2222+ }
21232224 @Override
2325 public int getBudgetCost()
2424- { return 1; }
2626+ {
2727+ return 1;
2828+ }
25292630 @Override
2731 public String toString()
···1313 0x08 offset to link table
1414 0x0C offset to non-linked chunks and count modifiers table
1515 0x10 packed data
1616-1616+1717 The packed data is a bitstream (padded to a multiple of 32bits), with each bit having the following meaning:
1818-1818+1919 0 linked chunk, copy block from the link table (offset 0x0008)
2020 1 non linked chunk, copy next byte from non-linked chunks and count modifiers table (offset at 0x000c)
2121 **/
+5-5
src/main/java/game/yay0/Yay0Helper.java
···1010 {
1111 File source = new File("./yay0/decoded/0210ACFC.bin");
1212 encode(FileUtils.readFileToByteArray(source));
1313-1313+1414 /*
1515 File sourceFile = new File("./test/dro_01_shape.yay0");
1616 byte[] source = FileUtils.readFileToByteArray(sourceFile);
1717-1717+1818 byte[] decoded = decode(source);
1919-1919+2020 File out = new File("./test/dro_01_shape.bin");
2121 FileUtils.writeByteArrayToFile(out, decoded);
2222 */
···2727 */
28282929 /*
3030-3030+3131 File sourceFile = new File("./yay0/ver/decomp/024F64DC.bin");
3232 byte[] yay0 = encode(FileUtils.readFileToByteArray(sourceFile));
3333-3333+3434 for(int i = 0; i < yay0.length;)
3535 {
3636 System.out.print(String.format("%02X", yay0[i]));
+9-3
src/main/java/renderer/FrameBuffer.java
···8181 }
82828383 public int getFrameBuffer()
8484- { return frameBuffer; }
8484+ {
8585+ return frameBuffer;
8686+ }
85878688 public int getColorTexture()
8787- { return colorTexture; }
8989+ {
9090+ return colorTexture;
9191+ }
88928993 public int getDepthTexture()
9090- { return depthTexture; }
9494+ {
9595+ return depthTexture;
9696+ }
91979298 public void setViewport(int minX, int minY, int sizeX, int sizeY)
9399 {
+6-2
src/main/java/renderer/buffers/BufferVertex.java
···2626 }
27272828 public int getIndex()
2929- { return index; }
2929+ {
3030+ return index;
3131+ }
30323133 protected void setIndex(int newIndex)
3232- { index = newIndex; }
3434+ {
3535+ index = newIndex;
3636+ }
33373438 public BufferVertex setPosition(float x, float y, float z)
3539 {
+6-2
src/main/java/renderer/buffers/BufferedMesh.java
···110110 }
111111112112 public int getVertexCount()
113113- { return verts.size(); }
113113+ {
114114+ return verts.size();
115115+ }
114116115117 public int getTriangleCount()
116116- { return tris.size(); }
118118+ {
119119+ return tris.size();
120120+ }
117121118122 public void loadBuffers()
119123 {
+6-2
src/main/java/renderer/buffers/LineBatch.java
···4949 }
50505151 public int getVertexCount()
5252- { return verts.size(); }
5252+ {
5353+ return verts.size();
5454+ }
53555456 public int getLineCount()
5555- { return lines.size(); }
5757+ {
5858+ return lines.size();
5959+ }
56605761 @Override
5862 public int compareTo(LineBatch o)
+15-5
src/main/java/renderer/shaders/RenderState.java
···202202 }
203203204204 public static final float getLineWidth()
205205- { return rec.glLineWidth; }
205205+ {
206206+ return rec.glLineWidth;
207207+ }
206208207209 // --------------------------------------------------------------------------
208210 // cache point size
···223225 }
224226225227 public static final float getPointSize()
226226- { return rec.glPointSize; }
228228+ {
229229+ return rec.glPointSize;
230230+ }
227231228232 // --------------------------------------------------------------------------
229233 // cache shader program
···289293 }
290294291295 public static int getGlobalsUBO()
292292- { return matrixUBO; }
296296+ {
297297+ return matrixUBO;
298298+ }
293299294300 // --------------------------------------------------------------------------
295301 // global matrix state
···390396 }
391397392398 public static int getViewportSizeX()
393393- { return rec.glViewSizeX; }
399399+ {
400400+ return rec.glViewSizeX;
401401+ }
394402395403 public static int getViewportSizeY()
396396- { return rec.glViewSizeY; }
404404+ {
405405+ return rec.glViewSizeY;
406406+ }
397407398408 // --------------------------------------------------------------------------
399409 // global time
···4141 }
42424343 public int getNumPasses()
4444- { return numPasses; }
4444+ {
4545+ return numPasses;
4646+ }
45474648 // do not include this in constructor! we want to keep shaders lazy-loaded
4749 // postprocess shaders can either use different shaders in each pass or switch on the u_pass uniform