AssetType

object AssetType
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Audio(name: AssetName, path: AssetPath) extends AssetTypePrimitive

Represents any browser compatible audio asset

Represents any browser compatible audio asset

Value Params
name

the asset name used to look up the loaded asset

path

the path to the asset

final case class Font(name: AssetName, path: AssetPath) extends AssetTypePrimitive
final case class Image(name: AssetName, path: AssetPath, tag: Option[AssetTag]) extends AssetTypePrimitive

Represents any browser compatible image asset

Represents any browser compatible image asset

Value Params
name

the asset name used to look up the loaded asset

path

the path to the asset

tag

Images can optionally be "tagged", this tells indigo that images with the same tag should be grouped together for more efficient use. E.g. you might tag all the images for a given level with the same tag.

Companion
object
object Image
Companion
class
final case class Tagged(tag: AssetTag, images: List[Image]) extends AssetType

Tagged instance, the preferred constructor is the apply method: Tagged("my tag")(image1..imageN)

Tagged instance, the preferred constructor is the apply method: Tagged("my tag")(image1..imageN)

Images can optionally be "tagged", this tells indigo that images with the same tag should be grouped together for more efficient use. E.g. you might tag all the images for a given level with the same tag.

Value Params
images

The image assets to be tagged

tag

The AssetTag to apply to all the images

Companion
object
object Tagged
Companion
class
final case class Text(name: AssetName, path: AssetPath) extends AssetTypePrimitive

Represents a text asset, Indigo does not care about the type of data held in the text file, it is up to the programmer to parse it.

Represents a text asset, Indigo does not care about the type of data held in the text file, it is up to the programmer to parse it.

Value Params
name

the asset name used to look up the loaded asset

path

the path to the asset

Value members

Concrete methods

def flattenAssetList(assets: List[AssetType]): List[AssetTypePrimitive]

Flattens assets arranged in a Tagged hierarchy into a flat list of loadable assets, appropriately tagged.

Flattens assets arranged in a Tagged hierarchy into a flat list of loadable assets, appropriately tagged.

Value Params
assets

The potentially tagged hierarchy list.

Returns

List[AssetTypePrimitive]

Concrete fields

final lazy val CanEqual_Option_Option: CanEqual[Option[AssetType], Option[AssetType]]
lazy val derived$CanEqual: CanEqual[AssetType, AssetType]