Starfall class() and self explained
🌙 Lua•Updated 2 days ago•0 views
The class function is just the middleclass library by kikito (github.com/kikito/middleclass). self is syntax sugar - function t:lol() is equivalent to function …
How do classes work in Starfall and what is self
The class function is just the middleclass library by kikito (github.com/kikito/middleclass). self is syntax sugar - function t:lol() is equivalent to function t.lol(self) so self is the table the method was called on.