Files
narya/tests/src/java/com/threerings/cast/builder/TestApp.java
T
Michael Bayne 7ad2acca11 Bundles! Got all the tileset bundle stuff working and wrote some tests to
inrease my confidence in the use of the word "working".


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-21 02:42:16 +00:00

61 lines
1.4 KiB
Java

//
// $Id: TestApp.java,v 1.6 2001/11/21 02:42:16 mdb Exp $
package com.threerings.cast.tools.builder;
import java.io.IOException;
import javax.swing.JFrame;
import com.samskivert.util.Config;
import com.samskivert.swing.util.SwingUtil;
import com.threerings.resource.ResourceManager;
import com.threerings.cast.Log;
import com.threerings.cast.CharacterManager;
import com.threerings.cast.ComponentRepository;
import com.threerings.miso.scene.MisoCharacterSprite;
import com.threerings.miso.util.MisoUtil;
public class TestApp
{
public TestApp (String[] args)
{
_frame = new TestFrame();
_frame.setSize(800, 600);
SwingUtil.centerWindow(_frame);
// create the handles on our various services
_config = MisoUtil.createConfig();
ResourceManager rsrcmgr = new ResourceManager(null, "rsrc");
// TBD: sort out component repository
ComponentRepository crepo = null;
CharacterManager charmgr = new CharacterManager(crepo);
charmgr.setCharacterClass(MisoCharacterSprite.class);
// initialize the frame
((TestFrame)_frame).init(charmgr);
}
public void run ()
{
_frame.pack();
_frame.show();
}
public static void main (String[] args)
{
TestApp app = new TestApp(args);
app.run();
}
/** The test frame. */
protected JFrame _frame;
/** The config object. */
protected Config _config;
}