fix(renderer): rename getControlInterface to getControlClass for consistency
This commit is contained in:
@@ -4,7 +4,7 @@ import de.extio.game_engine.renderer.g2d.control.impl.G2DBaseControlImpl;
|
||||
|
||||
public interface CustomControlConfiguration<T extends G2DBaseControlImpl> {
|
||||
|
||||
Class<T> getControlInterface();
|
||||
Class<T> getControlClass();
|
||||
|
||||
T createControl();
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ public class G2DDrawControl extends G2DAbstractRenderingBo implements ControlRen
|
||||
else {
|
||||
if (this.customControlConfigurations != null) {
|
||||
for (final var customControlConfiguration : this.customControlConfigurations) {
|
||||
if (customControlConfiguration.getControlInterface().equals(this.clazz)) {
|
||||
if (customControlConfiguration.getControlClass().equals(this.clazz)) {
|
||||
control = customControlConfiguration.createControl();
|
||||
break;
|
||||
}
|
||||
@@ -341,7 +341,7 @@ public class G2DDrawControl extends G2DAbstractRenderingBo implements ControlRen
|
||||
else {
|
||||
if (this.customControlConfigurations != null) {
|
||||
for (final var customControlConfiguration : this.customControlConfigurations) {
|
||||
if (customControlConfiguration.getControlInterface().equals(this.clazz)) {
|
||||
if (customControlConfiguration.getControlClass().equals(this.clazz)) {
|
||||
((CustomControlConfiguration) customControlConfiguration).setCustomData(control, this.customData);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user