Exemplo n.º 1
0
        private SOBSScene _translateScene(OBSScene input, int index = -1)
        {
            SOBSScene output = new SOBSScene();

            output.Index = index == -1 ? Scenes.Count() : index;
            output.Id    = _uidFromString(input.Name);
            output.Name  = input.Name;
            output.Items = new List <SOBSSceneItem>();
            if (input.Items != null && input.Items.Count > 0)
            {
                for (int i = 0; i < input.Items.Count; i++)
                {
                    SOBSSceneItem item = _translateSceneItem(input.Items[i], i);
                    output.Items.Add(item);
                }
            }
            return(output);
        }