Skip to content

classData

export type classData = {
    constructor: (self: any, ...any) -> ()?,
    destructor: (self: any) -> ()?,
    Public: {[any]: any}?,
    Private: {[any]: any}?,
    Protected: {[any]: 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

{[any]: any}

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

Private

{[any]: any}?

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

Protected

{[any]: 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.