public override ResourceNode Duplicate() { if (_resource._parent == null) { return(null); } _resource.Rebuild(); BRRESNode newNode = NodeFactory.FromAddress(null, _resource.WorkingUncompressed.Address, _resource.WorkingUncompressed.Length) as BRRESNode; _resource._parent.InsertChild(newNode, true, _resource.Index + 1); newNode.Populate(); newNode.FileType = ((BRRESNode)_resource).FileType; newNode.FileIndex = ((BRRESNode)_resource).FileIndex; newNode.GroupID = ((BRRESNode)_resource).GroupID; newNode.RedirectIndex = ((BRRESNode)_resource).RedirectIndex; newNode.Compression = ((BRRESNode)_resource).Compression; newNode.Name = _resource.Name; return(newNode); }