BBMOD_CLASS_GENERATED_BODY

macro

Description

Must be the first line when defining a custom class!

Example

function CSurface(_width, _height)
    : BBMOD_Class() constructor
{
    BBMOD_CLASS_GENERATED_BODY;

    static Class_destroy = destroy;

    Surface = surface_create(_width, _height);

    static destroy = function () {
        Class_destroy();
        surface_free(Surface);
        return undefined;
    };
}
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.