mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Added shrouds to rooms
This commit is contained in:
parent
07d49a0b23
commit
f460103239
12 changed files with 104 additions and 32 deletions
15
Scripts/Utils/QueueExtensions.cs
Normal file
15
Scripts/Utils/QueueExtensions.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Cirno.Scripts.Utils;
|
||||
|
||||
public static class QueueExtensions
|
||||
{
|
||||
public static Queue<T> EnqueueRange<T>(this Queue<T> queue, IEnumerable<T> items)
|
||||
{
|
||||
foreach (var item in items)
|
||||
{
|
||||
queue.Enqueue(item);
|
||||
}
|
||||
return queue;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue