Photon Plugins API Documentation
Public Member Functions | List of all members
Photon.Hive.Plugin.IPluginFactory Interface Reference

Base interface of plugin factory pattern. More...

Inheritance diagram for Photon.Hive.Plugin.IPluginFactory:
Photon.Hive.Plugin.PluginFactoryBase

Public Member Functions

IGamePlugin Create (IPluginHost gameHost, string pluginName, Dictionary< string, string > config, out string errorMsg)
 Create and initialize a new plugin instance. More...
 

Detailed Description

Base interface of plugin factory pattern.

Member Function Documentation

IGamePlugin Photon.Hive.Plugin.IPluginFactory.Create ( IPluginHost  gameHost,
string  pluginName,
Dictionary< string, string >  config,
out string  errorMsg 
)

Create and initialize a new plugin instance.

Parameters
gameHostThe game to host the plugin instance.
pluginNameThe plugin name as requested by client in Op CreateGame.
configThe plugin assembly key/value configuration entries.
errorMsgAn eventual error message to return in case something goes wrong.
Returns
The plugin instance or null.

Implemented in Photon.Hive.Plugin.PluginFactoryBase.