(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
// MonoGame - Copyright (C) The MonoGame Team
|
||||
// This file is subject to the terms and conditions defined in
|
||||
// file 'LICENSE.txt', which is part of this source code package.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
using Microsoft.Xna.Framework.Content.Pipeline;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace MonoGame.Tools.Pipeline
|
||||
{
|
||||
public class PipelineProject : IProjectItem
|
||||
{
|
||||
[Browsable(false)]
|
||||
public string OriginalPath { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public string DestinationPath { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public List<ContentItem> ContentItems { get; private set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public bool LaunchDebugger { get; set; }
|
||||
|
||||
public string OutputDir { get; set; }
|
||||
|
||||
public string IntermediateDir { get; set; }
|
||||
|
||||
public List<string> References { get; set; }
|
||||
|
||||
public TargetPlatform Platform { get; set; }
|
||||
|
||||
public GraphicsProfile Profile { get; set; }
|
||||
|
||||
public string Config { get; set; }
|
||||
|
||||
public bool Compress { get; set; }
|
||||
|
||||
#region IPipelineItem
|
||||
|
||||
[Category("Common")]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(OriginalPath))
|
||||
return "";
|
||||
|
||||
return System.IO.Path.GetFileNameWithoutExtension(OriginalPath);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("Common")]
|
||||
public string Location
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(OriginalPath))
|
||||
return "";
|
||||
|
||||
var idx = OriginalPath.LastIndexOfAny(new char[] {Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar}, OriginalPath.Length - 1);
|
||||
return OriginalPath.Remove(idx);
|
||||
}
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public bool Exists { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public bool ExpandToThis { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public bool SelectThis { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
public PipelineProject()
|
||||
{
|
||||
ContentItems = new List<ContentItem>();
|
||||
References = new List<string>();
|
||||
OutputDir = "bin";
|
||||
IntermediateDir = "obj";
|
||||
Exists = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user