/// <summary> /// /// </summary> /// <param name="cast"></param> public void SelectNode <T>(T cast = null) where T : HSDAccessor { if (treeView1.SelectedNode != null && treeView1.SelectedNode is DataNode n) { if (cast == null) { _nodePropertyViewer.SetAccessor(n.Accessor); } else { cast._s = n.Accessor._s; n.Accessor = cast; _nodePropertyViewer.SetAccessor(cast); } SelectedDataNode = n; LocationLabel.Text = "Location: 0x" + RawHSDFile.GetOffsetFromStruct(n.Accessor._s).ToString("X8") + " -> " + n.FullPath; } }
public int GetStructLocation(HSDStruct str) { return(RawHSDFile.GetOffsetFromStruct(str)); }