com.threerings.tudey.data
Class ModifyEntriesUpdate
java.lang.Object
com.threerings.whirled.data.SceneUpdate
com.threerings.tudey.data.ModifyEntriesUpdate
- All Implemented Interfaces:
- com.threerings.io.Streamable, Cloneable
public class ModifyEntriesUpdate
- extends com.threerings.whirled.data.SceneUpdate
A scene update that is broadcast when entries have been added to, removed from, or updated
within the scene.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
| Methods inherited from class com.threerings.whirled.data.SceneUpdate |
getSceneId, getSceneVersion, getVersionIncrement, init, persistTo, readObject, 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(com.threerings.whirled.data.SceneModel model)
- Overrides:
apply in class com.threerings.whirled.data.SceneUpdate
Copyright © 2011. All Rights Reserved.