Updated some stuff

This commit is contained in:
coolGi2007
2022-02-20 07:30:07 +00:00
parent 6ff797c1cc
commit 83ec6f4da2
3 changed files with 17 additions and 2 deletions
@@ -10,7 +10,7 @@ import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton;
* @author coolGi2007
* @version 02-07-2022
*/
public class Config extends ConfigBase
public class Config
{
// CONFIG STRUCTURE
// -> Client
@@ -23,6 +23,11 @@ public class ConfigBase {
initNestedClass(config, ""); // Init root category
// File handling (load from file)
// Temporary to see stuff
System.out.println(entries);
System.out.println(categories);
}
private static void initNestedClass(Class<?> config, String category) {
@@ -31,7 +36,9 @@ public class ConfigBase {
for (Field field : config.getFields())
{
if (ConfigEntry.class.isAssignableFrom(field.getType())) { // If item is type ConfigEntry
// entries.add(field);
// entries.add(ConfigEntry.class.cast(field));
// entries.get(entries.size() - 1).category = (category.isEmpty() ? "" : category + ".");
// entries.get(entries.size() - 1).category = field.getName();
}
if (field.isAnnotationPresent(ConfigAnnotations.Category.class)) { // If it's a category then init the stuff inside it and put it in the category list
@@ -0,0 +1,8 @@
package com.seibel.lod.core.wrapperInterfaces.config;
public interface IConfigWrapper {
boolean exists(String str);
String getFromLang(String str);
}