Class ComponentType

java.lang.Object
com.deco2800.game.components.ComponentType

public class ComponentType
extends java.lang.Object
Internal type system for components. Used to generate unique IDs for each component type at runtime, allowing entities to get components by type.
  • Method Summary

    Modifier and Type Method Description
    static ComponentType getFrom​(java.lang.Class<? extends Component> type)  
    int getId()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait