Artemis.Profiles.ProfileModel.GetRenderLayers C# (CSharp) Метод

GetRenderLayers() публичный Метод

Generates a flat list containing all layers that must be rendered on the keyboard, the first mouse layer to be rendered and the first headset layer to be rendered
public GetRenderLayers ( IDataModel dataModel, bool keyboardOnly, bool ignoreConditions = false ) : List
dataModel IDataModel Instance of said game data model
keyboardOnly bool Whether or not to ignore anything but keyboards
ignoreConditions bool
Результат List
        public List<LayerModel> GetRenderLayers(IDataModel dataModel, bool keyboardOnly, bool ignoreConditions = false)
        {
            var layers = new List<LayerModel>();
            foreach (var layerModel in Layers.OrderByDescending(l => l.Order))
            {
                if (!layerModel.Enabled || (keyboardOnly && (layerModel.LayerType.DrawType != DrawType.Keyboard)))
                    continue;

                if (!ignoreConditions)
                    if (!layerModel.ConditionsMet(dataModel))
                        continue;

                layers.Add(layerModel);
                layers.AddRange(layerModel.GetRenderLayers(dataModel, keyboardOnly, ignoreConditions));
            }

            return layers;
        }