22 lines
612 B
C#
22 lines
612 B
C#
using System.Collections.Generic;
|
|
using Swarmops.Basic.Types;
|
|
using Swarmops.Basic.Types.Swarm;
|
|
|
|
namespace Swarmops.Logic.Swarm
|
|
{
|
|
public class VolunteerRoles : List<VolunteerRole>
|
|
{
|
|
public static VolunteerRoles FromArray (BasicVolunteerRole[] basicArray)
|
|
{
|
|
VolunteerRoles result = new VolunteerRoles();
|
|
|
|
result.Capacity = basicArray.Length*11/10;
|
|
foreach (BasicVolunteerRole basic in basicArray)
|
|
{
|
|
result.Add (VolunteerRole.FromBasic (basic));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
} |