Difference between revisions of "PlugIn Development:GameEx PlugIn Info"

From Spesoft/GameEx Wiki
Jump to navigation Jump to search
(Created page with "==<span style="font-size:125%; color:darkblue;">GameEx: PlugIn Info Overview</span>== You would set your PlugIn variables here, and they will be exposed to GameEx. You can set...")
 
Line 6: Line 6:
<span style="font-size:125%; color:#003300;"><b>VB.NET syntax:</b></span>
<span style="font-size:125%; color:#003300;"><b>VB.NET syntax:</b></span>
<pre style="font-family:'Lucida Console', Monaco, monospace; border-color:#003300; background-color:#E0EEE0; border-style:dashed;">
<pre style="font-family:'Lucida Console', Monaco, monospace; border-color:#003300; background-color:#E0EEE0; border-style:dashed;">
<StructLayout(LayoutKind.Sequential)> _
Public Structure PluginInfo
Public Structure PluginInfo
     Public Const Name As String = "My Cool Plugin"
     Public Const Name As String = "My Cool Plugin"
Line 18: Line 17:
<span style="font-size:125%; color:#003300;"><b>C# syntax:</b></span>
<span style="font-size:125%; color:#003300;"><b>C# syntax:</b></span>
<pre style="font-family:'Lucida Console', Monaco, monospace; border-color:#003300; background-color:#E0EEE0; border-style:dashed;">
<pre style="font-family:'Lucida Console', Monaco, monospace; border-color:#003300; background-color:#E0EEE0; border-style:dashed;">
[ StructLayout( LayoutKind.Sequential )]
public struct PluginInfo
public struct PluginInfo
{
{

Revision as of 22:21, 26 April 2014

GameEx: PlugIn Info Overview

You would set your PlugIn variables here, and they will be exposed to GameEx. You can set the version number of your plugin, author name, app name, and many other variables.
NOTE: Although you can change the PluginVersion to 1.40, you will lose a few variables. The 1.40 is only for legacy, and should not be used.

Code Examples

VB.NET syntax:

Public Structure PluginInfo
    Public Const Name As String = "My Cool Plugin"
    Public Const Version As String = "1.0.0"
    Public Const Author As String = "Adultery"
    Public Const Description As String = "Does some cool stuff to GameEx!"
    Public Const PluginType As Plugin_Type = Plugin_Type.Emulator
    Public Const PluginVersion As String = "1.41"
End Structure

C# syntax:

public struct PluginInfo
{
     public const string Name = "My Cool Plugin";
     public const string Version = "1.0.0";
     public const string Author = "Adultery";
     public const string Description = "Does some cool stuff to GameEx!";
     public const Plugin_Type PluginType = Plugin_Type.Emulator;
     public const string PluginVersion = "1.41";
}