Helper methods - TiberiumFusion/TTPlugins GitHub Wiki
This section outlines the static helpers in HHelpers that are available to all plugins. Using helpers can simplify your code and improve compliance with plugin security levels.
These sections only provide a brief overview of each helper and demonstrates how to practically use them.
For complete technical information on any helper, click on its name to visit the TTPlugins technical reference site.
The HHelpers class is split into several sections (using nested classes) to improve organization. They are as follows:
- Top-level helpers - These are mostly methods which use Reflection to find, access, and manipulate types & members.
-
AssetHandlinghelpers - These deal with XNA assets, such asTexture2D. -
StringDrawinghelpers - These assist in drawing text with ReLogic's subclassedDynamicSpriteFonts. -
InputReadinghelpers - These get information about the local player's input, such whatKeysare currently held. -
UIStatehelpers - These provide information about how the local player is currently interacting with the ingame gui.
Read the Security level compliance article to learn about plugin Security Levels and how to make your plugin compliant with them.