mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Changed API to make isSectionImportable public rather than protected
This is to allow DeckImport to get all the supported DeckSections in current editor, without relying on using the content of the cbxSection dropdown UI component. Signed-off-by: leriomaggio <valeriomaggio@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ public abstract class CDeckEditor<TModel extends DeckBase> extends ACEditorBase<
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return section == DeckSection.Main;
|
return section == DeckSection.Main;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ public final class CEditorCommander extends CDeckEditor<Deck> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return allSections.contains(section);
|
return allSections.contains(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -403,7 +403,7 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return allSections.contains(section);
|
return allSections.contains(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ public final class CEditorLimited extends CDeckEditor<DeckGroup> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return section != DeckSection.Sideboard && allSections.contains(section);
|
return section != DeckSection.Sideboard && allSections.contains(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ public final class CEditorQuest extends CDeckEditor<Deck> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return allSections.contains(section);
|
return allSections.contains(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ public final class CEditorQuestLimited extends CDeckEditor<DeckGroup> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return section != DeckSection.Sideboard && allSections.contains(section);
|
return section != DeckSection.Sideboard && allSections.contains(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ public final class CEditorVariant extends CDeckEditor<Deck> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean isSectionImportable(DeckSection section) {
|
public Boolean isSectionImportable(DeckSection section) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user