(ded4a3e0a) v0.9.0.7
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Xna.Framework.Content.Pipeline;
|
||||
|
||||
using TInput = System.String;
|
||||
using TOutput = System.String;
|
||||
|
||||
namespace $safeprojectname$
|
||||
{
|
||||
/// <summary>
|
||||
/// This class will be instantiated by the XNA Framework Content Pipeline
|
||||
/// to import a file from disk into the specified type, TImport.
|
||||
///
|
||||
/// This should be part of a Content Pipeline Extension Library project.
|
||||
///
|
||||
/// TODO: change the ContentImporter attribute to specify the correct file
|
||||
/// extension, display name, and default processor for this importer.
|
||||
/// </summary>
|
||||
|
||||
[ContentImporter(".xyz", DisplayName = "XYZ Importer", DefaultProcessor = "ContentProcessor1")]
|
||||
public class ContentImporter1 : ContentImporter<TInput>
|
||||
{
|
||||
|
||||
public override TInput Import(string filename, ContentImporterContext context)
|
||||
{
|
||||
// TODO: process the input object, and return the modified data.
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework.Content.Pipeline;
|
||||
// TODO: replace these with the processor input and output types.
|
||||
using TInput = System.String;
|
||||
using TOutput = System.String;
|
||||
|
||||
namespace $safeprojectname$
|
||||
{
|
||||
/// <summary>
|
||||
/// This class will be instantiated by the XNA Framework Content Pipeline
|
||||
/// to apply custom processing to content data, converting an object of
|
||||
/// type TInput to TOutput. The input and output types may be the same if
|
||||
/// the processor wishes to alter data without changing its type.
|
||||
///
|
||||
/// This should be part of a Content Pipeline Extension Library project.
|
||||
///
|
||||
/// TODO: change the ContentProcessor attribute to specify the correct
|
||||
/// display name for this processor.
|
||||
/// </summary>
|
||||
[ContentProcessor(DisplayName = "$safeprojectname$.ContentProcessor1")]
|
||||
public class ContentProcessor1 : ContentProcessor<TInput, TOutput>
|
||||
{
|
||||
public override TOutput Process(TInput input, ContentProcessorContext context)
|
||||
{
|
||||
// TODO: process the input object, and return the modified data.
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{$guid1$}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>$safeprojectname$</RootNamespace>
|
||||
<AssemblyName>$safeprojectname$</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="MonoGame.Framework">
|
||||
<HintPath>$(MSBuildExtensionsPath)\MonoGame\v3.0\Tools\MonoGame.Framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MonoGame.Framework.Content.Pipeline">
|
||||
<HintPath>$(MSBuildExtensionsPath)\MonoGame\v3.0\Tools\MonoGame.Framework.Content.Pipeline.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ContentImporter1.cs" />
|
||||
<Compile Include="ContentProcessor1.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
|
||||
<TemplateData>
|
||||
<Name>MonoGame Content Pipeline Extension Project</Name>
|
||||
<Description>A MonoGame project for creating a custom content importer and processor</Description>
|
||||
<ProjectType>CSharp</ProjectType>
|
||||
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
|
||||
<ProjectSubType>
|
||||
</ProjectSubType>
|
||||
<SortOrder>43200</SortOrder>
|
||||
<CreateNewFolder>true</CreateNewFolder>
|
||||
<DefaultName>MonoGameContentPipelineExtension</DefaultName>
|
||||
<ProvideDefaultName>true</ProvideDefaultName>
|
||||
<LocationField>Enabled</LocationField>
|
||||
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
|
||||
<Icon>__TemplateIcon.png</Icon>
|
||||
<PreviewImage>__PreviewImage.png</PreviewImage>
|
||||
</TemplateData>
|
||||
<TemplateContent>
|
||||
<Project TargetFileName="MonoGameContentPipelineExtension.csproj" File="MonoGameContentPipelineExtension.csproj" ReplaceParameters="true">
|
||||
<ProjectItem ReplaceParameters="true" TargetFileName="ContentImporter1.cs">ContentImporter1.cs</ProjectItem>
|
||||
<ProjectItem ReplaceParameters="true" TargetFileName="ContentProcessor1.cs">ContentProcessor1.cs</ProjectItem>
|
||||
<Folder Name="Properties" TargetFolderName="Properties">
|
||||
<ProjectItem ReplaceParameters="true" TargetFileName="AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
|
||||
</Folder>
|
||||
</Project>
|
||||
</TemplateContent>
|
||||
</VSTemplate>
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("$projectname$")]
|
||||
[assembly: AssemblyProduct("$projectname$")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyCompany("$registeredorganization$")]
|
||||
[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("$guid2$")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user