Exemple #1
0
 public void SpawnRock(ClientTCP client, int rockCount, bool bigRock, bool mediumRock, bool smallRock)
 {
     int[] ranges;
     lock (expectant)
     {
         if (!staticObjectsList.GetRange(StaticTypes.rock, out ranges))
         {
             ranges = staticObjectsList.Add(StaticTypes.rock, ObjectType.staticObjects, this, rockCount, bigRock, mediumRock, smallRock);
         }
     }
     SendDataTCP.SendRockSpawned(client, ranges);
 }