More work on object placement, removal, and rendering within scenes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@479 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
//
|
||||
// $Id: EditableMisoScene.java,v 1.3 2001/10/13 01:08:59 shaper Exp $
|
||||
// $Id: EditableMisoScene.java,v 1.4 2001/10/17 22:21:22 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
import com.threerings.media.tile.Tile;
|
||||
|
||||
import com.threerings.miso.tile.MisoTile;
|
||||
|
||||
/**
|
||||
@@ -30,6 +32,11 @@ public interface EditableMisoScene
|
||||
*/
|
||||
public void setDefaultTile (MisoTile tile);
|
||||
|
||||
/**
|
||||
* Updates the specified tile in the scene.
|
||||
*/
|
||||
public void setTile (int lnum, int x, int y, Tile tile);
|
||||
|
||||
/**
|
||||
* Set the default entrance portal for this scene.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: XMLSceneGroupParser.java,v 1.6 2001/10/15 23:53:43 shaper Exp $
|
||||
// $Id: XMLSceneGroupParser.java,v 1.7 2001/10/17 22:21:22 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene.xml;
|
||||
|
||||
@@ -40,7 +40,7 @@ public class XMLSceneGroupParser extends SimpleParser
|
||||
} else if (qName.equals("portal")) {
|
||||
// pull out the portal data
|
||||
String src = attributes.getValue("src");
|
||||
String destScene = attributes.getValue("destScene");
|
||||
String destScene = attributes.getValue("destscene");
|
||||
String dest = attributes.getValue("dest");
|
||||
|
||||
// construct a new portal info object
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: XMLSceneParser.java,v 1.20 2001/10/15 23:53:43 shaper Exp $
|
||||
// $Id: XMLSceneParser.java,v 1.21 2001/10/17 22:21:22 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene.xml;
|
||||
|
||||
@@ -258,7 +258,7 @@ public class XMLSceneParser extends SimpleParser
|
||||
_info = new SceneInfo();
|
||||
parseFile(fname);
|
||||
// place shadow tiles for any objects in the scene
|
||||
_info.scene.prepareAllObjectTiles();
|
||||
_info.scene.generateAllObjectShadows();
|
||||
// return the final scene object
|
||||
return _info.scene;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user