Table of Contents

Class LoreObjectTemplate

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Template defining a lore object's display text and optional immediate unlocks. When interacted with, the lore text is displayed in a UILore window. Abilities, ability events, and items listed here are granted immediately on interaction. Abilities and events are idempotent (already-known entries are skipped).

[CreateAssetMenu(fileName = "New Lore Object", menuName = "FishMMO/Interactable/Lore Object", order = 1)]
public class LoreObjectTemplate : CachedScriptableObject<LoreObjectTemplate>, ICachedObject
Inheritance
Object
ScriptableObject
LoreObjectTemplate
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
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

Fields

GrantAbilities

[Header("Optional Grants")]
public List<BaseAbilityTemplate> GrantAbilities

Field Value

List<BaseAbilityTemplate>

GrantAbilityEvents

Ability events immediately learned on interaction. Already-known events are skipped.

public List<AbilityEvent> GrantAbilityEvents

Field Value

List<AbilityEvent>

GrantItems

Items immediately added to the player's inventory on interaction.

public List<BaseItemTemplate> GrantItems

Field Value

List<BaseItemTemplate>

IconReference

Addressable reference to the icon sprite for this lore object.

public AssetReferenceSprite IconReference

Field Value

AssetReferenceSprite

LoreText

The lore text displayed to the player.

[TextArea(5, 20)]
public string LoreText

Field Value

string

Title

Display title for the lore window header.

public string Title

Field Value

string

Properties

Icon

The icon for this lore object (loaded at runtime on client).

public Sprite Icon { get; }

Property Value

Sprite

Name

The display name of this lore object template.

public string Name { get; }

Property Value

string

Methods

OnLoad(string, string, int)

Called when the lore object template is loaded into cache. Loads the icon on the client.

public override void OnLoad(string typeName, string resourceName, int resourceID)

Parameters

typeName string
resourceName string
resourceID int

OnUnload(string, string, int)

Called when the lore object template is unloaded from cache. Releases the icon on the client.

public override void OnUnload(string typeName, string resourceName, int resourceID)

Parameters

typeName string
resourceName string
resourceID int