Difference between revisions of "Object:type (Português)"
m (translation update) |
m (translation update) |
||
Line 1: | Line 1: | ||
− | Obtém o tipo do objeto como | + | Obtém o tipo do objeto como um string. |
== Função == | == Função == | ||
Line 8: | Line 8: | ||
=== Argumentos === | === Argumentos === | ||
Nenhum. | Nenhum. | ||
− | === | + | === Retorna === |
− | {{param|string (Português)|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:Since=000}} | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
− | |||
− | |||
== Outros Idiomas == | == 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