Skip to content

Commit 48ab957

Browse files
committed
added SPDX
1 parent 8cd095a commit 48ab957

16 files changed

+91
-27
lines changed

src/Box2D.NET.Samples/Samples/Bodies/Kinematic.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using System;
26
using static Box2D.NET.B2Geometries;
37
using static Box2D.NET.B2Types;
48
using static Box2D.NET.B2MathFunction;
@@ -80,4 +84,4 @@ public override void Draw(Settings settings)
8084
b2Body_SetTargetTransform(m_bodyId, new B2Transform(point, rotation), m_timeStep);
8185
}
8286
}
83-
}
87+
}

src/Box2D.NET.Samples/Samples/Worlds/WorkbenchWorld.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using static Box2D.NET.B2Types;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using static Box2D.NET.B2Types;
26
using static Box2D.NET.B2Bodies;
37
using static Box2D.NET.B2Shapes;
48

@@ -43,4 +47,4 @@ public static B2ShapeId CreateCircle(B2WorldId worldId, B2Vec2 position, float r
4347
return shapeId;
4448
}
4549

46-
}
50+
}

test/Box2D.NET.Test/B2AABBTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using NUnit.Framework;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using NUnit.Framework;
26
using static Box2D.NET.B2AABBs;
37
using static Box2D.NET.B2MathFunction;
48

@@ -257,4 +261,4 @@ public void Test_b2AABB_RayCast()
257261
var result5 = b2AABB_RayCast(aabb5, startPoint5, endPoint5);
258262
Assert.That(result5.hit, Is.False, "Ray going out of AABB should not intersect.");
259263
}
260-
}
264+
}

test/Box2D.NET.Test/B2ArenaAllocatorTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Threading;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using System.Threading;
26
using System.Threading.Tasks;
37
using NUnit.Framework;
48
using static Box2D.NET.B2ArenaAllocators;
@@ -226,4 +230,4 @@ public void Test_GrowArena()
226230
}
227231

228232
}
229-
}
233+
}

test/Box2D.NET.Test/B2ArenaAllocatorTypedTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using NUnit.Framework;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using NUnit.Framework;
26
using static Box2D.NET.B2ArenaAllocators;
37

48
namespace Box2D.NET.Test;
@@ -65,4 +69,4 @@ public void Destroy_ReleasesResourcesAndResetsProperties()
6569
Assert.That(alloc.entries.count, Is.EqualTo(0));
6670
Assert.That(alloc.entries.capacity, Is.EqualTo(0));
6771
}
68-
}
72+
}

test/Box2D.NET.Test/B2ArrayTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using System;
26
using System.Runtime.InteropServices;
37
using NUnit.Framework;
48
using static Box2D.NET.B2Arrays;
@@ -456,4 +460,4 @@ public void Test_b2Array_Pop()
456460

457461
Assert.Throws<IndexOutOfRangeException>(() => b2Array_Pop(ref emptyArray));
458462
}
459-
}
463+
}

test/Box2D.NET.Test/B2AtomicTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using System;
26
using System.Threading;
37
using NUnit.Framework;
48
using static Box2D.NET.B2Atomics;
@@ -76,4 +80,4 @@ public void Test_b2Atomic_Int_FetchAdd_IsThreadSafe()
7680
Assert.That(b2AtomicLoadInt(ref atomic), Is.EqualTo(threadCount * addsPerThread));
7781
}
7882

79-
}
83+
}

test/Box2D.NET.Test/B2BoardPhasesTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
5+
using System;
26
using Box2D.NET.Test.Helpers;
37
using NUnit.Framework;
48
using static Box2D.NET.B2BoardPhases;
@@ -645,4 +649,4 @@ public void Test_B2BoardPhases_b2BroadPhase_GetShapeIndex()
645649
Assert.That(b2BroadPhase_GetShapeIndex(bp, proxyKey), Is.EqualTo(shapeIndex),
646650
"Should correctly extract shape index from proxy key");
647651
}
648-
}
652+
}

test/Box2D.NET.Test/B2FixedArrayTest.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
15
using NUnit.Framework;
26
using System;
37

@@ -132,4 +136,4 @@ public void Test_B2FixedArray_AsSpan()
132136
Assert.That(IsSame(i => array1024Int[i], array1024Int.AsSpan()), Is.True, "B2FixedArray1024 should store values correctly");
133137
}
134138

135-
}
139+
}

test/Box2D.NET.Test/B2IdsTest.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi([email protected])
3+
// SPDX-License-Identifier: MIT
4+
15
using NUnit.Framework;
26
using static Box2D.NET.B2Ids;
37

@@ -173,4 +177,4 @@ public void Test_B2Ids_Generation()
173177
var loadedJoint = b2LoadJointId(storedJoint);
174178
Assert.That(loadedJoint.generation, Is.EqualTo(testGeneration), "Joint ID generation number should be preserved");
175179
}
176-
}
180+
}

0 commit comments

Comments
 (0)