예제 #1
0
		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();
		}
예제 #2
0
        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();
        }
예제 #3
0
		public SpriteEditorScene()
		{
			ssa = new SpriteSaveArray();
		}
예제 #4
0
 public SpriteEditorScene()
 {
     ssa = new SpriteSaveArray();
 }