WIP: Dnamic SchemType rework
Dieser Commit ist enthalten in:
Ursprung
7ca97476bd
Commit
364d3f8f83
@ -3,8 +3,8 @@ package de.steamwar.sql;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public enum SchematicType {
|
||||
Normal("", Type.NORMAL),
|
||||
public class SchematicType {
|
||||
public static final SchematicType Normal = new SchematicType("", Type.NORMAL); //Has to stay publicly availible
|
||||
|
||||
CAirShip("CAS", Type.CHECK_TYPE),
|
||||
CWarGear("CWG", Type.CHECK_TYPE),
|
||||
@ -46,11 +46,11 @@ public enum SchematicType {
|
||||
private final Type type;
|
||||
private SchematicType checkType;
|
||||
|
||||
SchematicType(String kuerzel, Type type){
|
||||
private SchematicType(String kuerzel, Type type){
|
||||
this(kuerzel, type, null);
|
||||
}
|
||||
|
||||
SchematicType(String kuerzel, Type type, SchematicType checkType){
|
||||
private SchematicType(String kuerzel, Type type, SchematicType checkType){
|
||||
this.kuerzel = kuerzel;
|
||||
this.type = type;
|
||||
this.checkType = checkType;
|
||||
@ -88,6 +88,10 @@ public enum SchematicType {
|
||||
return fromDB.get(input.toLowerCase());
|
||||
}
|
||||
|
||||
//public static List<SchematicType> values(){
|
||||
//TODO
|
||||
//}
|
||||
|
||||
enum Type{
|
||||
NORMAL,
|
||||
CHECK_TYPE,
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren