|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.tudey.config.EffectConfig.Implementation
com.threerings.tudey.config.EffectConfig.Original
public static class EffectConfig.Original
Superclass of the original implementations.
| Field Summary | |
|---|---|
ActionConfig |
action
The action associated with the effect, if any. |
int |
lifespan
The lifespan of the effect. |
ShapeConfig |
shape
The shape of the effect. |
EffectSpriteConfig |
sprite
The type of sprite to use for the effect. |
boolean |
targetOnly
If true, only show the effect to its target. |
| Constructor Summary | |
|---|---|
EffectConfig.Original()
|
|
| Method Summary | |
|---|---|
Effect |
createEffect(ConfigReference<EffectConfig> config,
int timestamp,
EntityKey target,
Vector2f translation,
float rotation)
Creates a new effect of the type associated with this config. |
EffectSprite.Implementation |
createSpriteImplementation(TudeyContext ctx,
Scope scope,
Effect effect)
Creates a sprite implementation for this configuration. |
String |
getLogicClassName()
Returns the name of the server-side logic class to use for the effect. |
EffectConfig.Original |
getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation. |
void |
getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
Adds the resources to preload for this effect into the provided set. |
void |
invalidate()
Invalidates any cached data. |
| Methods inherited from class com.threerings.tudey.config.EffectConfig.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 |
|---|
@Editable public EffectSpriteConfig sprite
@Editable public ShapeConfig shape
@Editable(nullable=true) public ActionConfig action
@Editable(min=0.0,
hgroup="l")
public int lifespan
@Editable(hgroup="l") public boolean targetOnly
| Constructor Detail |
|---|
public EffectConfig.Original()
| Method Detail |
|---|
public String getLogicClassName()
public Effect createEffect(ConfigReference<EffectConfig> config,
int timestamp,
EntityKey target,
Vector2f translation,
float rotation)
public void getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
public EffectConfig.Original getOriginal(ConfigManager cfgmgr)
EffectConfig.Implementation
getOriginal in class EffectConfig.Implementation
public EffectSprite.Implementation createSpriteImplementation(TudeyContext ctx,
Scope scope,
Effect effect)
EffectConfig.Implementation
createSpriteImplementation in class EffectConfig.Implementationscope - the effect's expression scope.
null if no implementation could be
created.public void invalidate()
EffectConfig.Implementation
invalidate in class EffectConfig.Implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||