Example #1
0
 private object ParseFont(string attribValue, bool throwOnError, ContentProcessorContext context)
 {
     try
     {
         return(Loaders.BuildFontExternal(context, attribValue));
     }
     catch
     {
         if (throwOnError)
         {
             throw;
         }
         return(null);
     }
 }
Example #2
0
 private string ParseTexture2D(string attribValue, bool throwOnError, ContentProcessorContext context)
 {
     try
     {
         return(Loaders.BuildTextureExternal(context, attribValue));
     }
     catch
     {
         if (throwOnError)
         {
             throw;
         }
         return(null);
     }
 }