Difference between revisions of "Object:type (Français)"
(→Printing the type of an object) |
(→Affiche le type d'un objet) |
||
Line 17: | Line 17: | ||
<source lang="lua"> | <source lang="lua"> | ||
image = love.graphics.newImage("test.png") | image = love.graphics.newImage("test.png") | ||
− | print(image:type()) -- affiche: | + | print(image:type()) -- affiche: Image |
source = love.audio.newSource("test.ogg") | source = love.audio.newSource("test.ogg") | ||
− | print(source:type()) -- affiche: | + | print(source:type()) -- affiche: Source |
</source> | </source> | ||
Revision as of 21:05, 10 August 2017
Retourne le type d'un objet comme une chaîne de caractère.
Contents
Fonction
Synopsis
type = Object:type()
Arguments
Aucun.
Returns
string type
- Type de l'objet sous forme de chaîne de caractère.
Examples
Affiche le type d'un objet
image = love.graphics.newImage("test.png")
print(image:type()) -- affiche: Image
source = love.audio.newSource("test.ogg")
print(source:type()) -- affiche: Source
Voir Aussi
Autres Langages
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