Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetCompiledArgs.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 
5 namespace SiliconStudio.Assets.Compiler
6 {
7  /// <summary>
8  /// The class represents the argument of the <see cref="ItemListCompiler.AssetCompiled"/> event raised by the <see cref="ItemListCompiler"/> class.
9  /// </summary>
11  {
12  /// <summary>
13  /// Constructs an <see cref="AssetCompiledArgs"/> instance.
14  /// </summary>
15  /// <param name="asset">The asset that has been compiled. Cannot be null.</param>
16  /// <param name="result">The result of the asset compilation. Cannot be null.</param>
18  {
19  if (asset == null) throw new ArgumentNullException("asset");
20  if (result == null) throw new ArgumentNullException("result");
21  Asset = asset;
22  Result = result;
23  }
24 
25  /// <summary>
26  /// The asset item that has just been compiled.
27  /// </summary>
28  public AssetItem Asset { get; set; }
29 
30  /// <summary>
31  /// The result of the asset compilation.
32  /// </summary>
33  public AssetCompilerResult Result { get; set; }
34  }
35 }
Result of a compilation of assets when using IAssetCompiler.Compile
Base class for Asset.
Definition: Asset.cs:14
An asset item part of a Package accessible through SiliconStudio.Assets.Package.Assets.
Definition: AssetItem.cs:17
AssetCompiledArgs(AssetItem asset, AssetCompilerResult result)
Constructs an AssetCompiledArgs instance.
The class represents the argument of the ItemListCompiler.AssetCompiled event raised by the ItemListC...