Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MergeResult.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core.Diagnostics;
4 
5 namespace SiliconStudio.Assets.Diff
6 {
7  /// <summary>
8  /// Result of a merge. Contains <see cref="Asset"/> != null if there are no errors.
9  /// </summary>
10  public class MergeResult : LoggerResult
11  {
12  /// <summary>
13  /// Initializes a new instance of the <see cref="MergeResult"/> class.
14  /// </summary>
15  public MergeResult() : base("Merge")
16  {
17  }
18 
19  /// <summary>
20  /// Initializes a new instance of the <see cref="MergeResult"/> class.
21  /// </summary>
22  /// <param name="asset">The asset.</param>
23  public MergeResult(Asset asset) : this()
24  {
25  Asset = asset;
26  }
27 
28  /// <summary>
29  /// Gets or sets the merged asset. This is <c>null</c> when this instance <see cref="LoggerResult.HasErrors"/> to true.
30  /// </summary>
31  /// <value>The asset.</value>
32  public Asset Asset { get; set; }
33  }
34 }
Result of a merge. Contains Asset != null if there are no errors.
Definition: MergeResult.cs:10
MergeResult()
Initializes a new instance of the MergeResult class.
Definition: MergeResult.cs:15
Base class for Asset.
Definition: Asset.cs:14
A logger that stores messages locally useful for internal log scenarios.
Definition: LoggerResult.cs:14
MergeResult(Asset asset)
Initializes a new instance of the MergeResult class.
Definition: MergeResult.cs:23