Skip to content

Commit

Permalink
Added EnumerableExtensionMethods
Browse files Browse the repository at this point in the history
Marked Emitter as obsolete.
  • Loading branch information
vchelaru committed Mar 20, 2024
1 parent 92a13e8 commit e208167
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace FlatRedBall.ExtensionMethods
{
public static class EnumerableExtensionMethods
{
public static void AddRange<T>(this HashSet<T> hashSet, IEnumerable<T> enumerable)
{
foreach(var item in enumerable)
{
hashSet.Add(item);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Entities\IDamageArea.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Entities\IEntity.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Entities\ITiledTileMetadata.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods\EnumerableExtensionMethods.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods\FloatExtensionMethods.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods\PointExtensionMethods.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods\Vector2ExtensionMethods.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ public enum RangeType

#endregion

#region XML Docs
/// <summary>
/// An emitter is an invisible object which can create one or more Sprites at a specific
/// rate or on a method call.
/// </summary>
#endregion
[Obsolete("Emitters are no longer being maintained. This class is being kept around for old projects, but new FRB projects should create manual emitters or look for an alternative approach.")]
public class Emitter : PositionedObject, IEquatable<Emitter>, IReadOnlyScalable
{
#region Enums
Expand Down

0 comments on commit e208167

Please sign in to comment.