Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SingleFileImportCommand.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.IO;
4 using SiliconStudio.Core.Serialization;
5 
6 namespace SiliconStudio.BuildEngine
7 {
8  public abstract class SingleFileImportCommand : IndexFileCommand
9  {
10 
11  /// <summary>
12  /// Gets or sets the source path of the raw asset.
13  /// </summary>
14  /// <value>The source path.</value>
15  public UFile SourcePath { get; set; }
16 
17  /// <summary>
18  /// Gets or sets the destination location in the storage.
19  /// </summary>
20  /// <value>The location.</value>
21  public UFile Location { get; set; }
22 
23  protected override void ComputeParameterHash(BinarySerializationWriter writer)
24  {
25  base.ComputeParameterHash(writer);
26 
27  writer.Write(SourcePath);
28  writer.Write(Location);
29  }
30  }
31 }
override void ComputeParameterHash(BinarySerializationWriter writer)
Implements SerializationStream as a binary writer.
A Command that reads and/or writes to the index file.
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13