Esempio n. 1
0
 public void SpawnTree(ClientTCP client, int treeCount, bool bigTree, bool mediumTree, bool smallTree)
 {
     int[] ranges;
     lock (expectant)
     {
         if (!staticObjectsList.GetRange(StaticTypes.tree, out ranges))
         {
             ranges = staticObjectsList.Add(StaticTypes.tree, ObjectType.staticObjects, this, treeCount, bigTree, mediumTree, smallTree);
         }
     }
     SendDataTCP.SendTreeSpawned(client, ranges);
 }