Difference between revisions of "Object:type (Português)"

m (translation update)
m (translation update)
Line 27: Line 27:
  
 
== Outros Idiomas ==
 
== Outros Idiomas ==
{{i18n|Object:type (Português)}}
+
{{i18n|Object:type}}

Revision as of 12:00, 3 July 2011

Obtém o tipo do objeto como uma string.

Função

Sinopse

tipo = Object:type()

Argumentos

Nenhum.

Retornos

string (Português) tipo
O tipo como uma string.

Exemplos

Imprime o tipo de um objeto

image = love.graphics.newImage("test.png")
print(image:type()) -- saída: Image
source = love.audio.newSource("test.ogg")
print(source:type()) -- saída: Source

Veja Também


Outros Idiomas