public void InvokeColshapeExit(ColShape shape, NetHandle veh) { lock (_mainQueue.SyncRoot) _mainQueue.Enqueue(new Action(() => { if (Language == ScriptingEngineLanguage.compiled) { _compiledScript.API.invokeColShapeExit(shape, veh); } })); }
public void Remove(ColShape shape) { lock (ColShapes) ColShapes.Remove(shape); }
public void Add(ColShape shape) { shape.handle = ++_shapeHandles; lock (ColShapes) ColShapes.Add(shape); }