Пример #1
0
 public void InitializeColors(ArkColors arkColors)
 {
     for (int i = 0; i < ColorRegionCount; i++)
     {
         colors[i]?.Initialize(arkColors);
     }
 }
Пример #2
0
 /// <summary>
 /// Sets the ARKColor objects
 /// </summary>
 internal void Initialize(ArkColors arkColors)
 {
     if (colors == null)
     {
         return;
     }
     naturalColors = new List <ArkColor>();
     foreach (var c in colors)
     {
         ArkColor cl = arkColors.ByName(c);
         if (cl.Hash != 0 && !naturalColors.Contains(cl))
         {
             naturalColors.Add(cl);
         }
     }
 }