internal override bool ExtractionTagReferenceChange(TagInterface.TagReference tr) { bool changed = false; if (tr.Datum != DatumIndex.Null) { // if (tr.GroupTag == TagGroups.shad) // { // tr.Datum = invalid_handle_shader; // changed = true; // } } return(changed); }
/// <summary>For changing tag references to different references</summary> /// <param name="tr"></param> /// <returns>true if <paramref name="tr"/> was changed</returns> /// <remarks> /// This is needed for implementing re-mappings, particularly for Halo 2 where /// we haven't coded post-process definition decoding so we'd want to set the /// reference to "rasterizer\invalid". /// /// I've thought about having to update cacheFile's "References" state...but /// I'm undecided on this action... /// </remarks> internal virtual bool ExtractionTagReferenceChange(TagInterface.TagReference tr) { return(false); }
/// <summary> /// Add a problematic tag reference to the database that is a dependent of <see cref="root"/> /// </summary> /// <param name="tr">Reference containing the tag definition information</param> /// <param name="flags">Specific error flags for this tag reference</param> /// <returns>Hash value for tag's database entry</returns> public int AddDependent(TagInterface.TagReference tr, ErrorFlags flags) { return(AddDependent(tr.GetTagPath(), tr.GroupTagInt, flags)); }
/// <summary> /// Add a non-problematic tag reference to the database /// </summary> /// <param name="tr">Reference containing the tag definition information</param> /// <returns>Hash value for tag's database entry</returns> /// <remarks> /// Labels the tag definition as having no errors. Useful when we want to highlight the exact /// tag dependency graph used when encountering errors. /// </remarks> public int Add(TagInterface.TagReference tr) { return(Add(tr, ErrorFlags.None)); }