/// <summary> /// Loads a DSQ animation sequence file. /// </summary> /// <param name="dsqFilePath">The path to the DSQ file.</param> /// <param name="sequenceName">An optional name for the sequence or null to use the default.</param> public bool LoadSequence(String dsqFilePath, String sequenceName) { // Ignore it if we have no shape or sequence! if (_shapeInstance == null || dsqFilePath == null) return false; // import the sequence -- cafTODO: error checking...exception handling? Shape shape = _shapeInstance.GetShape(); FileStream fs = null; try { fs = new FileStream(dsqFilePath, FileMode.Open); } catch { return false; } ShapeReader reader = new GarageGames.Torque.TS.ShapeReader(shape); shape = reader.ImportSequence(fs, sequenceName); fs.Close(); return true; }