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> {
|
public interface CustomControlConfiguration<T extends G2DBaseControlImpl> {
|
||||||
|
|
||||||
Class<T> getControlInterface();
|
Class<T> getControlClass();
|
||||||
|
|
||||||
T createControl();
|
T createControl();
|
||||||
|
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ public class G2DDrawControl extends G2DAbstractRenderingBo implements ControlRen
|
|||||||
else {
|
else {
|
||||||
if (this.customControlConfigurations != null) {
|
if (this.customControlConfigurations != null) {
|
||||||
for (final var customControlConfiguration : this.customControlConfigurations) {
|
for (final var customControlConfiguration : this.customControlConfigurations) {
|
||||||
if (customControlConfiguration.getControlInterface().equals(this.clazz)) {
|
if (customControlConfiguration.getControlClass().equals(this.clazz)) {
|
||||||
control = customControlConfiguration.createControl();
|
control = customControlConfiguration.createControl();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -341,7 +341,7 @@ public class G2DDrawControl extends G2DAbstractRenderingBo implements ControlRen
|
|||||||
else {
|
else {
|
||||||
if (this.customControlConfigurations != null) {
|
if (this.customControlConfigurations != null) {
|
||||||
for (final var customControlConfiguration : this.customControlConfigurations) {
|
for (final var customControlConfiguration : this.customControlConfigurations) {
|
||||||
if (customControlConfiguration.getControlInterface().equals(this.clazz)) {
|
if (customControlConfiguration.getControlClass().equals(this.clazz)) {
|
||||||
((CustomControlConfiguration) customControlConfiguration).setCustomData(control, this.customData);
|
((CustomControlConfiguration) customControlConfiguration).setCustomData(control, this.customData);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user