Interface ReservationProvider


public interface ReservationProvider
An interface class for defining various providers for determining whether an NPC is reserved in the InteractionView. Created on 29/10/2018
  • Method Details

    • getReservationStatus

      @Nonnull ReservationStatus getReservationStatus(@Nonnull Ref<EntityStore> npcRef, @Nonnull Ref<EntityStore> playerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Check whether the given NPC is reserved by the given player.
      Parameters:
      npcRef - The entity reference of the NPC to check
      playerRef - The entity reference of the player to check
      componentAccessor - The ComponentAccessor for component access
      Returns:
      the reservation status of this NPC