Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Properties | List of all members
Chunks.Plugins.ResourceCollection< TResource > Class Template Reference

Contains a dictionary of resources of a specific type loaded from a plugin. More...

Inheritance diagram for Chunks.Plugins.ResourceCollection< TResource >:
Chunks.Plugins.IResourceCollection

Public Member Functions

bool Contains (ResourceName name)
 Tests to see if the collection contains a named resource. More...
 
IEnumerator< TResource > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 

Properties

TResource this[ResourceName name] [get]
 Attempts to retrieve a named resource, returning null if it isn't found. More...
 
- Properties inherited from Chunks.Plugins.IResourceCollection
PluginResource this[ResourceName name] [get]
 

Detailed Description

Contains a dictionary of resources of a specific type loaded from a plugin.

Template Parameters
TResourceType of resource contained within the collection.
Type Constraints
TResource :PluginResource 
TResource :new() 

Member Function Documentation

bool Chunks.Plugins.ResourceCollection< TResource >.Contains ( ResourceName  name)

Tests to see if the collection contains a named resource.

Parameters
nameName of the resource to retrieve.

Implements Chunks.Plugins.IResourceCollection.

IEnumerator<TResource> Chunks.Plugins.ResourceCollection< TResource >.GetEnumerator ( )

Returns an enumerator that iterates through the collection.

Returns
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

<filterpriority>1</filterpriority>

Property Documentation

TResource Chunks.Plugins.ResourceCollection< TResource >.this[ResourceName name]
get

Attempts to retrieve a named resource, returning null if it isn't found.

Parameters
nameName of the resource to retrieve.

The documentation for this class was generated from the following file: