ecs/Component.js

/**
 * Abstract baseclass for ecs components
 * 
 * A component has a name and a component instance holds the data for a specific "behaviour" or "feature",
 * for example a "position" component which holds the data x and y for the entity that has the component attached
 */
class Component {
    constructor(name) {
        this.name = name;
    }
}

export default Component;