Updated some stuff
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user