public bool IsDataValid(CompoundDataPiece piece) { return(piece.HasPiece("top")); }
static bool HasValidDataForParticipant(Participant p, CompoundDataPiece piece) { var modid = ExtendedDataUtils.GetModForParticipant(p)?.ModInfo.Id ?? "srml"; return(piece.HasPiece(modid) && piece.GetCompoundPiece(modid).HasPiece(ExtendedDataUtils.GetParticipantName(p))); }