public SavexArguments(OpsParsedStatement statement) { OpsParsedArgument fileArg = statement.FindArgument("filename"); if(fileArg == null) { fileArg = statement.FindArgument(""); if(fileArg == null) throw OpsException.ArgRequired("filename"); } Filename = fileArg.Value; if(!Path.IsPathRooted(Filename)) { Filename = Path.Combine(Directory.GetCurrentDirectory(), Filename); } OpsParsedArgument argX = statement.FindArgument("XFileType"); if(argX != null) { if( 0 == String.Compare( argX.Value, "text", true)) saveType = XFileFormat.Text; else if( 0 == String.Compare( argX.Value, "binary", true)) saveType = XFileFormat.Binary; else if( 0 == String.Compare( argX.Value, "compressed", true)) saveType = XFileFormat.Compressed; else throw new OpsException("Unrecognized XFile argument value. Use (text|binary|compressed)"); } }
public SavexArguments(OpsParsedStatement statement) { OpsParsedArgument fileArg = statement.FindArgument("filename"); if (fileArg == null) { fileArg = statement.FindArgument(""); if (fileArg == null) { throw OpsException.ArgRequired("filename"); } } Filename = fileArg.Value; if (!Path.IsPathRooted(Filename)) { Filename = Path.Combine(Directory.GetCurrentDirectory(), Filename); } OpsParsedArgument argX = statement.FindArgument("XFileType"); if (argX != null) { if (0 == String.Compare(argX.Value, "text", true)) { saveType = XFileFormat.Text; } else if (0 == String.Compare(argX.Value, "binary", true)) { saveType = XFileFormat.Binary; } else if (0 == String.Compare(argX.Value, "compressed", true)) { saveType = XFileFormat.Compressed; } else { throw new OpsException("Unrecognized XFile argument value. Use (text|binary|compressed)"); } } }
public static void SaveHierarchyToFile(string filename, XFileFormat format, Frame frameRoot, AnimationController animationMixer, SaveUserData saveUserData) { throw new NotImplementedException(); }
public void Save(Stream stream, int[] adjacency, ExtendedMaterial[] materials, EffectInstance[] effects, XFileFormat format) { throw new NotImplementedException(); }
public void Save(Stream stream, GraphicsStream adjacency, ExtendedMaterial[] materials, XFileFormat format) { throw new NotImplementedException(); }
public void Save(string filename, int[] adjacency, ExtendedMaterial[] materials, XFileFormat format) { throw new NotImplementedException(); }
public void Save(string filename, GraphicsStream adjacency, ExtendedMaterial[] materials, EffectInstance[] effects, XFileFormat format) { throw new NotImplementedException(); }