GE Lua Documentation

Press F to search!

tableInsertC

Definition


-- @/lua/common/utils.lua:730

function tableInsertC(tbl, data)
  if tbl[0] == nil then
    tbl[0] = data
  else
    table.insert(tbl, data)
  end
end

Callers

@/lua/common/jbeam/sections/wheels.lua
local function addPressTri(tris, presGroup, presPSI, n1, n2, n3, dCoef, tType, sDragCoef)
  tableInsertC(tris, {
      id1 = n1, id2 = n2, id3 = n3,
local function addTri(tris, n1, n2, n3, dCoef, tType)
  tableInsertC(tris, {
      id1 = n1, id2 = n2, id3 = n3,