I believe this feature suggestion would help to somewhat alleviate that. Class extensions should be able to be used on multiple classes at once, separated with commas. This would just be a bit of syntactic sugar added to the compiler.
- Code: Select all • Expand view
extend class foo, bar {
//...
}
would be exactly equivalent to
- Code: Select all • Expand view
extend class foo {
//...
}
extend class bar {
//...
}
This would help to reduce code duplication when inheriting from actor classes in gzdoom.pk3. For example, if you were to define custom classes inheriting from Hexen's three playable classes, you could then add behavior to all three of them without having to copy/paste code.