C# Class DarkRift.Server.PluginFactory

Factory for creating plugins of various types.
显示文件 Open project: DarkRiftNetworking/DarkRift Class Usage Examples

Private Methods

Method Description
AddDirectory ( string directory, bool create, DependencyResolutionStrategy dependencyResolutionStrategy ) : void

Adds a directory of plugin files to the index.

AddFile ( string file, DependencyResolutionStrategy dependencyResolutionStrategy, string searchedDirectory ) : void

Adds all plugin types in the file to the index.

AddFiles ( IEnumerable files, DependencyResolutionStrategy dependencyResolutionStrategy, string searchedDirectory ) : void

Adds the given plugin files into the index.

AddFromSettings ( DarkRift.Server.ServerSpawnData.PluginSearchSettings settings ) : void

Adds plugins based on the plugins settings supplied.

AddType ( Type plugin ) : void

Adds a type to the lookup.

AddTypes ( IEnumerable pluginTypes ) : void

Adds plugins into the server from the given types.

Create ( Type type, DarkRift.Server.PluginBaseLoadData loadData, DarkRift.Server.PluginLoadData backupLoadData = null ) : T

Creates a type as a specified plugin.

Create ( string type, DarkRift.Server.PluginBaseLoadData loadData, DarkRift.Server.PluginLoadData backupLoadData = null ) : T

Creates a named type as a specified plugin.

GetAllSubtypes ( Type type ) : Type[]

Returns a list of plugins found that are subtypes of that given.

PluginFactory ( DarkRift.Server.Logger logger ) : System

Creates a new PluginFactory.

SearchForFile ( string rootDirectory, string fileName ) : string