File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 38
38
<None Include =" KSPCommon.props" Pack =" True" PackagePath =" build/KSPBuildTools.props" />
39
39
<None Include =" KSPCommon.targets" Pack =" True" PackagePath =" build/KSPBuildTools.targets" />
40
40
<None Include =" README.md" Pack =" True" PackagePath =" /" />
41
+ <None Include =" include/*.cs" Pack =" True" PackagePath =" /build/include/" />
41
42
</ItemGroup >
42
43
43
44
<ItemGroup >
45
+ <Compile Remove =" **/*.cs" />
44
46
<Compile Remove =" $(MSBuildThisFileDirectory)tests/**" />
45
47
<None Remove =" $(MSBuildThisFileDirectory)tests/**" />
46
48
<Compile Remove =" $(MSBuildThisFileDirectory).github/**" />
Original file line number Diff line number Diff line change 129
129
<Private >False</Private >
130
130
</Reference >
131
131
</ItemGroup >
132
+
133
+ <ItemGroup >
134
+ <Compile Include = " $(MSBuildThisFileDirectory)/include/*.cs" Condition =" exists('$(MSBuildThisFileDirectory)/include')" />
135
+ </ItemGroup >
132
136
</Project >
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Reflection ;
5
+ using System . Runtime . CompilerServices ;
6
+ using System . Text ;
7
+ using System . Threading . Tasks ;
8
+ using UnityEngine ;
9
+
10
+ namespace KSPBuildTools
11
+ {
12
+ internal static class Log
13
+ {
14
+ internal static string Prefix = "[" + Assembly . GetExecutingAssembly ( ) . GetName ( ) . Name + "] " ;
15
+
16
+ [ System . Diagnostics . Conditional ( "DEBUG" ) ]
17
+ internal static void Debug ( string message )
18
+ {
19
+ UnityEngine . Debug . Log ( Prefix + message ) ;
20
+ }
21
+
22
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
23
+ internal static void Message ( string message )
24
+ {
25
+ UnityEngine . Debug . Log ( Prefix + message ) ;
26
+ }
27
+
28
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
29
+ internal static void Warning ( string message )
30
+ {
31
+ UnityEngine . Debug . LogWarning ( Prefix + message ) ;
32
+ }
33
+
34
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
35
+ internal static void Error ( string message )
36
+ {
37
+ UnityEngine . Debug . LogError ( Prefix + message ) ;
38
+ }
39
+
40
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
41
+ internal static void Exception ( Exception ex )
42
+ {
43
+ UnityEngine . Debug . LogException ( ex ) ;
44
+ }
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments