Axiom.Core.ResourceManager.this C# (CSharp) Method

this() public method

Gets a resource with the given handle.
public this ( System.UInt64 handle ) : Resource
handle System.UInt64 Handle of the resource to retrieve.
return Resource
		public Resource this[ ResourceHandle handle ]
		{
			get
			{
				Debug.Assert( _resourceHandleMap != null, "A resource was being retrieved, but the list of Resources is null.", "" );

				Resource resource;

				// try to obtain the resource
				if ( _resourceHandleMap.TryGetValue( handle, out resource ) )
				{
					resource.Touch();
				}

				// return the resource or null
				return resource;
			}
		}

Same methods

ResourceManager::this ( string name ) : Resource