Add ability to access components by name as well as by ID via the manager.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@995 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -86,6 +86,11 @@ public class CharacterManager
|
|||||||
return _crepo.getComponent(compId);
|
return _crepo.getComponent(compId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getComponentByName (cclass :String, cname :String) :CharacterComponent
|
||||||
|
{
|
||||||
|
return _crepo.getComponentByName(cclass, cname);
|
||||||
|
}
|
||||||
|
|
||||||
public function getActionFrames (descrip :CharacterDescriptor, action :String) :ActionFrames
|
public function getActionFrames (descrip :CharacterDescriptor, action :String) :ActionFrames
|
||||||
{
|
{
|
||||||
if (!isLoaded(descrip)) {
|
if (!isLoaded(descrip)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user