Package horizons :: Package util :: Package loaders :: Module sqliteatlasloader :: Class SQLiteAtlasLoader
[hide private]
[frames] | no frames]

Class SQLiteAtlasLoader

source code

Loads atlases and appropriate action sets from a JSON file and a SQLite database.

Instance Methods [hide private]
__init__(self) source code
Used to lazy init the loader
source code
loadResource(self, location)
@param location: String with the location.
source code
_get_loader(self, actionset) source code
load_image(self, file, actionset, action, rotation) source code
Method Details [hide private]

loadResource(self, location)

source code 

@param location: String with the location. See below for details:
Location format: <animation_id>:<command>:<params> (e.g.: "123:shift:left-16, bottom-8)
Available commands:
- shift:
Shift the image using the params left, right, center, middle for x shifting and
y-shifting with the params: top, bottom, center, middle.
A param looks like this: "param_x(+/-)value, param_y(+/-)value" (e.g.: left-16, bottom+8)
- cut:
#TODO: complete documentation