Axiom.Core.SceneManager.GetMovableObject C# (CSharp) Method

GetMovableObject() public method

public GetMovableObject ( string name, string typeName ) : Axiom.Core.MovableObject
name string
typeName string
return Axiom.Core.MovableObject
		public MovableObject GetMovableObject( string name, string typeName )
		{
			// Nasty hack to make generalized Camera functions work without breaking add-on SMs
			if ( typeName == "Camera" )
			{
				return this.cameraList[ name ];
			}

			if ( !this.movableObjectCollectionMap.ContainsKey( typeName ) )
			{
				throw new AxiomException( "The factory for the type " + typeName + " does not exists in the collection." );
			}

			if ( !this.movableObjectCollectionMap[ typeName ].ContainsKey( name ) )
			{
				throw new AxiomException( "The object with the name " + name + " does not exists in the collection." );
			}

			return this.movableObjectCollectionMap[ typeName ][ name ];
		}
SceneManager