Add PersistentStatusEffect as typealias
This commit is contained in:
parent
d1865900f6
commit
e81079479b
@ -1,7 +1,11 @@
|
|||||||
package ru.dbotthepony.kstarbound.defs.actor
|
package ru.dbotthepony.kstarbound.defs.actor
|
||||||
|
|
||||||
|
import ru.dbotthepony.kommons.util.Either
|
||||||
import ru.dbotthepony.kstarbound.json.builder.IStringSerializable
|
import ru.dbotthepony.kstarbound.json.builder.IStringSerializable
|
||||||
|
|
||||||
|
// stat modifier or named status effect
|
||||||
|
typealias PersistentStatusEffect = Either<StatModifier, String>
|
||||||
|
|
||||||
// uint8_t
|
// uint8_t
|
||||||
enum class Gender(override val jsonName: String) : IStringSerializable {
|
enum class Gender(override val jsonName: String) : IStringSerializable {
|
||||||
MALE("Male"), FEMALE("Female");
|
MALE("Male"), FEMALE("Female");
|
||||||
|
@ -13,6 +13,7 @@ import ru.dbotthepony.kstarbound.Registry
|
|||||||
import ru.dbotthepony.kstarbound.Starbound
|
import ru.dbotthepony.kstarbound.Starbound
|
||||||
import ru.dbotthepony.kstarbound.defs.InteractAction
|
import ru.dbotthepony.kstarbound.defs.InteractAction
|
||||||
import ru.dbotthepony.kstarbound.defs.InteractRequest
|
import ru.dbotthepony.kstarbound.defs.InteractRequest
|
||||||
|
import ru.dbotthepony.kstarbound.defs.actor.PersistentStatusEffect
|
||||||
import ru.dbotthepony.kstarbound.defs.actor.StatModifier
|
import ru.dbotthepony.kstarbound.defs.actor.StatModifier
|
||||||
import ru.dbotthepony.kstarbound.defs.`object`.LoungeOrientation
|
import ru.dbotthepony.kstarbound.defs.`object`.LoungeOrientation
|
||||||
import ru.dbotthepony.kstarbound.defs.`object`.ObjectDefinition
|
import ru.dbotthepony.kstarbound.defs.`object`.ObjectDefinition
|
||||||
@ -41,7 +42,7 @@ class LoungeableObject(config: Registry.Entry<ObjectDefinition>) : WorldObject(c
|
|||||||
var sitFlipImages = false
|
var sitFlipImages = false
|
||||||
private set
|
private set
|
||||||
|
|
||||||
val sitStatusEffects = ObjectArraySet<Either<StatModifier, String>>()
|
val sitStatusEffects = ObjectArraySet<PersistentStatusEffect>()
|
||||||
val sitEffectEmitters = ObjectArraySet<String>()
|
val sitEffectEmitters = ObjectArraySet<String>()
|
||||||
|
|
||||||
var sitEmote: String? = null
|
var sitEmote: String? = null
|
||||||
|
Loading…
Reference in New Issue
Block a user