Closed pablomayobre closed 7 years ago
Parenttype is the direct parent Supertype which the Type inherits from.
This is useful to know which Type inherits from whom exactly so you can do stuff like:
setmetatable(Canvas, {__index = Texture }) --Canvas Parenttype is Texture setmetatable(Texture, {__index = Drawable}) --Texture Parenttype is Drawable setmetatable(Drawable, {__index = Object }) --Drawable Parenttype is Object
So then Canvas has all the methods from Texture, Drawable and Object all it's Supertypes.
Canvas
Texture
Drawable
Object
Thanks ❤️
No problem mate!
Parenttype is the direct parent Supertype which the Type inherits from.
This is useful to know which Type inherits from whom exactly so you can do stuff like:
So then
Canvas
has all the methods fromTexture
,Drawable
andObject
all it's Supertypes.