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

(Created page with 'Obtém o tipo do objeto como uma string. == Função == === Sinopse === <source lang="lua"> tipo = Object:type() </source> === Argument0s === Nenhum. === Returnos === {{param|s…')
 
Line 1: Line 1:
Obtém o tipo do objeto como uma string.
+
Obtêm o tipo do objeto como uma string.
  
 
== Função ==
 
== Função ==
Line 25: Line 25:
 
* [[parent::Object (Português)]]
 
* [[parent::Object (Português)]]
  
{{#set:Description=Obtém o tipo do objeto como uma string.}}
+
{{#set:Description=Obtêm o tipo do objeto como uma string.}}
 
[[Category:Functions]]
 
[[Category:Functions]]
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Object:type (Português)}}
 
{{i18n|Object:type (Português)}}

Revision as of 10:02, 2 January 2011

Obtêm o tipo do objeto como uma string.

Função

Sinopse

tipo = Object:type()

Argument0s

Nenhum.

Returnos

string 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

Other Languages