Package com.prineside.tdi2
Class GameValueConfig
java.lang.Object
com.prineside.tdi2.GameValueConfig
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
public final class GameValueConfig
extends Object
implements com.esotericsoftware.kryo.KryoSerializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
double
-
Constructor Summary
ConstructorsConstructorDescriptionGameValueConfig
(GameValueType type, double value, boolean overwrite, boolean allowBonuses) -
Method Summary
Modifier and TypeMethodDescriptioncpy()
static GameValueConfig
fromJson
(com.badlogic.gdx.utils.JsonValue value) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) boolean
sameAs
(GameValueConfig config) void
toJson
(com.badlogic.gdx.utils.Json json) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Field Details
-
type
-
value
public double value -
overwrite
public boolean overwrite -
allowBonuses
public boolean allowBonuses
-
-
Constructor Details
-
GameValueConfig
public GameValueConfig() -
GameValueConfig
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) -
fromJson
- Throws:
IllegalArgumentException
- если GameValueType не найден
-
sameAs
-
cpy
-