Work on fixing entity ID mapping

This commit is contained in:
Anuken
2019-07-03 09:50:33 -04:00
parent 4e873f8bf3
commit 78215363dc
15 changed files with 247 additions and 38 deletions
@@ -0,0 +1,19 @@
package io.anuke.mindustry.game;
import io.anuke.arc.function.Supplier;
import io.anuke.mindustry.entities.traits.TypeTrait;
import io.anuke.mindustry.type.ContentType;
public class TypeID extends MappableContent{
public final Supplier<? extends TypeTrait> constructor;
public TypeID(String name, Supplier<? extends TypeTrait> constructor){
super(name);
this.constructor = constructor;
}
@Override
public ContentType getContentType(){
return ContentType.typeid;
}
}