Hey dear community,
I noticed that I cannot add sub classes as user data, whose super class implements the Savable Interface.
Let’s say I have the class A as follows:
public class A implements Savable {
@Override
public void write(JmeExporter ex) throws IOException { }
@Override
public void read(JmeImporter im) throws IOException { }
}
And the class B which extends class A:
public class B extends A {
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
}
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
}
}
In the SDK I cannot add class B as user data even though it is an instance of Savable, or not?
I would really like it, if someone could comment on that.
Greetings,
Domenic