public MovableObjectCollection GetMovableObjectCollection( string typeName )
{
// lock collection mutex
lock ( this.movableObjectCollectionMap )
{
if ( this.movableObjectCollectionMap.ContainsKey( typeName ) )
{
return this.movableObjectCollectionMap[ typeName ];
}
else
{
MovableObjectCollection newCol = new MovableObjectCollection();
this.movableObjectCollectionMap.Add( typeName, newCol );
return newCol;
}
}
}