Last active
July 17, 2021 21:13
-
-
Save lighth7015/c69c81c8d62ef21d8a8496060cbe69e1 to your computer and use it in GitHub Desktop.
Potential module system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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