private void GetMesh(MapCells cell, ref MeshData cellMesh) { ContourMesh contourMesh = new ContourMesh(cell.map, squareSize, drawContours, drawSimple, uniqueVertcies, cell.xOffset, cell.zOffset); cellMesh = contourMesh.GetMeshData(); methodQueue.Enqueue(() => MeshDataCounter()); }
/// <summary> /// When we need to jump to a function we use this. If the method hasn't been built yet, it will be after this :) /// </summary> /// <param name="method"></param> /// <returns></returns> public UInt256 GetMethodTag(MethodDeclarationSyntax method) { string methodName = method.Identifier.Text; if (MethodBlockEntryPoints.ContainsKey(methodName)) { return(MethodBlockEntryPoints[methodName].Data); } UInt256 newTag = GetNewTag(); MethodBlockEntryPoints.Add(methodName, new EthSharpAssemblyItem(AssemblyItemType.Tag, newTag)); MethodQueue.Enqueue(method); return(newTag); }