Skip to content

Commit bbe3d38

Browse files
committed
- Fixe BitSet class: Fixing some methods with wrong implementation and implemented the rotation operations.
- Some minor refatoring aroung the repository.
1 parent 7c04fe3 commit bbe3d38

3 files changed

Lines changed: 201 additions & 142 deletions

File tree

XSharp/Engine/Sound/PrecachedSound.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public PrecachedSound(string path, IWaveStream stream = null, params string[] na
4141
RelativePath = path;
4242
Stream = stream;
4343

44-
this.names = names != null && names.Length > 0 ? new HashSet<string>(names) : [];
44+
this.names = names != null && names.Length > 0 ? [.. names] : [];
4545
}
4646

4747
internal bool AddName(string name)

XSharpShared/Math/Fixed/Geometry/GeometrySet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void Split(IGeometry a, IGeometry b, out GeometrySet part1, out Ge
5151
part3 = Diference(b, a);
5252
}
5353

54-
protected readonly List<(IGeometry part, bool negate)> parts = new(parts);
54+
protected readonly List<(IGeometry part, bool negate)> parts = [.. parts];
5555

5656
public GeometryType Type => type;
5757

0 commit comments

Comments
 (0)