All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.Archetype Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
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