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…') |
m (translation update) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | Obtém o tipo do objeto como | + | Obtém o tipo do objeto como um string. |
== Função == | == Função == | ||
− | |||
=== Sinopse === | === Sinopse === | ||
<source lang="lua"> | <source lang="lua"> | ||
tipo = Object:type() | tipo = Object:type() | ||
</source> | </source> | ||
− | === | + | === Argumentos === |
Nenhum. | Nenhum. | ||
− | === | + | === Retorna === |
− | {{param|string|tipo|O tipo como | + | {{param|string (Português)|tipo|O tipo como um string.}} |
− | |||
== Exemplos == | == Exemplos == | ||
− | + | === Imprimir o tipo de um objeto === | |
− | === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | imagem = love.graphics.newImage("teste.png") | |
− | print( | + | print(imagem:type()) -- retorna: Image |
− | source = love.audio.newSource(" | + | source = love.audio.newSource("teste.ogg") |
− | print(source:type()) -- | + | print(source:type()) -- retorna: Source |
</source> | </source> | ||
− | |||
== Veja Também == | == Veja Também == | ||
* [[parent::Object (Português)]] | * [[parent::Object (Português)]] | ||
− | + | {{#set:Description=Obtém o tipo do objeto como um string.}} | |
− | {{#set:Description=Obtém o tipo do objeto como | + | {{#set:Since=000}} |
[[Category:Functions]] | [[Category:Functions]] | ||
− | == | + | == Outros Idiomas == |
− | {{i18n|Object:type | + | {{i18n|Object:type}} |
Latest revision as of 00:46, 6 March 2014
Obtém o tipo do objeto como um string.
Contents
Função
Sinopse
tipo = Object:type()
Argumentos
Nenhum.
Retorna
string (Português) tipo
- O tipo como um string.
Exemplos
Imprimir o tipo de um objeto
imagem = love.graphics.newImage("teste.png")
print(imagem:type()) -- retorna: Image
source = love.audio.newSource("teste.ogg")
print(source:type()) -- retorna: Source
Veja Também
Outros Idiomas
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info