OpenRA.ModContent.LoadSources C# (CSharp) Method

LoadSources() static private method

static private LoadSources ( MiniYaml yaml ) : object
yaml MiniYaml
return object
        static object LoadSources(MiniYaml yaml)
        {
            var sourceNode = yaml.Nodes.FirstOrDefault(n => n.Key == "Sources");
            return sourceNode != null ? sourceNode.Value.Nodes.Select(n => n.Key).ToArray() : new string[0];
        }