com.threerings.tudey.data
Class ModifyEntriesUpdate

java.lang.Object
  extended by com.threerings.whirled.data.SceneUpdate
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Field Summary
 TudeySceneModel.Entry[] added
          The entries added to the scene.
 Object[] removed
          The keys of the entries removed from the scene.
 TudeySceneModel.Entry[] updated
          The entries updated within the scene.
 
Constructor Summary
ModifyEntriesUpdate()
           
 
Method Summary
 void apply(com.threerings.whirled.data.SceneModel model)
           
 void init(int targetId, int targetVersion, TudeySceneModel.Entry[] added, TudeySceneModel.Entry[] updated, Object[] removed)
          Initializes this update with all necessary data.
 
Methods inherited from class com.threerings.whirled.data.SceneUpdate
getSceneId, getSceneVersion, getVersionIncrement, init, persistTo, readObject, toString, unpersistFrom, validate, writeObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ModifyEntriesUpdate

public ModifyEntriesUpdate()
Method Detail

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 none
removed - 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.