public string ShortcutClass; // <code ShortcutClass ="Enum_Shortcut"></code> // Override default method filter behavior -> move this method to the Enums_Shortcut class public BlueprintRule_ClassAttribute(enBlueprint_ClassNetworkType classType = enBlueprint_ClassNetworkType.Undefined) { ClassType = classType; }
//private ClassNTBlueprintRule_() { } // Hide default constructor public ClassNTBlueprintRule_(enBlueprint_ClassNetworkType classType = enBlueprint_ClassNetworkType.Undefined) : base(classType) { }
public static bool BlueprintRule_Attributes(string attributeCode, out string name, out List <string> parameters, out enBlueprint_ClassNetworkType classNetworkType, out string ignore1, out string ignore2, out string ignore3, out string ignore4) { ClassNTAttributes_Methods.Attribute_Parts(attributeCode, out name, out parameters); // Default values classNetworkType = enBlueprint_ClassNetworkType.Undefined; ignore1 = null; ignore2 = null; ignore3 = null; ignore4 = null; if (BlueprintRuleClass(name) == false) { return(false); //<================================================ } // Test the parameters // The first parameter is the enBlueprintClassNetworkType var parm1 = parameters[0]; classNetworkType = parm1.zEnum_To_EnumValue <enBlueprint_ClassNetworkType>(); //var value = parm1.zvar_Value("."); //classNetworkType = value.zEnum_To_EnumValue<enBlueprintClassNetworkType>(); foreach (string parameter in parameters) { if (parameter.Contains("Ignore_Namespace1")) { ignore1 = parameter.zvar_Value("=").zRemove_DoubleQuotes(); } if (parameter.Contains("Ignore_Namespace2")) { ignore2 = parameter.zvar_Value("=").zRemove_DoubleQuotes(); } if (parameter.Contains("Ignore_Namespace3")) { ignore3 = parameter.zvar_Value("=").zRemove_DoubleQuotes(); } if (parameter.Contains("Ignore_Namespace4")) { ignore4 = parameter.zvar_Value("=").zRemove_DoubleQuotes(); } } return(true); }