public void LoadScene(string fileName) { FileStream stream = File.Open(fileName, System.IO.FileMode.Open); BinaryFormatter binFormatter=new BinaryFormatter(); SpriteEditorScene tempScene =(SpriteEditorScene)binFormatter.Deserialize(stream); this.camera = tempScene.camera; this.snappingOn = tempScene.snappingOn; this.pixelSize = tempScene.pixelSize; spriteArrays = tempScene.spriteArrays; ssa = tempScene.ssa; stream.Close(); }
public void LoadScene(string fileName) { FileStream stream = File.Open(fileName, System.IO.FileMode.Open); BinaryFormatter binFormatter = new BinaryFormatter(); SpriteEditorScene tempScene = (SpriteEditorScene)binFormatter.Deserialize(stream); this.camera = tempScene.camera; this.snappingOn = tempScene.snappingOn; this.pixelSize = tempScene.pixelSize; spriteArrays = tempScene.spriteArrays; ssa = tempScene.ssa; stream.Close(); }
public SpriteEditorScene() { ssa = new SpriteSaveArray(); }