Packages

final case class IndigoAssets(gameAssetsDirectory: RelPath, include: (RelPath) ⇒ Boolean, exclude: (RelPath) ⇒ Boolean, rename: Option[(String, String) ⇒ String]) extends Product with Serializable

Represents you game's assets processing. All assets and details are based around a single asset directory and it's sub-tree.

gameAssetsDirectory

Project relative path to a directory that contains all of the assets the game needs to load. Default './assets'.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IndigoAssets
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IndigoAssets(gameAssetsDirectory: RelPath, include: (RelPath) ⇒ Boolean, exclude: (RelPath) ⇒ Boolean, rename: Option[(String, String) ⇒ String])

    gameAssetsDirectory

    Project relative path to a directory that contains all of the assets the game needs to load. Default './assets'.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val exclude: (RelPath) ⇒ Boolean
  8. def filesToCopy: List[Path]
  9. def filesToCopy(baseDirectory: Path): List[Path]

    List which absolute paths will be copied from the source asset directory.

  10. val gameAssetsDirectory: RelPath
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. val include: (RelPath) ⇒ Boolean
  13. def isCopyAllowed(rel: RelPath): Boolean

    Decides if a relative path will be included in the assets or not.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def listAssetFiles: List[RelPath]
  16. def listAssetFiles(baseDirectory: Path): List[RelPath]

    List all relative paths that will be available to the game.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. val rename: Option[(String, String) ⇒ String]
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def withAssetDirectory(path: RelPath): IndigoAssets

    Sets the asset directory path

  26. def withAssetDirectory(path: String): IndigoAssets

    Sets the asset directory path

  27. def withExclude(p: (RelPath) ⇒ Boolean): IndigoAssets

    Function that decides if a path in the assets folder should specifically be excluded.

    Function that decides if a path in the assets folder should specifically be excluded. Useful for excluding source files or folders used during asset development.

  28. def withInclude(p: (RelPath) ⇒ Boolean): IndigoAssets

    Function that decides if a path in the assets folder should specifically be included.

    Function that decides if a path in the assets folder should specifically be included. Useful for including a file inside a folder that has been excluded.

  29. def withRenameFunction(f: (String, String) ⇒ String): IndigoAssets

    Provide a custom renaming function (arguments are (name, ext) => ???) used during asset listing generation to produce safe names for generated code.

    Provide a custom renaming function (arguments are (name, ext) => ???) used during asset listing generation to produce safe names for generated code. Original file names will not be affected. For example: A file called some_text-file!.txt by default will copied as is with it's path preserved, but in the generated Scala code it's name will be someTextFile, i.e. val someTextFile: AssetName = ???

    f

    Function that takes a tuple of Strings, file name and extension, and returns a new 'safe for Scala' name.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped