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.
*
* Instance entities using {@link com.artemis.World#create(Archetype)}
* @see EntityEdit for a list of alternate ways to alter composition and access components.
*/
public final class Archetype {
final EntityTransmuter.TransmuteOperation transmuter;
final int compositionId;
/**
* @param transmuter Desired composition of derived components.
* @param compositionId uniquely identifies component composition.
*/
Archetype(EntityTransmuter.TransmuteOperation transmuter, int compositionId) {
this.transmuter = transmuter;
this.compositionId = compositionId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy