Class DiscoverSiteAction
ECA action for a point of interest's region: records the site as discovered by the entering character. Server only.
[Serializable]
public class DiscoverSiteAction : BaseAction, IAction, IAbortableAction
- Inheritance
-
DiscoverSiteAction
- Implements
- Inherited Members
Remarks
Abortable, and authored with StopChainOnFailure set, exactly like
UnlockWaypointAction: it fails when the site was already discovered, so the
exploration achievement increment after it counts each site once per character rather than once
per entry. It also fails, without counting, while the character's record is not loaded yet; the
next entry counts it.
The site is the region's PointOfInterestDiscovery; a region without one does nothing.
A first discovery is announced to the owner with a SiteDiscoveredBroadcast: discovery is decided here on the server, so the client has no other way to know the visit counted.
Methods
Execute(ICharacter, EventData)
Executes the action. Must be implemented by derived classes.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataEvent data for the action.
TryExecute(ICharacter, EventData)
Attempts to perform the action. Returns false to signal that the action could not be performed (e.g. preconditions failed) so callers can short-circuit chains.
public bool TryExecute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataEvent data for the action.
Returns
- bool
True on success; false when the action could not be performed.