Package com.xebisco.yield
Class Entity2DPrefab
java.lang.Object
com.xebisco.yield.Entity2DPrefab
The Entity2DPrefab class is a blueprint for creating 2D entities with components, children, and tags.
-
Constructor Summary
ConstructorsConstructorDescriptionEntity2DPrefab(ComponentCreation... components) Entity2DPrefab(Entity2DPrefab[] children, ComponentCreation... components) The constructor that initializes theEntity2DPrefabwith children and components.Entity2DPrefab(Entity2DPrefab[] children, String[] tags, ComponentCreation... components) The constructor that initializes theEntity2DPrefabwith children, components, and tags.Entity2DPrefab(String[] tags, ComponentCreation... components) The constructor that initializes theEntity2DPrefabwith components. -
Method Summary
Modifier and TypeMethodDescriptionchildren()The function returns an array of 2D entity prefabs that are children of a parent entity.The function returns an array ofComponentCreationobjects.String[]tags()The function returns an array of strings representing tags.
-
Constructor Details
-
Entity2DPrefab
The constructor that initializes theEntity2DPrefabwith children and components.- Parameters:
children- The array ofEntity2DPrefabobjects representing the children of the entity.components- The array ofComponentCreationobjects representing the components of the entity.
-
Entity2DPrefab
The constructor that initializes theEntity2DPrefabwith children, components, and tags.- Parameters:
children- The array ofEntity2DPrefabobjects representing the children of the entity.tags- The array of strings representing the tags of the entity.components- The array ofComponentCreationobjects representing the components of the entity.
-
Entity2DPrefab
-
Entity2DPrefab
The constructor that initializes theEntity2DPrefabwith components.- Parameters:
components- The array of ComponentCreation objects representing the components of the entity.
-
-
Method Details
-
components
The function returns an array ofComponentCreationobjects.- Returns:
- An array of ComponentCreation objects representing the components of the entity.
-
children
The function returns an array of 2D entity prefabs that are children of a parent entity.- Returns:
- An array of
Entity2DPrefabobjects representing the children of the entity.
-
tags
The function returns an array of strings representing tags.- Returns:
- An array of strings representing the tags of the entity.
-