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'.
- Alphabetic
- By Inheritance
- IndigoAssets
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val exclude: (RelPath) ⇒ Boolean
- def filesToCopy: List[Path]
-
def
filesToCopy(baseDirectory: Path): List[Path]
List which absolute paths will be copied from the source asset directory.
- val gameAssetsDirectory: RelPath
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val include: (RelPath) ⇒ Boolean
-
def
isCopyAllowed(rel: RelPath): Boolean
Decides if a relative path will be included in the assets or not.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listAssetFiles: List[RelPath]
-
def
listAssetFiles(baseDirectory: Path): List[RelPath]
List all relative paths that will be available to the game.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val rename: Option[(String, String) ⇒ String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withAssetDirectory(path: RelPath): IndigoAssets
Sets the asset directory path
-
def
withAssetDirectory(path: String): IndigoAssets
Sets the asset directory path
-
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.
-
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.
-
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 besomeTextFile
, 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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated