PlayerRefAddedSystem

public class PlayerRefAddedSystem extends RefSystem

System for handling playerrefadded mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > RefSystem > PlayerRefAddedSystem

Field Summary

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

Method Detail

PlayerRefAddedSystem

public public PlayerRefAddedSystem (@Nonnull final ComponentType playerRefComponentType)

Method PlayerRefAddedSystem.

Parameters:
@Nonnull final ComponentType playerRefComponentType

getDependencies

public Set> getDependencies ()

Method getDependencies.

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer