public static bool ValidateResourceItemTypes(params string[] resourceItemTypes) { if (!GAValidator.ValidateArrayOfStrings(20L, 32L, false, "resource item types", resourceItemTypes)) { return(false); } foreach (string resourceItemType in resourceItemTypes) { if (!GAValidator.ValidateEventPartCharacters(resourceItemType)) { Debug.Log((object)("resource item types validation failed: a resource item type cannot contain other characters than A-z, 0-9, -_., ()!?. String was: " + resourceItemType)); return(false); } } return(true); }
public static bool ValidateResourceCurrencies(params string[] resourceCurrencies) { if (!GAValidator.ValidateArrayOfStrings(20L, 64L, false, "resource currencies", resourceCurrencies)) { return(false); } foreach (string resourceCurrency in resourceCurrencies) { if (!GAValidator.StringMatch(resourceCurrency, "^[A-Za-z]+$")) { Debug.Log((object)("resource currencies validation failed: a resource currency can only be A-Z, a-z. String was: " + resourceCurrency)); return(false); } } return(true); }
public static bool ValidateResourceItemTypes(params string[] resourceItemTypes) { if (!GAValidator.ValidateArrayOfStrings((long)20, (long)32, false, "resource item types", resourceItemTypes)) { return(false); } string[] strArrays = resourceItemTypes; for (int i = 0; i < (int)strArrays.Length; i++) { string str = strArrays[i]; if (!GAValidator.ValidateEventPartCharacters(str)) { Debug.Log(string.Concat("resource item types validation failed: a resource item type cannot contain other characters than A-z, 0-9, -_., ()!?. String was: ", str)); return(false); } } return(true); }
public static bool ValidateResourceCurrencies(params string[] resourceCurrencies) { if (!GAValidator.ValidateArrayOfStrings((long)20, (long)64, false, "resource currencies", resourceCurrencies)) { return(false); } string[] strArrays = resourceCurrencies; for (int i = 0; i < (int)strArrays.Length; i++) { string str = strArrays[i]; if (!GAValidator.StringMatch(str, "^[A-Za-z]+$")) { Debug.Log(string.Concat("resource currencies validation failed: a resource currency can only be A-Z, a-z. String was: ", str)); return(false); } } return(true); }
public static bool ValidateCustomDimensions(params string[] customDimensions) { return(GAValidator.ValidateArrayOfStrings((long)20, (long)32, false, "custom dimensions", customDimensions)); }