Skip to content

Instantly share code, notes, and snippets.

@lighth7015
Last active July 17, 2021 21:13
Show Gist options
  • Save lighth7015/c69c81c8d62ef21d8a8496060cbe69e1 to your computer and use it in GitHub Desktop.
Save lighth7015/c69c81c8d62ef21d8a8496060cbe69e1 to your computer and use it in GitHub Desktop.
Potential module system
struct ModuleInfo {
String Name;
Array<Int16> Version;
String Author;
String Description;
};
class Module {
class_property(guid) = Uint16[4] {[ 0, 0, 0, 0 ]};
virtual ModuleInfo version { Name = "", Version = [], Author = "", Description = ""; };
virtual ModuleBase ::create();
// Haven't figured out how I want to provide toolbar or menu constructors (yet.)
}
class MyModule : Module {
ModuleInfo version { Name = "My Module", Version = [1, 0, 0 ], Author = "Some Body", Description = "Quack."; };
}
// _Module.derivatives or _class.derivatives ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment