-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add definitions for KSPAssembly and KSPAssemblyDependency
- Loading branch information
1 parent
724b865
commit cb7ad5d
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using System; | ||
|
||
[AttributeUsage(AttributeTargets.Assembly)] | ||
public class KSPAssembly : Attribute | ||
{ | ||
public string name; | ||
|
||
public int versionMajor; | ||
|
||
public int versionMinor; | ||
|
||
public int versionRevision; | ||
|
||
public KSPAssembly(string name, int versionMajor, int versionMinor) | ||
{ | ||
this.name = name; | ||
this.versionMajor = versionMajor; | ||
this.versionMinor = versionMinor; | ||
versionRevision = 0; | ||
} | ||
|
||
public KSPAssembly(string name, int versionMajor, int versionMinor, int versionRevision) | ||
{ | ||
this.name = name; | ||
this.versionMajor = versionMajor; | ||
this.versionMinor = versionMinor; | ||
this.versionRevision = versionRevision; | ||
} | ||
} | ||
|
||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] | ||
public class KSPAssemblyDependency : Attribute | ||
{ | ||
public string name; | ||
|
||
public int versionMajor; | ||
|
||
public int versionMinor; | ||
|
||
public int versionRevision; | ||
|
||
public KSPAssemblyDependency(string name, int versionMajor, int versionMinor) | ||
{ | ||
this.name = name; | ||
this.versionMajor = versionMajor; | ||
this.versionMinor = versionMinor; | ||
versionRevision = 0; | ||
} | ||
|
||
public KSPAssemblyDependency(string name, int versionMajor, int versionMinor, int versionRevision) | ||
{ | ||
this.name = name; | ||
this.versionMajor = versionMajor; | ||
this.versionMinor = versionMinor; | ||
this.versionRevision = versionRevision; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.