com.threerings.tudey.config
Class SceneGlobalConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.tudey.config.SceneGlobalConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, com.threerings.resource.ResourceManager.ModificationObserver, Copyable, Cloneable

public class SceneGlobalConfig
extends ParameterizedConfig

The configuration of a global scene object.


Nested Class Summary
static class SceneGlobalConfig.Camera
          A set of camera parameters that override the defaults.
static class SceneGlobalConfig.Derived
          A derived implementation.
static class SceneGlobalConfig.EnvironmentModel
          A simple environment model.
static class SceneGlobalConfig.Implementation
          Contains the actual implementation of the global.
static class SceneGlobalConfig.Original
          Superclass of the original implementations.
 
Field Summary
 SceneGlobalConfig.Implementation implementation
          The actual global implementation.
static SceneGlobalConfig.Original NULL_ORIGINAL
          Used when we can't resolve the global's underlying original implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
parameters
 
Constructor Summary
SceneGlobalConfig()
           
 
Method Summary
 SceneGlobalConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 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.config.ParameterizedConfig
getInstance, getParameter, getReference, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, init, removeListener, resourceModified, setName, updateFromSource
 
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

NULL_ORIGINAL

public static final SceneGlobalConfig.Original NULL_ORIGINAL
Used when we can't resolve the global's underlying original implementation.


implementation

@Editable
public SceneGlobalConfig.Implementation implementation
The actual global implementation.

Constructor Detail

SceneGlobalConfig

public SceneGlobalConfig()
Method Detail

getOriginal

public SceneGlobalConfig.Original getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation.


getSpriteImplementation

public GlobalSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                           Scope scope,
                                                           GlobalSprite.Implementation impl)
Creates or updates a sprite implementation for this configuration.

Parameters:
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.