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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace DebugStuff | |
{ | |
[KSPAddon(KSPAddon.Startup.Instantly, true)] | |
class DebugDrawer : MonoBehaviour | |
{ |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using UnityEngine; |
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
void Update() | |
{ | |
int count = 1000; | |
string format = "|{0} {1}|"; | |
Profiler.BeginSample("ToString"); | |
for (int i = 0; i < count; i++) | |
{ | |
text1.text = i.ToString() + " " + i.ToString(); | |
} |
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
/home/roslyn/csc.exe /noconfig /target:library /checked- /nowarn:1701,1702,2008 /langversion:6 /nostdlib+ /platform:AnyCPU \ | |
/warn:4 /errorendlocation /preferreduilang:en-US /highentropyva- /optimize+ /debug- /filealign:512 \ | |
/reference:${KSP}/Assembly-CSharp.dll \ | |
/reference:${KSP}/Assembly-CSharp-firstpass.dll \ | |
/reference:${KSP}/KSPUtil.dll \ | |
/reference:${KSP}/mscorlib.dll \ | |
/reference:${KSP}/System.Core.dll \ | |
/reference:${KSP}/System.dll \ | |
/reference:${KSP}/UnityEngine.dll \ | |
/reference:${KSP}/UnityEngine.UI.dll \ |
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
TEST | |
{ | |
name = Test | |
} | |
@TEST | |
{ | |
copy = 5 | |
} |
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
do | |
{ | |
steps++; | |
activeStep = steps; | |
activeDt = dt; | |
repeatWithSmallerStep = false; | |
Vector3d error; | |
Vector3d zv; | |
// Perform the RK4 calculation | |
{ |
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
using UnityEngine; | |
using System.Collections.Generic; | |
public class ForeachTest : MonoBehaviour | |
{ | |
private string _testString = "this is a test"; | |
private List<string> _testList; | |
private const int _numIterations = 10000; | |
void Start() |
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
See the end of this message for details on invoking | |
just-in-time (JIT) debugging instead of this dialog box. | |
************** Exception Text ************** | |
The following inconsistencies were found: | |
HotRockets requires SmokeScreen but nothing provides it at CKAN.SanityChecker.EnforceConsistency(IEnumerable`1 modules, IEnumerable`1 dlls) | |
at CKAN.RegistryManager.Save(Boolean enforce_consistency) | |
at CKAN.KSP.ScanGameData() | |
at CKAN.Main.UpdateRepo() | |
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) |