Table of Contents

Class PointOfInterestDiscovery

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Marks a point of interest's Region as discoverable: entering it the first time counts the site once for the character (DiscoverSiteAction).

[DisallowMultipleComponent]
public class PointOfInterestDiscovery : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
PointOfInterestDiscovery
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

Identity is (scene, SiteIndex), the site's per-scene unlock index — the same stable index its waypoint and portal use, carried over a re-cut by nearest match. A site's discovery is one bit of the character's record under RecordKey(string), kept and persisted with the per-character portal activations (PortalActivationStore, character_portals): the same set-only bit pages, a different key, so nothing new is stored or loaded for it.

Written by the point-of-interest generator's exploration feature onto the region it rides.

Fields

KeySuffix

Suffix that keeps discovery bits apart from a scene's portal bits.

public const string KeySuffix = "#sites"

Field Value

string

SiteIndex

[Tooltip("The site's per-scene unlock index: stable forever, the bit a character's discovery record stores.")]
public int SiteIndex

Field Value

int

Methods

IsDiscoveryKey(string)

Whether a per-character record key is a discovery key rather than a scene's portals.

public static bool IsDiscoveryKey(string recordKey)

Parameters

recordKey string

Returns

bool

RecordKey(string)

The record key a scene's site discoveries are kept under.

public static string RecordKey(string sceneName)

Parameters

sceneName string

Returns

string