mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-25 10:05:49 +08:00
23 lines
589 B
C#
23 lines
589 B
C#
using System.Collections.Immutable;
|
|
|
|
namespace BetterGenshinImpact.CombatScript;
|
|
|
|
public static class SymbolEmitterExtensions
|
|
{
|
|
public static ISymbolEmitter Append(this ISymbolEmitter emitter, ISymbol symbol)
|
|
{
|
|
symbol.Emit(emitter);
|
|
return emitter;
|
|
}
|
|
|
|
public static ISymbolEmitter Append<TSymbol>(this ISymbolEmitter emitter, ImmutableArray<TSymbol> symbolList)
|
|
where TSymbol : ISymbol
|
|
{
|
|
foreach(ref readonly TSymbol symbol in symbolList.AsSpan())
|
|
{
|
|
symbol.Emit(emitter);
|
|
}
|
|
|
|
return emitter;
|
|
}
|
|
} |