Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetSerializableLogMessage.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 using SiliconStudio.Assets.Diagnostics;
6 using SiliconStudio.Core;
7 using SiliconStudio.Core.Diagnostics;
8 using SiliconStudio.Core.IO;
9 
10 namespace SiliconStudio.Assets.CompilerApp
11 {
12  [DataContract]
14  {
16  {
17 
18  }
19 
21  : base(logMessage)
22  {
23  if (logMessage.AssetReference != null)
24  {
25  AssetId = logMessage.AssetReference.Id;
26  AssetUrl = logMessage.AssetReference.Location;
27  }
28  }
29 
30  public AssetSerializableLogMessage(Guid assetId, UFile assetUrl, LogMessageType type, string text, ExceptionInfo exceptionInfo = null)
31  : base("", type, text, exceptionInfo)
32  {
33  AssetId = assetId;
34  AssetUrl = assetUrl;
35  }
36 
37  public Guid AssetId { get; set; }
38 
39  public UFile AssetUrl { get; set; }
40  }
41 }
A class that represents a copy of a LogMessage that can be serialized.
LogMessageType
Type of a LogMessage.
IContentReference AssetReference
Gets or sets the asset this message applies to (optional).
AssetSerializableLogMessage(Guid assetId, UFile assetUrl, LogMessageType type, string text, ExceptionInfo exceptionInfo=null)
Provides a specialized LogMessage to give specific information about an asset.
This class is used to store some properties of an exception. It is serializable.
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13