3 ms·
If you are used to Java: It's like making a class implementing an additional interface from the outside. class MyEntity { RenderingCache cache; }
by qznc 6y ago
If you are used to Java: It's like making a class implementing an additional interface from the outside.
class MyEntity {
RenderingCache cache;
}
now MyEntity implements Drawable {
void draw(Canvas canvas) {
this.cache.draw_cached(canvas ...);
}
}