Post by Eagle on Jun 13, 2008 10:58:13 GMT
Its possible to add your own class library (.NET assembly) to FLAC which can recieve server notifications and is able to send its own events. Which notifications and events are available can be found in the documentation found in this section. These help pages are updated automatically when new features become available.
I've created an example project to demonstrate how you can receive notifications and send your own events. Binaries required to build your own assembly are included in this project, latest versions can be downloaded from the binaries thread.
PlugIn example project
The way this project is setup will allow you to use the resulting assembly not only in the current version of FLAC, but all builds after that. No need to rebuild your own plugins with each release, which will make distribution to others interrested in the plugin functionality a viable option.
The build assembly can be loaded in FLAC by adding a new file to the My Docs\FLAntiCheat folder with the name: DynamicAssemblies.xml
Multiple plugins can be added, simply add another plugin tag to plugins. The content of this file for including the example class library is as follows:
<?xml version="1.0" encoding="utf-8"?>
<dynamic_assemblies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<plugins>
<plugin assembly="C:\FlacPlugins\FlacPlugIn.Example.dll" listener="FlacPlugIn.Example.NotificationHandler" />
</plugins>
</dynamic_assemblies>
Note!
FLAC loads the plugins on startup, if you make changes to the config file or plugin itself... make sure you restart FLAC to use/test these changes.
I've created an example project to demonstrate how you can receive notifications and send your own events. Binaries required to build your own assembly are included in this project, latest versions can be downloaded from the binaries thread.
PlugIn example project
The way this project is setup will allow you to use the resulting assembly not only in the current version of FLAC, but all builds after that. No need to rebuild your own plugins with each release, which will make distribution to others interrested in the plugin functionality a viable option.
The build assembly can be loaded in FLAC by adding a new file to the My Docs\FLAntiCheat folder with the name: DynamicAssemblies.xml
Multiple plugins can be added, simply add another plugin tag to plugins. The content of this file for including the example class library is as follows:
<?xml version="1.0" encoding="utf-8"?>
<dynamic_assemblies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<plugins>
<plugin assembly="C:\FlacPlugins\FlacPlugIn.Example.dll" listener="FlacPlugIn.Example.NotificationHandler" />
</plugins>
</dynamic_assemblies>
Note!
FLAC loads the plugins on startup, if you make changes to the config file or plugin itself... make sure you restart FLAC to use/test these changes.