CopyState
| Kind | class |
| Package | mobile |
| Full name | mobile.CopyState |
| Source | source/mobile/CopyState.hx |
| Extends | MusicBeatState |
| Compiled when | #if mobile |
... @author: Karim Akra
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
IGNORE_FOLDER_FILE_NAME | String | yes | "CopyState-Ignore.txt" | final · #if mobile |
locatedFiles | Array<String> | yes | [] | #if mobile |
maxLoopTimes | Int | yes | 0 | #if mobile |
loadingImage | FlxSprite | no | — | #if mobile |
loadingBar | FlxBar | no | — | #if mobile |
loadedText | FlxText | no | — | #if mobile |
thread | ThreadPool | no | — | #if mobile |
Public methods
onResize
override function onResize(width:Int, height:Int):Void
Only compiled when #if mobile.
| Parameter | Type | Default |
|---|---|---|
width | Int | — |
height | Int | — |
copyAsset
function copyAsset(file:String)
Only compiled when #if mobile.
| Parameter | Type | Default |
|---|---|---|
file | String | — |
createContentFromInternal
function createContentFromInternal(file:String)
Only compiled when #if mobile.
| Parameter | Type | Default |
|---|---|---|
file | String | — |
getFileBytes
function getFileBytes(file:String):ByteArray
Only compiled when #if mobile.
| Parameter | Type | Default |
|---|---|---|
file | String | — |
getFile
static function getFile(file:String):String
Only compiled when #if mobile.
| Parameter | Type | Default |
|---|---|---|
file | String | — |
checkExistingFiles
static function checkExistingFiles():Bool
Only compiled when #if mobile.
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
textFilesExtensions | Array<String> | yes |
directoriesToIgnore | Array<String> | yes |
background | FlxSprite | no |
failedFilesStack | Array<String> | no |
failedFiles | Array<String> | no |
shouldCopy | Bool | no |
canUpdate | Bool | no |
loopTimes | Int | no |
| Method |
|---|
override function create() |
override function update(elapsed:Float) |
static inline function isFontFile(file:String):Bool |
static inline function isPackagedFont(file:String):Bool |