Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ImportResult.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 System;
4 using System.Collections.Generic;
5 
6 using SiliconStudio.Core.Diagnostics;
7 
8 namespace SiliconStudio.Assets
9 {
10  /// <summary>
11  /// A logger that stores added and removed assets of an import operation.
12  /// </summary>
13  public class ImportResult : LoggerResult
14  {
15  /// <summary>
16  /// Initializes a new instance of the <see cref="ImportResult"/> class.
17  /// </summary>
18  public ImportResult()
19  {
20  RemovedAssets = new List<Guid>();
21  AddedAssets = new List<AssetItem>();
22  Module = "Import";
23  }
24 
25  /// <summary>
26  /// Gets the list of assets that have been removed from the package.
27  /// </summary>
28  public List<Guid> RemovedAssets { get; private set; }
29 
30  /// <summary>
31  /// Gets the list of assets that have been added to the package.
32  /// </summary>
33  public List<AssetItem> AddedAssets { get; private set; }
34 
35  public override void Clear()
36  {
37  base.Clear();
38  AddedAssets.Clear();
39  RemovedAssets.Clear();
40  }
41  }
42 }
ImportResult()
Initializes a new instance of the ImportResult class.
Definition: ImportResult.cs:18
A logger that stores messages locally useful for internal log scenarios.
Definition: LoggerResult.cs:14
A logger that stores added and removed assets of an import operation.
Definition: ImportResult.cs:13
override void Clear()
Clears all messages.
Definition: ImportResult.cs:35