Example #1
0
 void objectEvent(VPObject o, sqlBuildType type)
 {
     lock (VPServices.App.DataMutex)
         connection.Insert(new sqlBuildHistory
         {
             ID   = o.Id,
             X    = o.Position.X,
             Y    = o.Position.Y,
             Z    = o.Position.Z,
             Type = type,
             When = TDateTime.UnixTimestamp
         });
 }
Example #2
0
 void objectEvent(VPObject o, sqlBuildType type)
 {
     lock (VPServices.App.DataMutex)
         connection.Insert( new sqlBuildHistory
         {
             ID   = o.Id,
             X    = o.Position.X,
             Y    = o.Position.Y,
             Z    = o.Position.Z,
             Type = type,
             When = TDateTime.UnixTimestamp
         });
 }