/// <summary>
 /// The from mono game platform.
 /// </summary>
 /// <param name="platform">
 /// The platform.
 /// </param>
 /// <returns>
 /// The <see cref="TargetPlatform"/>.
 /// </returns>
 /// <exception cref="NotSupportedException">
 /// </exception>
 public static TargetPlatform FromMonoGamePlatform(MonoGamePlatform platform)
 {
     switch (platform)
     {
         case MonoGamePlatform.Windows:
             return TargetPlatform.Windows;
         case MonoGamePlatform.Xbox360:
             return TargetPlatform.Xbox360;
         case MonoGamePlatform.WindowsPhone:
             return TargetPlatform.WindowsPhone;
         case MonoGamePlatform.iOS:
             return TargetPlatform.iOS;
         case MonoGamePlatform.Android:
             return TargetPlatform.Android;
         case MonoGamePlatform.DesktopGL:
             return TargetPlatform.Linux;
         case MonoGamePlatform.MacOSX:
             return TargetPlatform.MacOSX;
         case MonoGamePlatform.WindowsStoreApp:
             return TargetPlatform.WindowsStoreApp;
         case MonoGamePlatform.NativeClient:
             return TargetPlatform.NativeClient;
         case MonoGamePlatform.WindowsPhone8:
             return TargetPlatform.WindowsPhone8;
         case MonoGamePlatform.RaspberryPi:
             return TargetPlatform.RaspberryPi;
         default:
             throw new NotSupportedException();
     }
 }
 public override string GetRuntimeType(TargetPlatform targetPlatform)
 {
     return(typeof(FlatRedBall.Graphics.Model.Animation.SkinInfoCollection).AssemblyQualifiedName);
     //if (targetPlatform == TargetPlatform.Xbox360)
     //{
     //    return "FlatRedBall.Graphics.Model.Animation.SkinInfoCollection, FlatRedBall, "
     //        + "Version=" + ContentUtil.VERSION + ", Culture=neutral, PublicKeyToken=null";
     //}
     //else
     //{
     //    return "FlatRedBall.Graphics.Model.Animation.SkinInfoCollection, FlatRedBall, "
     //        + "Version=" + ContentUtil.VERSION + ", Culture=neutral, PublicKeyToken=null";
     //}
 }
示例#3
0
        /// <summary>
        /// The from mono game platform.
        /// </summary>
        /// <param name="platform">
        /// The platform.
        /// </param>
        /// <returns>
        /// The <see cref="TargetPlatform"/>.
        /// </returns>
        /// <exception cref="NotSupportedException">
        /// </exception>
        public static TargetPlatform FromMonoGamePlatform(MonoGamePlatform platform)
        {
            switch (platform)
            {
            case MonoGamePlatform.Windows:
                return(TargetPlatform.Windows);

            case MonoGamePlatform.Xbox360:
                return(TargetPlatform.Xbox360);

            case MonoGamePlatform.WindowsPhone:
                return(TargetPlatform.WindowsPhone);

            case MonoGamePlatform.iOS:
                return(TargetPlatform.iOS);

            case MonoGamePlatform.Android:
                return(TargetPlatform.Android);

            case MonoGamePlatform.Linux:
                return(TargetPlatform.Linux);

            case MonoGamePlatform.MacOSX:
                return(TargetPlatform.MacOSX);

            case MonoGamePlatform.WindowsStoreApp:
                return(TargetPlatform.WindowsStoreApp);

            case MonoGamePlatform.NativeClient:
                return(TargetPlatform.NativeClient);

            case MonoGamePlatform.Ouya:
                return(TargetPlatform.Ouya);

            case MonoGamePlatform.PlayStationMobile:
                return(TargetPlatform.PlayStationMobile);

            case MonoGamePlatform.WindowsPhone8:
                return(TargetPlatform.WindowsPhone8);

            case MonoGamePlatform.RaspberryPi:
                return(TargetPlatform.RaspberryPi);

            default:
                throw new NotSupportedException();
            }
        }
示例#4
0
        /// <summary>
        /// Returns the string that describes the reader used to convert the
        /// stream of data into a ModelInfo object
        /// </summary>
        /// <param name="targetPlatform">The current platform</param>
        /// <returns>The string that describes the reader used for a ModelInfo object</returns>
        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            return(typeof(FlatRedBall.Content.ModelAnimation.AnimationReader).AssemblyQualifiedName);
            //if (targetPlatform == TargetPlatform.Xbox360)
            //{

            //    return "FlatRedBall.Content.ModelAnimation.AnimationReader, "
            //        + "FlatRedBall, "
            //        + "Version="+ContentUtil.VERSION+", Culture=neutral, PublicKeyToken=null";
            //}
            //else
            //{
            //    return "FlatRedBall.Content.ModelAnimation.AnimationReader, "
            //        + "FlatRedBall, "
            //        + "Version="+ContentUtil.VERSION+", Culture=neutral, PublicKeyToken=null";
            //}
        }
 public override string GetRuntimeReader(Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform targetPlatform)
 {
     return(typeof(UpgradeStatistics.UpgradeStatisticsReader).AssemblyQualifiedName);
 }
示例#6
0
 public override string GetRuntimeReader(TargetPlatform targetPlatform)
 {
     return(typeof(AnimationChainListReader).AssemblyQualifiedName);
 }
示例#7
0
 public override string GetRuntimeReader(TargetPlatform targetPlatform)
 {
     return(typeof(SpriteReader).AssemblyQualifiedName);
 }
 public override string  GetRuntimeReader(Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform targetPlatform)
 {
     return(AssemblyHelper.GetRuntimeReader(typeof(AnimationClipReader), targetPlatform));
 }
示例#9
0
 public static void ConfigurePipelineMG(Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform targetPlatform = Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform.DesktopGL)
 {
     PM          = new PipelineManager(SourceFilePath, OutputFilePath, IntermediateFilePath);
     PM.Platform = targetPlatform;
 }
示例#10
0
 public override string GetRuntimeType(Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform targetPlatform)
 {
     return("FuncWorks.XNA.XSpriter.CharacterData, FuncWorks.XNA.XSpriter");
 }
示例#11
0
 public override string GetRuntimeReader(TargetPlatform targetPlatform)
 {
     return(typeof(FlatRedBall.Content.NodeNetworkReader).AssemblyQualifiedName);
 }
示例#12
0
 public override string GetRuntimeReader(Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform targetPlatform)
 {
     return(typeof(GameplayObject.GameplayObjectReader).AssemblyQualifiedName);
 }