//mxd. Applies coped properties using selected settings public void Apply(ICollection <Vertex> verts, VertexPropertiesCopySettings settings) { foreach (Vertex v in verts) { if (settings.ZCeiling) { v.ZCeiling = zceiling; } if (settings.ZFloor) { v.ZFloor = zfloor; } if (settings.Fields) { v.Fields.BeforeFieldsChange(); ApplyCustomFields(v.Fields); } } }
public static bool PropertiesMatch(VertexPropertiesCopySettings flags, Vertex source, Vertex target) { if (!General.Map.UDMF) { return(true); } // Built-in properties if (flags.ZCeiling && source.ZCeiling != target.ZCeiling) { return(false); } if (flags.ZFloor && source.ZFloor != target.ZFloor) { return(false); } // Custom fields return(!flags.Fields || UniFields.CustomFieldsMatch(source.Fields, target.Fields)); }