com.threerings.tudey.config
Class SceneGlobalConfig.EnvironmentModel

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.SceneGlobalConfig.Implementation
          extended by com.threerings.tudey.config.SceneGlobalConfig.Original
              extended by 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.


Field Summary
 ConfigReference<ModelConfig> model
          The model to load.
 Transform3D transform
          The transform to apply to the model.
 
Fields inherited from class com.threerings.tudey.config.SceneGlobalConfig.Original
handlers, tags
 
Constructor Summary
SceneGlobalConfig.EnvironmentModel()
           
 
Method Summary
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this global into the provided set.
 GlobalSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, GlobalSprite.Implementation impl)
          Creates or updates a sprite implementation for this configuration.
 
Methods inherited from class com.threerings.tudey.config.SceneGlobalConfig.Original
getLogicClassName, getOriginal, invalidate
 
Methods inherited from class com.threerings.tudey.config.SceneGlobalConfig.Implementation
getUpdateReferences
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

SceneGlobalConfig.EnvironmentModel

public SceneGlobalConfig.EnvironmentModel()
Method Detail

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.