OpenRA.Mods.Common.Traits.EditorActorLayer.NextActorName C# (CSharp) Method

NextActorName() private method

private NextActorName ( ) : string
return string
        string NextActorName()
        {
            var id = previews.Count();
            var possibleName = "Actor" + id.ToString();

            while (previews.Any(p => p.ID == possibleName))
            {
                id++;
                possibleName = "Actor" + id.ToString();
            }

            return possibleName;
        }