示例#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);
             }
         }));
 }
示例#2
0
 public void Remove(ColShape shape)
 {
     lock (ColShapes) ColShapes.Remove(shape);
 }
示例#3
0
 public void Add(ColShape shape)
 {
     shape.handle = ++_shapeHandles;
     lock (ColShapes) ColShapes.Add(shape);
 }