Paradox Game Engine
v1.0.0 beta06
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Macros
Pages
UPathAttribute.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
6
{
7
8
/// <summary>
9
/// Enum UPathRelativeTo
10
/// </summary>
11
public
enum
UPathRelativeTo
12
{
13
/// <summary>
14
/// The UPath is stored as-is without post-processing
15
/// </summary>
16
None,
17
18
/// <summary>
19
/// The UPath is stored in relative mode when storing on the disk and relative to the current package.
20
/// </summary>
21
Package
,
22
}
23
24
/// <summary>
25
/// Specifies how to normalize a UPath stored in a class after loading/saving an asset.
26
/// </summary>
27
public
class
UPathAttribute
: Attribute
28
{
29
private
readonly
UPathRelativeTo
relativeTo;
30
31
/// <summary>
32
/// Initializes a new instance of the <see cref="UPathAttribute"/> class.
33
/// </summary>
34
/// <param name="relativeTo">The relative to.</param>
35
public
UPathAttribute
(
UPathRelativeTo
relativeTo)
36
{
37
this.relativeTo = relativeTo;
38
}
39
40
/// <summary>
41
/// Gets how to normalize the path relative to.
42
/// </summary>
43
/// <value>The relative to.</value>
44
public
UPathRelativeTo
RelativeTo
45
{
46
get
47
{
48
return
relativeTo;
49
}
50
}
51
}
52
}
SiliconStudio.Assets.UPathAttribute
Specifies how to normalize a UPath stored in a class after loading/saving an asset.
Definition:
UPathAttribute.cs:27
SiliconStudio.Shaders.Parser.System
A system file.
SiliconStudio.Assets.UPathRelativeTo
UPathRelativeTo
Enum UPathRelativeTo
Definition:
UPathAttribute.cs:11
SiliconStudio.Assets.Package
A package managing assets.
Definition:
Package.cs:28
SiliconStudio.Assets.UPathAttribute.UPathAttribute
UPathAttribute(UPathRelativeTo relativeTo)
Initializes a new instance of the UPathAttribute class.
Definition:
UPathAttribute.cs:35
sources
assets
SiliconStudio.Assets
UPathAttribute.cs
Generated on Sat Dec 20 2014 21:50:56 for Paradox Game Engine by
1.8.7