Class ShapePrefab<S extends Shape>
java.lang.Object
dev.prozilla.pine.core.entity.prefab.Prefab
dev.prozilla.pine.core.entity.prefab.shape.ShapePrefab<S>
- Direct Known Subclasses:
RectPrefab
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShapePrefab(S shape) ShapePrefab(S shape, TextureAsset texture) ShapePrefab(S shape, TextureAsset texture, Color color) ShapePrefab(S shape, Color color) ShapePrefab(S shape, String texturePath) ShapePrefab(S shape, String texturePath, Color color) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds this prefab's predefined components to a given entity and copies values from this prefab.protected ShapeRenderer<S> createRenderer(S shape, TextureAsset texture, Color color) voidvoidvoidsetTexture(TextureAsset texture) Methods inherited from class dev.prozilla.pine.core.entity.prefab.Prefab
addChild, addChildren, addChildren, instantiate, instantiate, removeChild, setActive, setName, setTag
-
Field Details
-
shape
-
texture
-
color
-
-
Constructor Details
-
ShapePrefab
-
ShapePrefab
-
ShapePrefab
-
ShapePrefab
-
ShapePrefab
-
ShapePrefab
-
-
Method Details