|
@@ -3,21 +3,11 @@ package org.leumasjaffe.charsheet.model.magic;
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
-import org.leumasjaffe.charsheet.model.magic.impl.Inspired;
|
|
|
|
|
-import org.leumasjaffe.charsheet.model.magic.impl.Researched;
|
|
|
|
|
-import org.leumasjaffe.charsheet.model.magic.impl.Spontaneous;
|
|
|
|
|
-
|
|
|
|
|
-import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
|
|
|
|
|
|
import lombok.NonNull;
|
|
import lombok.NonNull;
|
|
|
|
|
|
|
|
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY)
|
|
|
|
|
-@JsonSubTypes({
|
|
|
|
|
- @JsonSubTypes.Type(value=Spontaneous.class, name="Spontaneous"),
|
|
|
|
|
- @JsonSubTypes.Type(value=Researched.class, name="Researched"),
|
|
|
|
|
- @JsonSubTypes.Type(value=Inspired.class, name="Inspired")
|
|
|
|
|
-})
|
|
|
|
|
|
|
+@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY)
|
|
|
public interface DDSpellbook {
|
|
public interface DDSpellbook {
|
|
|
@NonNull Collection<DDSpell> spellsKnownAtLevel( int level );
|
|
@NonNull Collection<DDSpell> spellsKnownAtLevel( int level );
|
|
|
@NonNull List<DDSpell> spellsPreparedAtLevel( int level );
|
|
@NonNull List<DDSpell> spellsPreparedAtLevel( int level );
|