LyokoAPI
LyokoAPI on Github
1.0.0
1.0.0
  • Initial page
  • docs
    • LyokoAPI
      • APISuperscan
      • VirtualStructures
        • Interfaces
          • ISector
          • ITower
          • IVirtualWorld
        • APITower
        • APIVirtualWorld
        • APISector
        • APIActivator
      • Events
        • TowerHijack Event
        • Xana Defeat Event
        • Events
        • Tower Activation Event
        • Tower Deactivation Event
        • Xana Awaken Event
    • LyokoPlugin
      • introduction
      • Verified Plugins
    • Tutorials
      • Your First Plugin
      • Examples
    • Welcome to the LyokoAPI Docs
    • PluginLoader
      • Introduction
      • Creating the loader
Powered by GitBook
On this page
  • How the loading works
  • LoggerPlugin
  • Loading issues
  • Methods
  • DisableAll()
  • EnableAll()
  • Properties

Was this helpful?

  1. docs
  2. PluginLoader

Creating the loader

PreviousIntroduction

Last updated 5 years ago

Was this helpful?

Note: this is intended for application developers. To use the LyokoPluginLoader, you need to add the LyokoPluginLoader.dll and LyokoAPI.dll to your project.

You can create the loader with:

PluginLoader = new PluginLoader(string path);

Where the path is the folder where you expect users to place Plugins.

How the loading works

The plugin .dll's placed in the plugin folder will be looped over, and if they extend , they will be loaded and enabled.

LoggerPlugin

If a plugin is called is "LoggerPlugin", it'll be loaded before all others.

Loading issues

If there's an issue loading or enabling the plugins, it'll be logged (assuming someone is listening)

Methods

DisableAll()

Calling this method will disable all plugins. note: there's no guarantee that a plugin will actually be disabled.

EnableAll()

Calling this method will enable all plugins. note: there's no guarantee that a plugin will actually be enabled.

Properties

Plugins - A List of Plugins that are known. Note: these can be both enabled and disabled.

LyokoPlugin