com.artemis.Archetype Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb Show documentation
Show all versions of artemis-odb Show documentation
Fork of Artemis Entity System Framework.
package com.artemis;
/**
* Provides a blueprint for new entities, offering greatly
* improved insertion performance for systems and managers.
*
* Instance entities using {@link com.artemis.World#createEntity(com.artemis.ArchetypeBuilder.Archetype)}
*/
public final class Archetype {
final ComponentType[] types;
final int compositionId;
/**
* @param types Desired composition of derived components.
* @param compositionId uniquely identifies component composition.
*/
Archetype(ComponentType[] types, int compositionId) {
this.types = types;
this.compositionId = compositionId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy