Difference between revisions of "Object:type (Español)"

(Created page with "Obtiene el tipo del objeto como una cadena(string). == Function == === Synopsis === <source lang="lua"> type = Object:type() </source> === Arguments === None. === Returns === {{...")
 
 
Line 20: Line 20:
 
== See Also ==
 
== See Also ==
 
* [[parent::Object (Español)]]
 
* [[parent::Object (Español)]]
{{#set:Description=Gets the type of the object as a string.}}
+
{{#set:Description=Obtiene el tipo del objeto como una cadena(string).}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
[[Category:Functions]]
 
[[Category:Functions]]
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Object:type}}
 
{{i18n|Object:type}}

Latest revision as of 02:55, 26 June 2011

Obtiene el tipo del objeto como una cadena(string).

Function

Synopsis

type = Object:type()

Arguments

None.

Returns

string type
El tipo es cadena(string).

Examples

Imprimir los tipos de un objeto

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

See Also

Other Languages