Package com.prineside.tdi2
Class GameSystemProvider
java.lang.Object
com.prineside.tdi2.GameSystemProvider
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
public final class GameSystemProvider
extends Object
implements com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
Thread-local objects, stored in S.TSH Each GameSystemProvider has a single instance of this class and provides objects that were usually available as a regular static fields / singletons Since static fields can not be used in a multithreaded environment and ThreadLocal may get costly -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSystem
(GameSystem gameSystem) void
compareSync
(GameSystemProvider toSystemProvider, com.badlogic.gdx.utils.StringBuilder sb, boolean debug) void
Создать системы, которые не влияют на состояние Вызывать только после десериализации GSPvoid
Создать все системы - основные и не влияющие на состояниеdeepCopy()
void
dispose()
void
com.badlogic.gdx.utils.Array<GameSystem>
void
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
void
serialize
(com.esotericsoftware.kryo.io.Output data) void
void
void
static GameSystemProvider
unserialize
(com.esotericsoftware.kryo.io.Input data) void
void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Field Details
-
syncChecking
public boolean syncChecking -
syncCheckLog
-
CFG
-
_sound
-
achievement
-
_input
-
_graphics
-
_mapRendering
-
_pathRendering
-
_projectileTrail
-
_inventory
-
_mapEditor
-
_particle
-
bonus
-
gameplayMod
-
gameValue
-
state
-
gameState
-
_quest
-
buff
-
loot
-
enemy
-
unit
-
ability
-
map
-
projectile
-
explosion
-
tower
-
miner
-
modifier
-
wave
-
statistics
-
script
-
events
-
TSH
-
CLASS_COMPARATOR
-
-
Constructor Details
-
GameSystemProvider
-
-
Method Details
-
syncLog
-
syncLogTrace
public void syncLogTrace() -
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
-
createSystems
public void createSystems()Создать все системы - основные и не влияющие на состояние -
deepCopy
-
serialize
public void serialize(com.esotericsoftware.kryo.io.Output data) -
unserialize
-
createAndSetupNonStateAffectingSystemsAfterDeserialization
public void createAndSetupNonStateAffectingSystemsAfterDeserialization()Создать системы, которые не влияют на состояние Вызывать только после десериализации GSP -
setupSystems
public void setupSystems() -
postSetupSystems
public void postSetupSystems() -
compareSync
public void compareSync(GameSystemProvider toSystemProvider, com.badlogic.gdx.utils.StringBuilder sb, boolean debug) -
resetSystemsFrameProfiling
public void resetSystemsFrameProfiling() -
flushSystemsFrameProfiling
public void flushSystemsFrameProfiling() -
updateSystems
public void updateSystems() -
getSystemsOrdered
-
addSystem
-
dispose
public void dispose()
-