Update species struct
This commit is contained in:
parent
7346883f01
commit
c3d1c8c636
@ -1,8 +1,11 @@
|
|||||||
package ru.dbotthepony.kstarbound.defs
|
package ru.dbotthepony.kstarbound.defs.actor
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList
|
import com.google.common.collect.ImmutableList
|
||||||
import com.google.common.collect.ImmutableSet
|
import com.google.common.collect.ImmutableSet
|
||||||
import ru.dbotthepony.kstarbound.Registry
|
import ru.dbotthepony.kstarbound.Registry
|
||||||
|
import ru.dbotthepony.kstarbound.defs.AssetPath
|
||||||
|
import ru.dbotthepony.kstarbound.defs.ColorReplacements
|
||||||
|
import ru.dbotthepony.kstarbound.defs.StatusEffectDefinition
|
||||||
import ru.dbotthepony.kstarbound.defs.image.SpriteReference
|
import ru.dbotthepony.kstarbound.defs.image.SpriteReference
|
||||||
import ru.dbotthepony.kstarbound.defs.actor.player.BlueprintLearnList
|
import ru.dbotthepony.kstarbound.defs.actor.player.BlueprintLearnList
|
||||||
import ru.dbotthepony.kstarbound.defs.item.ItemDescriptor
|
import ru.dbotthepony.kstarbound.defs.item.ItemDescriptor
|
||||||
@ -11,31 +14,36 @@ import ru.dbotthepony.kstarbound.json.builder.JsonFactory
|
|||||||
@JsonFactory
|
@JsonFactory
|
||||||
data class Species(
|
data class Species(
|
||||||
val kind: String,
|
val kind: String,
|
||||||
val charCreationTooltip: Tooltip,
|
val charCreationTooltip: Tooltip = Tooltip(),
|
||||||
val nameGen: ImmutableList<String>,
|
val nameGen: ImmutableList<String>,
|
||||||
val ouchNoises: ImmutableList<String>,
|
val ouchNoises: ImmutableList<AssetPath>,
|
||||||
val charGenTextLabels: ImmutableList<String>,
|
val charGenTextLabels: ImmutableList<String> = ImmutableList.of(),
|
||||||
val skull: String,
|
val skull: AssetPath = AssetPath("/humanoid/any/dead.png"), // ваш свет угасает
|
||||||
val defaultBlueprints: BlueprintLearnList,
|
val defaultBlueprints: BlueprintLearnList,
|
||||||
|
|
||||||
|
val headOptionAsHairColor: Boolean = false,
|
||||||
val headOptionAsFacialhair: Boolean = false,
|
val headOptionAsFacialhair: Boolean = false,
|
||||||
val altOptionAsUndyColor: Boolean = false,
|
val altOptionAsUndyColor: Boolean = false,
|
||||||
val altOptionAsHairColor: Boolean = false,
|
val altOptionAsHairColor: Boolean = false,
|
||||||
val bodyColorAsFacialMaskSubColor: Boolean = false,
|
val altOptionAsFacialMask: Boolean = false,
|
||||||
val hairColorAsBodySubColor: Boolean = false,
|
val hairColorAsBodySubColor: Boolean = false,
|
||||||
|
val bodyColorAsFacialMaskSubColor: Boolean = false,
|
||||||
|
val altColorAsFacialMaskSubColor: Boolean = false,
|
||||||
|
|
||||||
val bodyColor: ImmutableList<ColorReplacements>,
|
val bodyColor: ImmutableList<ColorReplacements>,
|
||||||
val undyColor: ImmutableList<ColorReplacements>,
|
val undyColor: ImmutableList<ColorReplacements>,
|
||||||
val hairColor: ImmutableList<ColorReplacements>,
|
val hairColor: ImmutableList<ColorReplacements>,
|
||||||
val genders: ImmutableList<Gender>,
|
val genders: ImmutableList<GenderSettings>,
|
||||||
val statusEffects: ImmutableSet<Registry.Ref<StatusEffectDefinition>> = ImmutableSet.of(),
|
val statusEffects: ImmutableSet<Registry.Ref<StatusEffectDefinition>> = ImmutableSet.of(),
|
||||||
) {
|
) {
|
||||||
@JsonFactory
|
@JsonFactory
|
||||||
data class Tooltip(val title: String, val subTitle: String, val description: String)
|
data class Tooltip(val title: String = "", val subTitle: String = "", val description: String = "")
|
||||||
|
|
||||||
@JsonFactory
|
@JsonFactory
|
||||||
data class Gender(
|
data class GenderSettings(
|
||||||
val name: String,
|
val name: String = "",
|
||||||
val image: SpriteReference,
|
val image: SpriteReference = SpriteReference.NEVER,
|
||||||
val characterImage: SpriteReference,
|
val characterImage: SpriteReference = SpriteReference.NEVER,
|
||||||
val hairGroup: String? = null,
|
val hairGroup: String? = null,
|
||||||
val hair: ImmutableSet<String>,
|
val hair: ImmutableSet<String>,
|
||||||
val shirt: ImmutableSet<ItemDescriptor>,
|
val shirt: ImmutableSet<ItemDescriptor>,
|
Loading…
Reference in New Issue
Block a user