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 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