Drag[en]gine Script Module DragonScript Script API  1.0
ResourceManager Class Reference

Resource manager for asynchronous loading. More...

Inheritance diagram for ResourceManager:

Static Public Member Functions

Search path
static int getPathCount (int resType)
 Number of search path for the given resource type. More...
 
static String getPath (int resType, int index)
 Search path for resource type at index. More...
 
static void addPath (int resType, String path)
 Add search path for resource type. More...
 
static void removePath (int resType, String path)
 Remove search path for resource type if present. More...
 
static void removeAllPath (int resType)
 Remove all search path for resource type. More...
 

Static Public Attributes

Resource type constants
static final int RES_TYPE_IMAGE = 0
 Image resource. More...
 
static final int RES_TYPE_SKIN = 1
 Skin resource. More...
 
static final int RES_TYPE_FONT = 2
 Font resource. More...
 
static final int RES_TYPE_MODEL = 3
 Model resource. More...
 
static final int RES_TYPE_ANIMATION = 4
 Animation resource. More...
 

Detailed Description

Resource manager for asynchronous loading.

This is a native class. This is a pure static class. The class can not be instantiated.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addPath()

static void addPath ( int  resType,
String  path 
)
static

Add search path for resource type.

Exceptions
EInvalidParamresType is an invalid value.

§ getPath()

static String getPath ( int  resType,
int  index 
)
static

Search path for resource type at index.

Exceptions
EInvalidParamresType is an invalid value.
EOutOfBoundaryindex is less than 0 or greater than or equal to getPathCount().

§ getPathCount()

static int getPathCount ( int  resType)
static

Number of search path for the given resource type.

Exceptions
EInvalidParamresType is an invalid value.

§ removeAllPath()

static void removeAllPath ( int  resType)
static

Remove all search path for resource type.

Exceptions
EInvalidParamresType is an invalid value.

§ removePath()

static void removePath ( int  resType,
String  path 
)
static

Remove search path for resource type if present.

Exceptions
EInvalidParamresType is an invalid value.

Member Data Documentation

§ RES_TYPE_ANIMATION

final int RES_TYPE_ANIMATION = 4
static

Animation resource.

§ RES_TYPE_FONT

final int RES_TYPE_FONT = 2
static

Font resource.

§ RES_TYPE_IMAGE

final int RES_TYPE_IMAGE = 0
static

Image resource.

§ RES_TYPE_MODEL

final int RES_TYPE_MODEL = 3
static

Model resource.

§ RES_TYPE_SKIN

final int RES_TYPE_SKIN = 1
static

Skin resource.


The documentation for this class was generated from the following file: