2 using System.Collections.Generic;
4 using SiliconStudio.Assets;
5 using SiliconStudio.Core.IO;
6 using SiliconStudio.Core.Serialization;
8 using YamlDotNet.Serialization;
10 namespace SiliconStudio.
Paradox.Assets
12 [DataContract(
"TestAsset")]
13 [AssetAlias(
"AssetTest")]
14 [AssetFileExtension(FileExtension)]
15 [AssetFactory(typeof(TestAssetFactory))]
16 [
AssetDescription(
"Test asset",
"A test assets, containing every supported types of property.")]
27 public const string FileExtension =
".pdxtest";
31 StringList =
new List<string>();
32 IntList =
new List<int>();
33 UPathList =
new List<UPath>();
34 StringUPathDictionary =
new Dictionary<string, UPath>();
35 UPathIntDictionary =
new Dictionary<UPath, int>();
36 StringEnumDictionary =
new Dictionary<string, TestEnum>();
40 public UPath UPathValue {
get; set; }
42 public float FloatValue {
get; set; }
44 public float? NullableFloatValue {
get; set; }
46 public bool BoolValue {
get; set; }
48 public bool? NullableBoolValue {
get; set; }
51 public int IntValue {
get; set; }
53 public UInt16 UShortValue {
get; set; }
56 public string StringValue {
get; set; }
61 public TestEnum NullableEnumValue {
get; set; }
64 public List<string> StringList {
get; set; }
66 public List<int> IntList {
get; set; }
68 public List<UPath> UPathList {
get; set; }
70 public Dictionary<string, UPath> StringUPathDictionary {
get; set; }
72 public Dictionary<UPath, int> UPathIntDictionary {
get; set; }
74 public Dictionary<string, TestEnum> StringEnumDictionary {
get; set; }
80 StringValue = Guid.NewGuid().ToString()
89 return TestAsset.New();
Interface to create default instance of an asset type.
Base class that describes a uniform path and provides method to manipulate them. Concrete class are U...
Contains user-friendly names and descriptions of an asset type.