Difference between revisions of "Types"

(Edited in types. Not the best way, but at least it's somewhat readable... even if descriptions are missing from all over the place.)
m
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
 
{{param|thread||Denotes coroutines.}}
 
{{param|thread||Denotes coroutines.}}
 
=== Löve Types ===
 
=== Löve Types ===
 +
{{param|Object||Superclass of all Löve-specific types below.}}
 +
 +
Data
 
{{param|Data||Superclass of the below types.}}
 
{{param|Data||Superclass of the below types.}}
 
{{param|CompressedData||Holds arbitrary compressed data.}}
 
{{param|CompressedData||Holds arbitrary compressed data.}}
Line 21: Line 24:
 
{{param|ImageData||Holds image data.}}
 
{{param|ImageData||Holds image data.}}
 
{{param|SoundData||Holds sound data.}}
 
{{param|SoundData||Holds sound data.}}
 
 
 
 
 
 
{{param|Object||Superclass of the below types.}}
 
  
 
Math
 
Math
Line 38: Line 34:
 
{{param|Fixture||}}
 
{{param|Fixture||}}
 
{{param|World||}}
 
{{param|World||}}
 
  
  
Line 46: Line 41:
 
{{param|EdgeShape||}}
 
{{param|EdgeShape||}}
 
{{param|PolygonShape||}}
 
{{param|PolygonShape||}}
 
  
  
Line 70: Line 64:
 
{{param|Shader||}}
 
{{param|Shader||}}
 
{{param|Quad||}}
 
{{param|Quad||}}
 
  
  
 
{{param|Drawable||}}
 
{{param|Drawable||}}
 
 
{{param|Texture||}}
 
{{param|Texture||}}
 
 
{{param|Canvas||}}
 
{{param|Canvas||}}
 
{{param|Framebuffer||Deprecated version of Canvas type.}}
 
{{param|Framebuffer||Deprecated version of Canvas type.}}
 
{{param|Image||}}
 
{{param|Image||}}
 
  
  
Line 118: Line 108:
 
{{param|enet.host||}}
 
{{param|enet.host||}}
 
{{param|enet.peer||}}
 
{{param|enet.peer||}}
 +
 +
== Other Languages ==
 +
{{i18n|Types}}

Latest revision as of 06:51, 8 January 2020

These are the data types that are used by this wiki; some of them are wiki-specific aggregates for clearer documentation reasons.

Types

Lua Types

You can use the type function to get the type of a variable.

nil
Denotes the lack of a value. Only 'nil' has the type 'nil'.
boolean
Denotes a logical value. Can be 'true' or 'false'.
number
Denotes a double-precision floating-point value. Includes infinities and not-a-numbers.
string
Denotes an array of characters; immutable.
table
Denotes a combined numerical-array and hash-table.
function
Denotes a callable function.
userdata
Denotes arbitrary C data.
thread
Denotes coroutines.

Löve Types

Object
Superclass of all Löve-specific types below.

Data

Data
Superclass of the below types.
CompressedData
Holds arbitrary compressed data.
CompressedImageData
Holds compressed image data.
FileData
Holds file data.
FontData
Holds font data.
GlyphData
Holds glyph data.
ImageData
Holds image data.
SoundData
Holds sound data.

Math

BezierCurve
RandomGenerator

Physics

Body
Contact
Fixture
World


Shape
ChainShape
CircleShape
EdgeShape
PolygonShape


Joint
FrictionJoint
GearJoint
MotorJoint
MouseJoint
PrismaticJoint
PulleyJoint
RevoluteJoint
RopeJoint
WeldJoint
WheelJoint

Thread

Channel
Thread

Graphics

Cursor
PixelEffect
Deprecated version of Shader type.
Shader
Quad


Drawable
Texture
Canvas
Framebuffer
Deprecated version of Canvas type.
Image


Mesh
ParticleSystem
SpriteBatch
Text
Video

Sound

Decoder
Source
QueuableSource

Filesystem

File

Fonts

Font
Rasterizer

Input

Joystick

Video

VideoStream

Semantic (Wiki) Types

table flat table
Denotes a combined numerical-array and hash-table that does not have any table values inside it.
Variant
Can be a flat table, a boolean, a number, a string, or a LÖVE userdata.

Other

LUBE

ClientObject
ServerObject

Enet

enet.host
enet.peer

Other Languages