Konstantin Koch 8287c54432 Included the Visual Studio extension and made the necessary changes to make it run.
Replaced the old VS templates with ones that offer more flexiblity.
Started replacing the Content Project for the samples with our custom project type.
Inlcuded a basic not yet working AssimpImporter.
2015-04-08 14:50:03 +02:00

64 lines
1.4 KiB
C#

using ANX.Framework.NonXNA.Development;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace ANX.Framework.Content.Pipeline.Tasks.References
{
[Serializable]
public class ProjectReference : Reference
{
public Guid Guid
{
get;
set;
}
public string Include
{
get;
set;
}
public String AssemblyPath
{
get;
set;
}
public override void Write(System.Xml.XmlWriter writer)
{
if (!string.IsNullOrWhiteSpace(this.Include))
{
writer.WriteAttributeString("Include", this.Include);
}
if (this.Guid != Guid.Empty)
{
writer.WriteAttributeString("Guid", this.Guid.ToString("B"));
}
base.Write(writer);
writer.WriteString(this.AssemblyPath);
}
public override void Load(System.Xml.XmlReader reader)
{
string include = reader.GetAttribute("Include");
string guid = reader.GetAttribute("Guid");
base.Load(reader);
//Skip attributes
this.AssemblyPath = reader.ReadElementContentAsString();
this.Include = include;
if (guid != null)
this.Guid = new Guid(guid);
}
}
}