Esempio n. 1
0
 public void InvokeColshapeExit(ColShape shape, NetHandle veh)
 {
     lock (_mainQueue.SyncRoot)
         _mainQueue.Enqueue(new Action(() =>
         {
             if (Language == ScriptingEngineLanguage.compiled)
             {
                 _compiledScript.API.invokeColShapeExit(shape, veh);
             }
         }));
 }
Esempio n. 2
0
 internal void invokeColShapeExit(ColShape shape, NetHandle vehicle)
 {
     onEntityExitColShape?.Invoke(shape, vehicle);
 }
Esempio n. 3
0
 public void Remove(ColShape shape)
 {
     lock (ColShapes) ColShapes.Remove(shape);
 }
Esempio n. 4
0
 public void Add(ColShape shape)
 {
     shape.handle = ++_shapeHandles;
     lock (ColShapes) ColShapes.Add(shape);
 }