This attribute and the KSPAssembly attribute can be used to ensure that plugin assemblies are loaded in the right order. More...
Public Member Functions | |
| KSPAssemblyDependency (string name, int versionMajor, int versionMinor) | |
Public Attributes | |
| string | name |
| int | versionMajor |
| int | versionMinor |
This attribute and the KSPAssembly attribute can be used to ensure that plugin assemblies are loaded in the right order.
Suppose Mod A depends on mod B, which is currently at version 2.6. Mod B should add the following line to the end of Properties/AssemblyInfo.cs:
where "ModBName" is the name of Mod B (Mod B's .dll?). Replace 2 and 6 with the major and minor version of Mod B.
Then Mod A should add the following line to the end of Properties/AssemblyInfo.cs:
This will tell KSP that Mod A depends on version 2.6 of Mod B, and ensure the the assemblies get loaded in the proper order.
| KSPAssemblyDependency.KSPAssemblyDependency | ( | string | name, |
| int | versionMajor, | ||
| int | versionMinor | ||
| ) |
| string KSPAssemblyDependency.name |
| int KSPAssemblyDependency.versionMajor |
| int KSPAssemblyDependency.versionMinor |
1.8.7