Cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@32 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -54,8 +54,7 @@ public class SceneModel
|
||||
public var version :int;
|
||||
|
||||
/** Auxiliary scene model information. */
|
||||
public var auxModels :TypedArray =
|
||||
new TypedArray("[Lcom.threerings.whirled.data.AuxModel;");
|
||||
public var auxModels :TypedArray = TypedArray.create(AuxModel);
|
||||
|
||||
/**
|
||||
* Adds the specified auxiliary model to this scene model.
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.threerings.whirled.spot.data {
|
||||
|
||||
import com.threerings.util.ArrayUtil;
|
||||
import com.threerings.util.ClassUtil;
|
||||
|
||||
import com.threerings.io.Streamable;
|
||||
@@ -41,8 +42,7 @@ public class SpotSceneModel
|
||||
implements Streamable, AuxModel
|
||||
{
|
||||
/** An array containing all portals in this scene. */
|
||||
public var portals :TypedArray =
|
||||
new TypedArray(TypedArray.getJavaType(Portal));
|
||||
public var portals :TypedArray = TypedArray.create(Portal);
|
||||
|
||||
/** The portal id of the default entrance to this scene. If a body
|
||||
* enters the scene without coming from another scene, this is the
|
||||
@@ -62,12 +62,7 @@ public class SpotSceneModel
|
||||
*/
|
||||
public function removePortal (portal :Portal) :void
|
||||
{
|
||||
for (var ii :int = 0; ii < portals.length; ii++) {
|
||||
if (portal.equals(portals[ii])) {
|
||||
portals.splice(ii, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
ArrayUtil.removeFirst(portals, portal);
|
||||
}
|
||||
|
||||
// documentation inherited from superinterface Cloneable
|
||||
|
||||
Reference in New Issue
Block a user