Fixed up some event constructors that didn't have zero-arg forms.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4157 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -30,12 +30,14 @@ public class ElementUpdatedEvent extends NamedEvent
|
|||||||
* @param index the index in the array of the updated element.
|
* @param index the index in the array of the updated element.
|
||||||
*/
|
*/
|
||||||
public function ElementUpdatedEvent (
|
public function ElementUpdatedEvent (
|
||||||
targetOid :int, name :String, value :Object, oldValue :Object,
|
targetOid :int = 0, name :String = null, value :Object = null,
|
||||||
index :int)
|
oldValue :Object = null, index :int = 0)
|
||||||
{
|
{
|
||||||
super(targetOid, name);
|
super(targetOid, name);
|
||||||
_value = value;
|
_value = value;
|
||||||
_oldValue = oldValue;
|
if (oldValue != null) {
|
||||||
|
_oldValue = oldValue;
|
||||||
|
}
|
||||||
_index = index;
|
_index = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ public class InvocationNotificationEvent extends DEvent
|
|||||||
* only values of valid distributed object types.
|
* only values of valid distributed object types.
|
||||||
*/
|
*/
|
||||||
public function InvocationNotificationEvent (
|
public function InvocationNotificationEvent (
|
||||||
targetOid :int, receiverId :int, methodId :int, args :Array)
|
targetOid :int = 0, receiverId :int = 0, methodId :int = 0,
|
||||||
|
args :Array = null)
|
||||||
{
|
{
|
||||||
super(targetOid);
|
super(targetOid);
|
||||||
_receiverId = receiverId;
|
_receiverId = receiverId;
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ public class InvocationRequestEvent extends DEvent
|
|||||||
* only values of valid distributed object types.
|
* only values of valid distributed object types.
|
||||||
*/
|
*/
|
||||||
public function InvocationRequestEvent (
|
public function InvocationRequestEvent (
|
||||||
targetOid :int, invCode :int, methodId :int, args :Array)
|
targetOid :int = 0, invCode :int = 0, methodId :int = 0,
|
||||||
|
args :Array = null)
|
||||||
{
|
{
|
||||||
super(targetOid);
|
super(targetOid);
|
||||||
_invCode = invCode;
|
_invCode = invCode;
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ public class InvocationResponseEvent extends DEvent
|
|||||||
* only values of valid distributed object types.
|
* only values of valid distributed object types.
|
||||||
*/
|
*/
|
||||||
public function InvocationResponseEvent (
|
public function InvocationResponseEvent (
|
||||||
targetOid :int = 0, requestId :int = 0, methodId :int = 0,
|
targetOid :int = 0, requestId :int = 0, methodId :int = 0,
|
||||||
args :Array = null)
|
args :Array = null)
|
||||||
{
|
{
|
||||||
super(targetOid);
|
super(targetOid);
|
||||||
_requestId = requestId;
|
_requestId = requestId;
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ public class ObjectAddedEvent extends NamedEvent
|
|||||||
* the specified oid.
|
* the specified oid.
|
||||||
* @param oid the oid to add to the oid list attribute.
|
* @param oid the oid to add to the oid list attribute.
|
||||||
*/
|
*/
|
||||||
public function ObjectAddedEvent (targetOid :int, name :String, oid :int)
|
public function ObjectAddedEvent (
|
||||||
|
targetOid :int = 0, name :String = null, oid :int = 0)
|
||||||
{
|
{
|
||||||
super(targetOid, name);
|
super(targetOid, name);
|
||||||
_oid = oid;
|
_oid = oid;
|
||||||
@@ -54,7 +55,7 @@ public class ObjectAddedEvent extends NamedEvent
|
|||||||
protected override function notifyListener (listener :Object) :void
|
protected override function notifyListener (listener :Object) :void
|
||||||
{
|
{
|
||||||
if (listener is OidListListener) {
|
if (listener is OidListListener) {
|
||||||
listener.objectAdded(this);
|
(listener as OidListListener).objectAdded(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class ObjectDestroyedEvent extends DEvent
|
|||||||
*
|
*
|
||||||
* @param targetOid the object id of the object that will be destroyed.
|
* @param targetOid the object id of the object that will be destroyed.
|
||||||
*/
|
*/
|
||||||
public function ObjectDestroyedEvent (targetOid :int)
|
public function ObjectDestroyedEvent (targetOid :int = 0)
|
||||||
{
|
{
|
||||||
super(targetOid);
|
super(targetOid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user