Skip to content

classData

export type classData = {
    constructor: (self: any, ...any) -> ()?,
    destructor: (self: any) -> ()?,
    Public: {[string]: any}?,
    Private: {[string]: any}?,
    Protected: {[string]: any}?,
    Friend: {any}?
}

The classData table that is given to the class() function that contains data about the desired class.


Properties

constructor : (self: any, ...any) -> ()?

The constructor function that will be called when an object gets created.


destructor : (self: any) -> ()?

The destructor function that will be called when an object gets destroyed.


Public : {[string]: any}?

The access specifier that contains properties that can be globally accessable.


Private : {[string]: any}?

The access specifier that contains properties that can only be accessed inside the class.


Protected : {[string]: any}?

The access specifier that contains properties that can only be accessed inside the class and inherited classes.


Friend : {any}?

The access specifier that contains functions and classes that can access the class's Private properties.