Package com.deco2800.game.components
Class TextureImageComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.TextureImageComponent
A very simple component that stores refernece to the buildings
texture, this is used by the building UI to display an image
of the UI, if the building uses an atlas file rather than
a texture
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.Texture
getAsset()
Returns the UI display texture of the buildingMethods inherited from class com.deco2800.game.components.Component
create, dispose, earlyUpdate, getEntity, isAnimationRenderComponent, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
TextureImageComponent
-
-
Method Details
-
getAsset
public com.badlogic.gdx.graphics.Texture getAsset()Returns the UI display texture of the building- Returns:
- UI display texture.
-