Example #1
0
        public static SceneSave FromLayer(Layer layer)
        {
            FlatRedBall.Scene scene = new FlatRedBall.Scene();
            scene.Sprites.AddRange(layer.Sprites);
            scene.Texts.AddRange(layer.Texts);
            scene.Sprites.AddRange(layer.ZBufferedSprites);

            SceneSave toReturn = new SceneSave();

            SpriteEditorScene.SetFromScene(scene, toReturn);

            return(toReturn);
        }