com.threerings.tudey.data
Class ModifyEntriesUpdate
java.lang.Object
com.threerings.whirled.data.SceneUpdate
com.threerings.tudey.data.ModifyEntriesUpdate
- All Implemented Interfaces:
- Streamable, Cloneable
public class ModifyEntriesUpdate
- extends SceneUpdate
A scene update that is broadcast when entries have been added to, removed from, or updated
within the scene.
| Methods inherited from class com.threerings.whirled.data.SceneUpdate |
getSceneId, getSceneVersion, getVersionIncrement, init, persistTo, readObject, toString, toString, unpersistFrom, validate, writeObject |
added
public TudeySceneModel.Entry[] added
- The entries added to the scene.
updated
public TudeySceneModel.Entry[] updated
- The entries updated within the scene.
removed
public Object[] removed
- The keys of the entries removed from the scene.
ModifyEntriesUpdate
public ModifyEntriesUpdate()
init
public void init(int targetId,
int targetVersion,
TudeySceneModel.Entry[] added,
TudeySceneModel.Entry[] updated,
Object[] 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)
- Overrides:
apply in class SceneUpdate