WIP minetest <-> laby import/export

- currently possible to export a laby into minetest
- start of a lua content parser to import .we into lab
This commit is contained in:
philippe lhardy
2020-11-03 23:21:29 +01:00
parent 41067707bc
commit 9355fd8b6d
11 changed files with 424 additions and 10 deletions

View File

@@ -0,0 +1,32 @@
package org.artisanlogiciel.lua;
public class CharProvider {
String input;
int current;
public CharProvider(String input) {
this.input = input;
current = 0;
}
public char getNextchar()
{
int i = current;
if ( input.length() > current) {
current++;
return input.charAt(i);
}
else
{
return 0;
}
}
public void pushBackChar(char c)
{
System.out.print('*');
current--;
}
}