com.threerings.tudey.config
Class SceneGlobalConfig.Derived

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

public static class SceneGlobalConfig.Derived
extends SceneGlobalConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<SceneGlobalConfig> sceneGlobal
          The global reference.
 
Constructor Summary
SceneGlobalConfig.Derived()
           
 
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.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 
Methods inherited from class com.threerings.tudey.config.SceneGlobalConfig.Implementation
invalidate
 
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

sceneGlobal

@Editable(nullable=true)
public ConfigReference<SceneGlobalConfig> sceneGlobal
The global reference.

Constructor Detail

SceneGlobalConfig.Derived

public SceneGlobalConfig.Derived()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: SceneGlobalConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class SceneGlobalConfig.Implementation

getOriginal

public SceneGlobalConfig.Original getOriginal(ConfigManager cfgmgr)
Description copied from class: SceneGlobalConfig.Implementation
Returns a reference to the config's underlying original implementation.

Specified by:
getOriginal in class SceneGlobalConfig.Implementation

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.