package com.kehxstudios.atlas.type;

import com.kehxstudios.atlas.entities.Entity;

import java.util.HashMap;

/**
 * Could be removed in the future
 */

public enum EntityType {

    SCREEN("Screen", Entity.class),
    PLAYER("Player", Entity.class),
    VOID("void", Entity.class);

    private String id;
    private Class loaderClass;

    private EntityType(String name, Class loaderClass) {
        this.id = name;
        this.loaderClass = loaderClass;
    }

    public String getId() {
        return id;
    }

    public static EntityType getTypeById(String id) {
        return entityTypes.get(id);
    }

    private static HashMap<String, EntityType> entityTypes;

    static {
        entityTypes = new HashMap<String, EntityType>();
        for (EntityType type : EntityType.values()) {
            entityTypes.put(type.id, type);
        }
    }
}

@@ -192,30 +192,16 @@
 %22Screen%22
-, Entity.class
 ),%0A    P
@@ -214,30 +214,75 @@
 %22Player%22
-, Entity.class
+),%0A    ENEMY(%22Enemy%22,%0A    WORLD(%22World%22),%0A    OTHER(%22Other%22
 ),%0A    V
@@ -295,22 +295,8 @@
 oid%22
-, Entity.class
 );%0A%0A
@@ -321,39 +321,8 @@
  id;
-%0A    private Class loaderClass;
 %0A%0A  
@@ -357,27 +357,8 @@
 name
-, Class loaderClass
 ) %7B%0A
@@ -385,48 +385,8 @@
 me;%0A
-        this.loaderClass = loaderClass;%0A
     

Update EntityType.java