“Como faço para usar o módulo enums Lua Assist” Respostas de código

Como faço para usar o módulo enums Lua Assist

function love.load()
  print(enums.entitytags.player)
  print(enums.entitytags.enemy)

  enums.gamestates.main = true
end

function love.update(dt)
  if enums.gamestates.play == true then
     print("You are in the Play State")
  end
  if enums.gamestates.main == true then
     print("You are in the Main Menu State")
  end
  if enums.gamestates.exit == true then
     print("You are in the Exit State")
  end
  if enums.gamestates.paused == true then
     print("You are in the Paused State")
  end
end
Cleric Norse Gaming

Como faço para acessar o módulo enums luaassist

gis = require ("Modules/packageHandler")

local utils = gis.mylove.utils

local enums = utils.enums
Cleric Norse Gaming

Respostas semelhantes a “Como faço para usar o módulo enums Lua Assist”

Perguntas semelhantes a “Como faço para usar o módulo enums Lua Assist”

Mais respostas relacionadas para “Como faço para usar o módulo enums Lua Assist” em Lua

Procure respostas de código populares por idioma

Procurar outros idiomas de código