Example #1
0
        public void Spawn(SpawnObject so, CoordDouble playerPos)
        {
            if (so.Type != Vehicles.Item)
                return;
            if (playerPos.Y > 50)
                return; //Above ground probably a self created ore
            //if (so.SourceEntity == 1)
            //break;
            //if (so..Item.Count != 1)
            //    break;
            if (so.Position.DistanceTo(playerPos) > 10)
                return; //Too far away, not your dig
            if (DateTime.Now - BrokeBlock > TimeSpan.FromSeconds(3))
                return; //not from block broken

            //DO track
            TrackEID = so.EID;
        }
Example #2
0
 public void UpdateEntity(SpawnObject spawn)
 {
     Vehicle m = null;
     lock (entities)
     {
         if (entities.ContainsKey(spawn.EID))
             m = entities[spawn.EID] as Vehicle;
         if (m == null)
         {
             m = new Vehicle(spawn.EID, spawn.Type);
             entities[spawn.EID] = m;
         }
     }
     m.Update(spawn);
 }
Example #3
0
		public void Update (SpawnObject spawn)
		{
		}