diff --git a/src/commands/dew/core/api/IDewCore.java b/src/commands/dew/core/api/IDewCore.java new file mode 100644 index 0000000..eefecf0 --- /dev/null +++ b/src/commands/dew/core/api/IDewCore.java @@ -0,0 +1,5 @@ +package commands.dew.core.api; + +public interface IDewCore { + +} diff --git a/src/commands/dew/core/api/IDewLuaCore.java b/src/commands/dew/core/api/IDewLuaCore.java new file mode 100644 index 0000000..c33a4ac --- /dev/null +++ b/src/commands/dew/core/api/IDewLuaCore.java @@ -0,0 +1,6 @@ +package commands.dew.core.api; + +public interface IDewLuaCore +{ + +} diff --git a/src/commands/dew/core/api/IDewLuaSerializable.java b/src/commands/dew/core/api/IDewLuaSerializable.java new file mode 100644 index 0000000..2c4b49e --- /dev/null +++ b/src/commands/dew/core/api/IDewLuaSerializable.java @@ -0,0 +1,6 @@ +package commands.dew.core.api; + +public interface IDewLuaSerializable +{ + // Type info for derived class encoded in T +} diff --git a/src/commands/dew/core/api/IDewPlayer.java b/src/commands/dew/core/api/IDewPlayer.java new file mode 100644 index 0000000..6c9d1a2 --- /dev/null +++ b/src/commands/dew/core/api/IDewPlayer.java @@ -0,0 +1,6 @@ +package commands.dew.core.api; + +public interface IDewPlayer +{ + public String getName(); +} diff --git a/src/commands/dew/core/data/DewMap.java b/src/commands/dew/core/data/DewMap.java new file mode 100644 index 0000000..de139b0 --- /dev/null +++ b/src/commands/dew/core/data/DewMap.java @@ -0,0 +1,10 @@ +package commands.dew.core.data; + +import commands.dew.core.api.IDewLuaSerializable; + +public final class DewMap implements IDewLuaSerializable +{ + public int mapWidth = 20; + public int mapHeight = 20; + public DewMapTile[][] map; +} diff --git a/src/commands/dew/core/data/DewMapTile.java b/src/commands/dew/core/data/DewMapTile.java new file mode 100644 index 0000000..1330bb4 --- /dev/null +++ b/src/commands/dew/core/data/DewMapTile.java @@ -0,0 +1,17 @@ +package commands.dew.core.data; + +public enum DewMapTile +{ + Default(0), Tree(1); + + private final int value; + private DewMapTile(int value) + { + this.value = value; + } + + public int getValue() + { + return value; + } +} diff --git a/src/commands/dew/core/impl/DewLuaCore.java b/src/commands/dew/core/impl/DewLuaCore.java new file mode 100644 index 0000000..a983bf7 --- /dev/null +++ b/src/commands/dew/core/impl/DewLuaCore.java @@ -0,0 +1,17 @@ +package commands.dew.core.impl; + +import java.lang.reflect.Field; + +import commands.dew.core.api.IDewLuaCore; +import commands.dew.core.api.IDewLuaSerializable; + +public class DewLuaCore implements IDewLuaCore +{ + public void Parse(IDewLuaSerializable item) + { + for(Field field : item.getClass().getDeclaredFields()) + { + + } + } +}