Exemple #1
0
    public static void GenerateCluster(int i, List <Node> nodes)
    {
        Array           values     = Enum.GetValues(typeof(NodeEffectTypes));
        Random          random     = new Random();
        NodeEffectTypes effectType = (NodeEffectTypes)values.GetValue(random.Next(values.Length));

        GetCluster(new NodeEffectTypes[] { effectType }).Invoke(new ClusterGenerator(), new object[] { nodes });
    }
Exemple #2
0
 public static void GenerateNodesClass(List <Node> nodes, string nodeNames, NodeEffects effect, int value, string nodeText, NodeEffectTypes notableEffectType)
 {
     foreach (Node n in nodes)
     {
         if (!n.notable)
         {
             n.Name = nodeNames;
             n.values.Add(new NodeValues()
             {
                 effect = effect, value = value, text = nodeText
             });
         }
         else
         {
             GetNotable(new NodeEffectTypes[] { notableEffectType }).Invoke(new ClusterGenerator(), new object[] { n });
         }
     }
 }