AssetType

object AssetType
Companion:
class
trait Sum
trait Mirror
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 parameters:
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 parameters:
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 parameters:
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 parameters:
name

the asset name used to look up the loaded asset

path

the path to the asset

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

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 parameters:
assets

The potentially tagged hierarchy list.

Returns:

List[AssetTypePrimitive]