Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

how do i use the errors module luaassist

function love.load()
  enums.gamestates.main = false
end

function love.update(dt)
  if enums.gamestates.main == true then
  --Some sort of code
  else
    error(errors.invalidGamestate..type(enums.gamestates.main))
  end

end
 
PREVIOUS NEXT
Tagged: #errors #module #luaassist
ADD COMMENT
Topic
Name
7+2 =