Move these variables where they belong and add some documentation. Also apparently whitespace.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6506 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -37,7 +37,11 @@ import com.threerings.io.Streamable;
|
|||||||
public class DObject // extends EventDispatcher
|
public class DObject // extends EventDispatcher
|
||||||
implements Streamable
|
implements Streamable
|
||||||
{
|
{
|
||||||
private static const log :Log = Log.getLog(DObject);
|
/** Dispatched when a message is posted to the DObject */
|
||||||
|
public const messageReceived :Signal = new Signal(String, Array);
|
||||||
|
|
||||||
|
/** Dispatched when the DObject is destroyed */
|
||||||
|
public const destroyed :Signal = new Signal();
|
||||||
|
|
||||||
public function DObject ()
|
public function DObject ()
|
||||||
{
|
{
|
||||||
@@ -78,9 +82,6 @@ public class DObject // extends EventDispatcher
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public const messageReceived :Signal = new Signal(String, Array);
|
|
||||||
public const destroyed :Signal = new Signal();
|
|
||||||
|
|
||||||
public function setDestroyOnLastSubscriberRemoved (deathWish :Boolean) :void
|
public function setDestroyOnLastSubscriberRemoved (deathWish :Boolean) :void
|
||||||
{
|
{
|
||||||
_deathWish = deathWish;
|
_deathWish = deathWish;
|
||||||
@@ -231,9 +232,9 @@ public class DObject // extends EventDispatcher
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Commits the transaction in which this distributed object is involved.
|
* Commits the transaction in which this distributed object is involved.
|
||||||
*/
|
*/
|
||||||
public function commitTransaction () :void
|
public function commitTransaction () :void
|
||||||
{
|
{
|
||||||
if (_tevent == null) {
|
if (_tevent == null) {
|
||||||
@@ -339,7 +340,7 @@ public class DObject // extends EventDispatcher
|
|||||||
// dispatch an attribute changed event
|
// dispatch an attribute changed event
|
||||||
postEvent(new ElementUpdatedEvent(_oid, name, value, oldValue, index));
|
postEvent(new ElementUpdatedEvent(_oid, name, value, oldValue, index));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls by derived instances when an oid adder method was called.
|
* Calls by derived instances when an oid adder method was called.
|
||||||
*/
|
*/
|
||||||
@@ -348,7 +349,7 @@ public class DObject // extends EventDispatcher
|
|||||||
// dispatch an object added event
|
// dispatch an object added event
|
||||||
postEvent(new ObjectAddedEvent(_oid, name, oid));
|
postEvent(new ObjectAddedEvent(_oid, name, oid));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls by derived instances when an oid remover method was called.
|
* Calls by derived instances when an oid remover method was called.
|
||||||
*/
|
*/
|
||||||
@@ -421,6 +422,8 @@ public class DObject // extends EventDispatcher
|
|||||||
|
|
||||||
/** Indicates whether we want to be destroyed when our last subscriber is removed. */
|
/** Indicates whether we want to be destroyed when our last subscriber is removed. */
|
||||||
protected var _deathWish :Boolean = false;
|
protected var _deathWish :Boolean = false;
|
||||||
|
|
||||||
|
private static const log :Log = Log.getLog(DObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user