BBMOD_CLASS_GENERATED_BODY

A macro defined in BBMOD_Class.gml

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 © 2023, BlueBurn. Built on May 02, 2023 using GMDoc.