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