public override bool Equals(object obj) { EditorSceneSettings other = obj as EditorSceneSettings; if (other == null) { return(false); } if (!_showDescAtStartup.Equals(other._showDescAtStartup)) { return(false); } if (!string.Equals(_vLuxSettingsFile, other._vLuxSettingsFile)) { return(false); } if (!_bUseDefaultvLuxSettingsFile.Equals(other._bUseDefaultvLuxSettingsFile)) { return(false); } if (!_shapeOrigin.Equals(other._shapeOrigin)) { return(false); } if (!_cameraPosition.Equals(other._cameraPosition)) { return(false); } if (!_cameraAngles.Equals(other._cameraAngles)) { return(false); } if (!_gridSettings.Equals(other._gridSettings)) { return(false); } if (!_screenshotSettings.Equals(other._screenshotSettings)) { return(false); } return(true); }
/// <summary> /// Constructor /// </summary> /// <param name="_Project">Owner project</param> /// <param name="relFilename">Project relative filename of the scene to initialize the settings.ExportPath with. Can be null.</param> public EditorScene(IProject _Project, string relFilename) : base(_Project) { this.FileName = relFilename; _sceneSettings = new EditorSceneSettings(this); }
/// <summary> /// The purpose of scene serialization is only to support action recording /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected EditorScene(SerializationInfo info, StreamingContext context) : base(info, context) { _sceneSettings = (EditorSceneSettings)info.GetValue("_sceneSettings", typeof(EditorSceneSettings)); }