Added support for obtaining character components by class name and
component name, which is handy when you don't want to do compositing, but just want to load single "component" characters. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1057 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: NoSuchComponentException.java,v 1.2 2001/11/27 08:09:35 mdb Exp $
|
||||
// $Id: NoSuchComponentException.java,v 1.3 2002/02/19 22:09:50 mdb Exp $
|
||||
|
||||
package com.threerings.cast;
|
||||
|
||||
@@ -15,6 +15,14 @@ public class NoSuchComponentException extends Exception
|
||||
_componentId = componentId;
|
||||
}
|
||||
|
||||
public NoSuchComponentException (
|
||||
String componentClass, String componentName)
|
||||
{
|
||||
super("No such component [class=" + componentClass +
|
||||
", name=" + componentName + "]");
|
||||
_componentId = -1;
|
||||
}
|
||||
|
||||
public int getComponentId ()
|
||||
{
|
||||
return _componentId;
|
||||
|
||||
Reference in New Issue
Block a user