Photon Plugins API Documentation v5.0RC1

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.IPluginFactory2 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

◆ Create()

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.