Contents
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 Summary
Modifier and TypeMethodDescriptiongetReservationStatus(Ref<EntityStore> npcRef, Ref<EntityStore> playerRef, ComponentAccessor<EntityStore> componentAccessor) Check whether the given NPC is reserved by the given player.
-
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 checkplayerRef- The entity reference of the player to checkcomponentAccessor- TheComponentAccessorfor component access- Returns:
- the reservation status of this NPC
-