class PluginFrontEnd
package flixel.system.frontEnds
Accessed via FlxG.plugins
.
Variables
Methods
add<T>(Plugin:T):T
Adds a new plugin to the global plugin array.
Parameters:
Plugin | Any object that extends FlxPlugin. Useful for managers and other things. See flixel.plugin for some examples! |
---|
Returns:
The same FlxPlugin-based plugin you passed in.
get<T>(ClassType:Class<T>):T
Retrieves a plugin based on its class name from the global plugin array.
Parameters:
ClassType | The class name of the plugin you want to retrieve. See the FlxPath or FlxTimer constructors for example usage. |
---|
Returns:
The plugin object, or null if no matching plugin was found.
remove<T>(Plugin:T):T
Removes an instance of a plugin from the global plugin array.
Parameters:
Plugin | The plugin instance you want to remove. |
---|
Returns:
The same FlxPlugin-based plugin you passed in.
removeType(ClassType:Class<FlxBasic>):Bool
Removes all instances of a plugin from the global plugin array.
Parameters:
ClassType | The class name of the plugin type you want removed from the array. |
---|
Returns:
Whether or not at least one instance of this plugin type was removed.