SnapshotSystems

public class SnapshotSystems

Class SnapshotSystems. Provides snapshotsystems functionality for the Hytale server.

java.lang.Object > SnapshotSystems

Field Summary

world

final World world

Field world.

tickLength

final int tickLength

Field tickLength.

info

final SnapshotWorldInfo info

Field info.

previousHistorySize

final int previousHistorySize

Field previousHistorySize.

buffer

final SnapshotBuffer buffer

Field buffer.

snapshotWorldInfo

final SnapshotWorldInfo snapshotWorldInfo

Field snapshotWorldInfo.

transform

final TransformComponent transform

Field transform.

tickLengthNanos

private int tickLengthNanos

Field tickLengthNanos.

historyLength

private long historyLength

Field historyLength.

historySize

private int historySize

Field historySize.

currentTick

private int currentTick

Field currentTick.

Method Detail

getDependencies

public Set> getDependencies ()

Method getDependencies.

tick

public void tick (final float dt, final int systemIndex, @Nonnull final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@Nonnull final Store store

getQuery

public Query getQuery ()

Method getQuery.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

Capture

public public Capture ()

Method Capture.

SystemDependency

public new SystemDependency (Order.AFTER, (Class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
(Class (Class

getResourceType

public SnapshotWorldInfo> getResourceType ()

Method getResourceType.

SnapshotWorldInfo

public public SnapshotWorldInfo ()

Method SnapshotWorldInfo.

clone

public Resource clone ()

Method clone.