Exemplo n.º 1
0
 private String selectItemToSpawn(SpawnersContext c)
 {
     if (count == c.treeVariants.Length)
     {
         count = 0;
     }
     return(c.treeVariants[count++].name);
 }
Exemplo n.º 2
0
 private String selectItemToSpawn(SpawnersContext c)
 {
     /*
      * Random.next
      * c.itemRaritiCurve
      * todo map curve to possible items array
      */
     return("Item");
 }
Exemplo n.º 3
0
        public IAIContext GetContext(Guid aiId)
        {
            SpawnersContext c = new SpawnersContext
            {
                itemPlaces       = new List <Vector3>(), componentAI = componentAI, itemRarityCurve = itemRarityCurve,
                enemyRarityCurve = enemyRarityCurve, itemsSorted = itemsSorted, enemiesSorted = enemiesSorted,
                terrainData      = tData, treeVariants = treeVariants
            };

            return(c);
        }
Exemplo n.º 4
0
 private String selectEnemyToSpawn(SpawnersContext c)
 {
     return("Enemy");
 }