public final class Loader extends Object
Sequence
to start, by using
start(Config, Class, Object...)
.
Example:
Engine.start("First Code", Version.create(1, 0, 0), "resources"); final Resolution output = new Resolution(640, 480, 60); final Config config = new Config(output, 16, true); final Loader loader = new Loader(); loader.start(config, Scene.class);
This class is Thread-Safe.
Config
Constructor and Description |
---|
Loader()
Create a loader.
|
Modifier and Type | Method and Description |
---|---|
TaskFuture |
start(Config config,
Class<? extends Sequencable> sequenceClass,
Object... arguments)
Start the loader with an initial sequence.
|
public TaskFuture start(Config config, Class<? extends Sequencable> sequenceClass, Object... arguments)
config
- The configuration used (must not be null
).sequenceClass
- The the next sequence to start (must not be null
).arguments
- The sequence arguments list if needed by its constructor.LionEngineException
- If the loader has already been started or sequence is invalid.Copyright © 2016 Byron 3D Games Studio. All rights reserved.