https://kotlinlang.org logo
Title
t

tobsef

01/28/2021, 8:17 PM
Is it a special design decision, that some
View
-classes are not
open
anymore? For exampe in my game, I extend
Image
to add some meta data to it. But this isn't possible in Korge
2.0.5.1
anymore. It's also not consistence because these views are open: Circle, Mesh, Sprite, Text,
d

Deactivated User

01/29/2021, 12:40 PM
I think there is a
BaseImage
class that is open https://github.com/korlibs/korge/blob/master/korge/src/commonMain/kotlin/com/soywiz/korge/view/Image.kt#L22 The
Image
now is doing some extra stuff to support lazy resource attaching IIRC so for inheritance you should consider using
BaseImage
instead