Skip to content

Commit

Permalink
Insert newlines at EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
tryuan99 committed Oct 8, 2024
1 parent afef7c2 commit 05380f7
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 29 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
BasedOnStyle: Google
InsertNewlineAtEOF: true
---
Language: CSharp
ColumnLimit: 100
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Assignment/RoundRobinAssignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public class RoundRobinAssignment : IAssignment {

return assignments;
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Assignment/ThreatAssignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ public ThreatInfo(ThreatData threatData, float threatLevel) {
ThreatLevel = threatLevel;
}
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Config/ConfigLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ private static void PrintSubmunitionDynamicAgentConfig(
PrintDynamicConfig(agentConfig.dynamic_config);
PrintPlottingConfig(agentConfig.plotting_config);
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Config/SimulationConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ public enum LineStyle { DOTTED, SOLID }
[JsonConverter(typeof(StringEnumConverter))]
public enum Marker { TRIANGLE_UP, TRIANGLE_DOWN, SQUARE }
[JsonConverter(typeof(StringEnumConverter))]
public enum SensorType { IDEAL }
public enum SensorType { IDEAL }
2 changes: 1 addition & 1 deletion Assets/Scripts/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public static double CalculateAirDensityAtAltitude(double altitude) {
public static double CalculateGravityAtAltitude(double altitude) {
return kGravity * Math.Pow(kEarthMeanRadius / (kEarthMeanRadius + altitude), 2);
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Editor/GenerateCone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ Vector3 CalculateCenter(List<Vector3> vertices) {
return sum / vertices.Count;
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion Assets/Scripts/IADS/IADS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ private void RegisterSimulationEnded() {
_threatDataMap.Clear();
_assignmentQueue.Clear();
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/IADS/ThreatData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public ThreatData(Threat threat, string threatID) {
ThreatID = threatID;
_assignedInterceptors = new List<Interceptor>(); // Initialize the list
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Monitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@ public void RegisterInterceptEvent(Interceptor interceptor, Threat threat, bool
private void OnDestroy() {
CloseLogFiles();
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Sensors/Sensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ public struct VelocityOutput {
public float range;
public float azimuth;
public float elevation;
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Threats/Threat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ protected override void Start() {
protected override void FixedUpdate() {
base.FixedUpdate();
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/UI/RectTransformExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ public static void SetTop(this RectTransform rt, float top) {
public static void SetBottom(this RectTransform rt, float bottom) {
rt.offsetMin = new Vector2(rt.offsetMin.x, bottom);
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/UI/UIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ void Update() {
}
}

public enum UIMode { NONE, BUILD, MINE }
public enum UIMode { NONE, BUILD, MINE }
2 changes: 1 addition & 1 deletion Assets/Scripts/UI/Windows/UIWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ private void CreateCloseButton() {
textbox.alignment = TextAlignmentOptions.Center;
textbox.verticalAlignment = VerticalAlignmentOptions.Middle;
}
}
}
2 changes: 1 addition & 1 deletion Assets/Scripts/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ public static Vector3 GenerateRandomNoise(Vector3 standardDeviation) {
Random.Range(-standardDeviation.y, standardDeviation.y),
Random.Range(-standardDeviation.z, standardDeviation.z));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"hitRadius": 1,
"killProbability": 0.9
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"hitRadius": 1,
"killProbability": 0.9
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"MIL": 50,
"MAX": 75
}
}
}
2 changes: 1 addition & 1 deletion Assets/StreamingAssets/Configs/Models/Threats/ucav.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"MIL": 100,
"MAX": 120
}
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/AgentTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ protected void SetVelocity(Agent agent, Vector3 velocity) {
rb.linearVelocity = velocity;
}
}
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/EditMode/SanityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public IEnumerator SanityTestWithEnumeratorPasses() {
yield return null;
Assert.Pass("This test passes after skipping a frame.");
}
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/EditMode/ThreatAssignmentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ public void Assign_Should_Handle_More_Interceptors_Than_Threats() {
Assert.AreEqual(threat1, orderedAssignments[1].Threat,
"Lower threat should be assigned second");
}
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/EditMode/ThreatTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ public void RotaryWingThreat_CalculateAccelerationToWaypoint_ComputesCorrectly()
}

// Additional tests...
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/PlayMode/ConfigTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public IEnumerator TestAllConfigFilesLoad() {
SimManager.Instance.LoadNewConfig(jsonFile);
}
}
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/PlayMode/SanityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public IEnumerator SanityCheck() {

yield return null;
}
}
}
2 changes: 1 addition & 1 deletion Assets/Tests/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ private MethodInfo GetMethodInfo(object obj, string methodName) {
}
return method;
}
}
}

0 comments on commit 05380f7

Please sign in to comment.