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 Super_Class = {
        destroy: destroy,
    };

    Surface = surface_create(_width, _height);

    static destroy = function () {
        method(self, Super_Class.destroy)();
        surface_free(Surface);
    };
}
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on April 11, 2022 using GMDoc.