com.threerings.openal.config
Class SounderConfig.Implementation

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.openal.config.SounderConfig.Implementation
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
SounderConfig.Compound, SounderConfig.Conditional, SounderConfig.Derived, SounderConfig.Original, SounderConfig.Random, SounderConfig.Scripted, SounderConfig.Sequential
Enclosing class:
SounderConfig

@EditorTypes(value={SounderConfig.Clip.class,SounderConfig.MetaClip.class,SounderConfig.VariableClip.class,SounderConfig.Stream.class,SounderConfig.MetaStream.class,SounderConfig.Conditional.class,SounderConfig.Compound.class,SounderConfig.Sequential.class,SounderConfig.Scripted.class,SounderConfig.Random.class,SounderConfig.Derived.class})
public abstract static class SounderConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the sounder.


Constructor Summary
SounderConfig.Implementation()
           
 
Method Summary
abstract  Sounder.Implementation getSounderImplementation(AlContext ctx, Scope scope, Sounder.Implementation impl)
          Creates or updates a sounder implementation for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources 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

SounderConfig.Implementation

public SounderConfig.Implementation()
Method Detail

getUpdateReferences

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


getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Adds the implementation's update resources to the provided set.


getSounderImplementation

public abstract Sounder.Implementation getSounderImplementation(AlContext ctx,
                                                                Scope scope,
                                                                Sounder.Implementation impl)
Creates or updates a sounder implementation for this configuration.

Parameters:
scope - the sounder'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.