com.threerings.tudey.config
Class SceneGlobalConfig.Implementation

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.SceneGlobalConfig.Implementation
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
SceneGlobalConfig.Derived, SceneGlobalConfig.Original
Enclosing class:
SceneGlobalConfig

@EditorTypes(value={SceneGlobalConfig.EnvironmentModel.class,SceneGlobalConfig.Camera.class,SceneGlobalConfig.Derived.class})
public abstract static class SceneGlobalConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the global.


Constructor Summary
SceneGlobalConfig.Implementation()
           
 
Method Summary
abstract  SceneGlobalConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
abstract  GlobalSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, GlobalSprite.Implementation impl)
          Creates or updates a sprite implementation for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 
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
 

Constructor Detail

SceneGlobalConfig.Implementation

public SceneGlobalConfig.Implementation()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set.


getOriginal

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


getSpriteImplementation

public abstract 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.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.