com.threerings.tudey.config
Class SceneGlobalConfig.EnvironmentModel
java.lang.Object
com.threerings.util.DeepObject
com.threerings.tudey.config.SceneGlobalConfig.Implementation
com.threerings.tudey.config.SceneGlobalConfig.Original
com.threerings.tudey.config.SceneGlobalConfig.EnvironmentModel
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Enclosing class:
- SceneGlobalConfig
public static class SceneGlobalConfig.EnvironmentModel
- extends SceneGlobalConfig.Original
A simple environment model.
model
@Editable(nullable=true)
public ConfigReference<ModelConfig> model
- The model to load.
transform
@Editable(step=0.01)
public Transform3D transform
- The transform to apply to the model.
SceneGlobalConfig.EnvironmentModel
public SceneGlobalConfig.EnvironmentModel()
getPreloads
public void getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
- Description copied from class:
SceneGlobalConfig.Original
- Adds the resources to preload for this global into the provided set.
- Overrides:
getPreloads in class SceneGlobalConfig.Original
getSpriteImplementation
public GlobalSprite.Implementation getSpriteImplementation(TudeyContext ctx,
Scope scope,
GlobalSprite.Implementation impl)
- Description copied from class:
SceneGlobalConfig.Implementation
- Creates or updates a sprite implementation for this configuration.
- Specified by:
getSpriteImplementation in class SceneGlobalConfig.Implementation
scope - the global's expression scope.impl - an existing implementation to reuse, if possible.
- Returns:
- either a reference to the existing implementation (if reused), a new
implementation, or
null if no implementation could be created.
Copyright © 2011. All Rights Reserved.