Example #1
0
 public static Color GetCardColorFromId(string id)
 {
     return(id.isEmpty() ? CColors.LoadingGrey : CardColorsList[CCommonUtils.GetStableHash(s: id) % CardColorsList.Count]);
 }
Example #2
0
 public static string GetSpecificPatternImageNameFromId(string id)
 {
     return(PatternImages[CCommonUtils.GetStableHash(s: id) % PatternImages.Count]);
 }