CE Class
Custom class system
Example
// Defines a final class *circle* which inherits from a *shape* class.
var _circle_class = ce_class_create(shape_class, true);
ce_class_define_properties(_circle_class, [
// Instance initializer for factory scripts.
"_init", circle_init,
// A method which returns the area of the circle.
"get_area", circle_get_area,
// A method which draws the circle.
"draw", circle_draw,
]);
ce_class_define_destructor(_circle_class, circle_delete);
Installation
Using Catalyst, the open-source package manager for GameMaker Studio 2:
catalyst require slagtand-org/ce-class
Related
This library is a part of project CE. For more information, please visit the project's repository: https://github.com/slagtand-org/ce