com.threerings.stage.data
Class ModifyObjectsUpdate
java.lang.Object
com.threerings.whirled.data.SceneUpdate
com.threerings.stage.data.ModifyObjectsUpdate
- All Implemented Interfaces:
- com.threerings.io.Streamable, Cloneable
public class ModifyObjectsUpdate
- extends SceneUpdate
A scene update that is broadcast when objects have been added to or removed
from the scene.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
|
Field Summary |
com.threerings.miso.data.ObjectInfo[] |
added
The objects added to the scene (or null for none). |
com.threerings.miso.data.ObjectInfo[] |
removed
The objects removed from the scene (or null for none). |
|
Method Summary |
void |
apply(SceneModel model)
Applies this update to the specified scene model. |
void |
init(int targetId,
int targetVersion,
com.threerings.miso.data.ObjectInfo[] added,
com.threerings.miso.data.ObjectInfo[] removed)
Initializes this update with all necessary data. |
added
public com.threerings.miso.data.ObjectInfo[] added
- The objects added to the scene (or
null for none).
removed
public com.threerings.miso.data.ObjectInfo[] removed
- The objects removed from the scene (or
null for none).
ModifyObjectsUpdate
public ModifyObjectsUpdate()
init
public void init(int targetId,
int targetVersion,
com.threerings.miso.data.ObjectInfo[] added,
com.threerings.miso.data.ObjectInfo[] removed)
- Initializes this update with all necessary data.
- Parameters:
added - the objects added to the scene, or null for
noneremoved - the objects removed from the scene, or null
for none
apply
public void apply(SceneModel model)
- Description copied from class:
SceneUpdate
- Applies this update to the specified scene model. Derived classes will want to override this
method and apply updates of their own, being sure to call
super.apply.
- Overrides:
apply in class SceneUpdate
Copyright © 2011. All Rights Reserved.